mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-27 13:56:24 +00:00
HAL tweaks to LPC1768 main
This commit is contained in:
parent
0987ed2a18
commit
ba1919c1eb
@ -62,12 +62,12 @@ extern "C" {
|
|||||||
_millis = 0; // Initialize the millisecond counter value
|
_millis = 0; // Initialize the millisecond counter value
|
||||||
SysTick_Config(SystemCoreClock / 1000); // Start millisecond global counter
|
SysTick_Config(SystemCoreClock / 1000); // Start millisecond global counter
|
||||||
|
|
||||||
// Runs before setup() need to configure LED_PIN and use to indicate succsessful bootloader execution
|
// Runs before setup() to configure LED_PIN and used to indicate successful bootloader execution
|
||||||
#if PIN_EXISTS(LED)
|
#if PIN_EXISTS(LED)
|
||||||
SET_DIR_OUTPUT(LED_PIN);
|
SET_DIR_OUTPUT(LED_PIN);
|
||||||
WRITE_PIN_CLR(LED_PIN);
|
WRITE_PIN_CLR(LED_PIN);
|
||||||
|
|
||||||
//MKS-SBASE has 3 other LEDS the bootloader uses during flashing, clear them
|
// MKS_SBASE has 3 other LEDs the bootloader uses during flashing. Clear them.
|
||||||
SET_DIR_OUTPUT(P1_19);
|
SET_DIR_OUTPUT(P1_19);
|
||||||
WRITE_PIN_CLR(P1_19);
|
WRITE_PIN_CLR(P1_19);
|
||||||
SET_DIR_OUTPUT(P1_20);
|
SET_DIR_OUTPUT(P1_20);
|
||||||
@ -75,7 +75,7 @@ extern "C" {
|
|||||||
SET_DIR_OUTPUT(P1_21);
|
SET_DIR_OUTPUT(P1_21);
|
||||||
WRITE_PIN_CLR(P1_21);
|
WRITE_PIN_CLR(P1_21);
|
||||||
|
|
||||||
for (int i = 0; i < 6; ++i) {
|
for (uint8_t i = 6; i--;) {
|
||||||
TOGGLE(LED_PIN);
|
TOGGLE(LED_PIN);
|
||||||
delay(100);
|
delay(100);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user