|
|
@ -48,9 +48,9 @@ void SysTick_Callback() {
|
|
|
|
disk_timerproc();
|
|
|
|
disk_timerproc();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void HAL_init() {
|
|
|
|
void HAL_init(void) {
|
|
|
|
|
|
|
|
|
|
|
|
// Support the 4 LEDs some LPC176x boards have
|
|
|
|
// Init LEDs
|
|
|
|
#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);
|
|
|
@ -74,6 +74,20 @@ void HAL_init() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Init Servo Pins
|
|
|
|
|
|
|
|
#if PIN_EXISTS(SERVO0)
|
|
|
|
|
|
|
|
OUT_WRITE(SERVO0_PIN, LOW);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if PIN_EXISTS(SERVO1)
|
|
|
|
|
|
|
|
OUT_WRITE(SERVO1_PIN, LOW);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if PIN_EXISTS(SERVO2)
|
|
|
|
|
|
|
|
OUT_WRITE(SERVO2_PIN, LOW);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if PIN_EXISTS(SERVO3)
|
|
|
|
|
|
|
|
OUT_WRITE(SERVO3_PIN, LOW);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
//debug_frmwrk_init();
|
|
|
|
//debug_frmwrk_init();
|
|
|
|
//_DBG("\n\nDebug running\n");
|
|
|
|
//_DBG("\n\nDebug running\n");
|
|
|
|
// Initialise the SD card chip select pins as soon as possible
|
|
|
|
// Initialise the SD card chip select pins as soon as possible
|
|
|
|