novumdun opened a new issue, #1294: URL: https://github.com/apache/mynewt-nimble/issues/1294
```c void nimble_port_init(void) { /* Initialize default event queue */ ble_npl_eventq_init(&g_eventq_dflt); /* Initialize the global memory pool */ os_mempool_module_init(); os_msys_init(); /* Initialize transport */ ble_transport_init(); /* Initialize the host */ ble_transport_hs_init(); #if NIMBLE_CFG_CONTROLLER #ifndef RIOT_VERSION hal_timer_init(5, NULL); os_cputime_init(32768); #endif ble_transport_ll_init(); #endif } ``` In "ble_transport_ll_init", "ble_transport_hs_init" should swap places with "ble_transport_ll_init". "NIMBLE_CFG_CONTROLLER" could be placed by MYNEWT_VAL(BLE_CONTROLLER), and add MYNEWT_VAL(BLE_HOST). ==> ```c void nimble_port_init(void) { /* Initialize default event queue */ ble_npl_eventq_init(&g_eventq_dflt); /* Initialize the global memory pool */ os_mempool_module_init(); os_msys_init(); /* Initialize transport */ ble_transport_init(); /* Initialize the host */ #if MYNEWT_VAL(BLE_HOST) ble_transport_ll_init(); #endif #if MYNEWT_VAL(BLE_CONTROLLER) #ifndef RIOT_VERSION hal_timer_init(5, NULL); os_cputime_init(32768); #endif ble_transport_hs_init(); #endif } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@mynewt.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org