@@ -93,30 +93,6 @@ esp_err_t esp_nimble_init(void)
9393 esp_err_t ret ;
9494#endif
9595#if !SOC_ESP_NIMBLE_CONTROLLER || !CONFIG_BT_CONTROLLER_ENABLED
96- /* Initialize the function pointers for OS porting */
97- npl_freertos_funcs_init ();
98-
99- npl_freertos_mempool_init ();
100-
101- #if false // Arduino disable
102- #if CONFIG_BT_CONTROLLER_ENABLED
103- if (esp_nimble_hci_init () != ESP_OK ) {
104- ESP_LOGE (NIMBLE_PORT_LOG_TAG , "hci inits failed\n" );
105- return ESP_FAIL ;
106- }
107- #else
108- ret = ble_buf_alloc ();
109- if (ret != ESP_OK ) {
110- ble_buf_free ();
111- return ESP_FAIL ;
112- }
113- ble_transport_init ();
114- #if MYNEWT_VAL (BLE_QUEUE_CONG_CHECK )
115- ble_adv_list_init ();
116- #endif
117- #endif
118- #endif // Arduino disable
119-
12096 /* Initialize default event queue */
12197 ble_npl_eventq_init (& g_eventq_dflt );
12298 /* Initialize the global memory pool */
@@ -162,9 +138,6 @@ esp_err_t esp_nimble_deinit(void)
162138 ble_npl_eventq_deinit (& g_eventq_dflt );
163139#endif
164140 ble_hs_deinit ();
165- #if !SOC_ESP_NIMBLE_CONTROLLER || !CONFIG_BT_CONTROLLER_ENABLED
166- npl_freertos_funcs_deinit ();
167- #endif
168141
169142 ble_transport_ll_deinit ();
170143 return ESP_OK ;
@@ -345,9 +318,6 @@ nimble_port_get_dflt_eventq(void)
345318void
346319nimble_port_init (void )
347320{
348- npl_freertos_funcs_init ();
349- npl_freertos_mempool_init ();
350-
351321 /* Initialize default event queue */
352322 ble_npl_eventq_init (& g_eventq_dflt );
353323 /* Initialize the global memory pool */
0 commit comments