working on migrate hci from uart to usb

This commit is contained in:
hathach
2018-04-09 18:52:46 +07:00
parent bee4488811
commit a9267cd9ff
4 changed files with 42 additions and 35 deletions

View File

@ -29,6 +29,8 @@
#include "app_timer.h"
#include "tusb.h"
#define APP_TIMER_PRESCALER 0
#define IRQ_ENABLED 0x01 /**< Field identifying if an interrupt is enabled. */
@ -122,6 +124,9 @@ static void wait_for_events(void)
// Event received. Process it from the scheduler.
app_sched_execute();
// USB stack
tusb_task();
if ((m_update_status == BOOTLOADER_COMPLETE) ||
(m_update_status == BOOTLOADER_TIMEOUT) ||
(m_update_status == BOOTLOADER_RESET))