|
|
@@ -189,7 +189,16 @@ void nbus_cb_TIM_periodElapsed(void) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+void nbus_blink_LED(uint8_t delay) {
|
|
|
+ nBus.hw_platform->led_on();
|
|
|
+ nBus.hw_platform->delay_ms(delay);
|
|
|
+ nBus.hw_platform->led_off();
|
|
|
+ nBus.hw_platform->delay_ms(delay);
|
|
|
+ nBus.hw_platform->led_on();
|
|
|
+ nBus.hw_platform->delay_ms(delay);
|
|
|
+ nBus.hw_platform->led_off();
|
|
|
+ nBus.hw_platform->delay_ms(delay);
|
|
|
+}
|
|
|
|
|
|
/* -------------------------------------------------------- */
|
|
|
/* ------------------ PUBLIC FUNCTIONS-------------------- */
|
|
|
@@ -219,10 +228,14 @@ void nbus_init_app(void *hw_interface, void *hw_config){
|
|
|
void nbus_init_memory_driver(nBus_MemoryDriver *memDriver, uint16_t capacity){
|
|
|
nbus_memory_init(memDriver);
|
|
|
nBus.memoryInterface = getnbusMemoryInterface();
|
|
|
+ nbus_blink_LED(100);
|
|
|
}
|
|
|
|
|
|
void nbus_stack(void){
|
|
|
|
|
|
+ nbus_blink_LED(50);
|
|
|
+ //nBus.interface->stop();
|
|
|
+
|
|
|
while(1){
|
|
|
if(nBus.uart_state == UART_RECEIVED){
|
|
|
|