mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
riscv/esp32c3: Add Wi-Fi and BLE coexist
This commit is contained in:
@@ -311,6 +311,17 @@ int esp32c3_bringup(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32C3_WIRELESS
|
||||
|
||||
#ifdef CONFIG_ESP32C3_WIFI_BT_COEXIST
|
||||
ret = esp32c3_wifi_bt_coexist_init();
|
||||
if (ret)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to initialize Wi-Fi and BT coexist\n");
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP32C3_BLE
|
||||
ret = esp32c3_ble_initialize();
|
||||
if (ret)
|
||||
@@ -353,6 +364,8 @@ int esp32c3_bringup(void)
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_ESP32C3_WIRELESS */
|
||||
|
||||
#ifdef CONFIG_ESP32C3_LEDC
|
||||
ret = esp32c3_pwm_setup();
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user