ソースを参照

HAL tweaks to LPC1768 main

Scott Lahteine 5年前
コミット
ba1919c1eb
1個のファイルの変更7行の追加7行の削除
  1. 7
    7
      Marlin/src/HAL/HAL_LPC1768/main.cpp

+ 7
- 7
Marlin/src/HAL/HAL_LPC1768/main.cpp ファイルの表示

@@ -7,7 +7,7 @@ extern void setup();
7 7
 extern void loop();
8 8
 
9 9
 extern "C" {
10
-#include <lpc17xx_gpio.h>
10
+  #include <lpc17xx_gpio.h>
11 11
 }
12 12
 
13 13
 #include <usb/usb.h>
@@ -19,9 +19,9 @@ extern "C" {
19 19
 #include <usb/mscuser.h>
20 20
 
21 21
 extern "C" {
22
-#include <debug_frmwrk.h>
23
-#include <chanfs/diskio.h>
24
-#include <chanfs/ff.h>
22
+  #include <debug_frmwrk.h>
23
+  #include <chanfs/diskio.h>
24
+  #include <chanfs/ff.h>
25 25
 }
26 26
 
27 27
 #include "../../inc/MarlinConfig.h"
@@ -62,12 +62,12 @@ extern "C" {
62 62
     _millis = 0;                            // Initialize the millisecond counter value
63 63
     SysTick_Config(SystemCoreClock / 1000); // Start millisecond global counter
64 64
 
65
-    // Runs before setup() need to configure LED_PIN and use to indicate succsessful bootloader execution
65
+    // Runs before setup() to configure LED_PIN and used to indicate successful bootloader execution
66 66
     #if PIN_EXISTS(LED)
67 67
       SET_DIR_OUTPUT(LED_PIN);
68 68
       WRITE_PIN_CLR(LED_PIN);
69 69
 
70
-      //MKS-SBASE has 3 other LEDS the bootloader uses during flashing, clear them
70
+      // MKS_SBASE has 3 other LEDs the bootloader uses during flashing. Clear them.
71 71
       SET_DIR_OUTPUT(P1_19);
72 72
       WRITE_PIN_CLR(P1_19);
73 73
       SET_DIR_OUTPUT(P1_20);
@@ -75,7 +75,7 @@ extern "C" {
75 75
       SET_DIR_OUTPUT(P1_21);
76 76
       WRITE_PIN_CLR(P1_21);
77 77
 
78
-      for (int i = 0; i < 6; ++i) {
78
+      for (uint8_t i = 6; i--;) {
79 79
         TOGGLE(LED_PIN);
80 80
         delay(100);
81 81
       }

読み込み中…
キャンセル
保存