soc: riscv: esp32c3: added initial support for ble

subsystem by linking esp32 vhci adapter to the
espressif ble controller adapter

Signed-off-by: Felipe Neves <felipe.neves@espressif.com>
This commit is contained in:
Felipe Neves 2021-06-30 19:25:35 -03:00 committed by Christopher Friedt
commit 2474c9b3f3
5 changed files with 40 additions and 1 deletions

View file

@ -254,7 +254,7 @@ static int bt_esp32_ble_init(void)
int ret;
esp_bt_controller_config_t bt_cfg = BT_CONTROLLER_INIT_CONFIG_DEFAULT();
#ifdef CONFIG_BT_BREDR
#if defined(CONFIG_BT_BREDR) && defined(CONFIG_SOC_ESP32)
esp_bt_mode_t mode = ESP_BT_MODE_BTDM;
#else
esp_bt_mode_t mode = ESP_BT_MODE_BLE;