This MR added the bluedroid env variable can dynamic malloc and BT variable use psram malloc supported
See merge request !1698
static void btc_deinit_bluetooth(void)
{
+ btc_gap_ble_deinit();
+ bta_dm_sm_deinit();
+ #if (GATTC_INCLUDED)
+ bta_gattc_deinit();
+ #endif /* #if (GATTC_INCLUDED) */
+ #if (GATTS_INCLUDED)
+ bta_gatts_deinit();
+ #endif /* #if (GATTS_INCLUDED) */
bte_main_shutdown();
+#if (SMP_INCLUDED)
btc_config_clean_up();
+#endif
osi_alarm_deinit();
osi_alarm_delete_mux();
future_ready(*btc_main_get_future_p(BTC_MAIN_DEINIT_FUTURE), FUTURE_SUCCESS);