mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-03 08:37:52 +00:00
porting/nimble_port: fix controller not initialized
When using external controller, ble_transport_ll_init() was not run because of NIMBLE_CFG_CONTROLLER was not defined. But under current architecture ble_transport_ll_init() should also be run to initialize the communication interface.
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
#include "sysinit/sysinit.h"
|
||||
#include "host/ble_hs.h"
|
||||
#include "nimble/nimble_port.h"
|
||||
#include "nimble/transport.h"
|
||||
#if NIMBLE_CFG_CONTROLLER
|
||||
#include "controller/ble_ll.h"
|
||||
#include "nimble/transport.h"
|
||||
#endif
|
||||
|
||||
static struct ble_npl_eventq g_eventq_dflt;
|
||||
@@ -50,8 +50,10 @@ nimble_port_init(void)
|
||||
hal_timer_init(5, NULL);
|
||||
os_cputime_init(32768);
|
||||
#endif
|
||||
ble_transport_ll_init();
|
||||
#endif
|
||||
|
||||
/* Initialize the controller */
|
||||
ble_transport_ll_init();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user