Add Asssert & debug messages.

This commit is contained in:
JF
2020-05-02 17:42:26 +02:00
parent 332b51464a
commit ed168716b5
2 changed files with 18 additions and 10 deletions

View File

@@ -184,8 +184,11 @@ void nimble_port_init(void) {
ble_hs_init();
ble_store_ram_init();
hal_timer_init(5, NULL);
os_cputime_init(32768);
int res;
res = hal_timer_init(5, NULL);
ASSERT(res == 0);
res = os_cputime_init(32768);
ASSERT(res == 0);
ble_ll_init();
ble_hci_ram_init();
nimble_port_freertos_init(BleHost);