esp32/boards: Enable BLE on all boards.

BLE was enabled by default on all boards in the existing make build.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2021-02-14 01:36:30 +11:00
parent 26b17fd28a
commit da2b5fa1c1
8 changed files with 20 additions and 1 deletions

View File

@ -1,2 +1,6 @@
set(SDKCONFIG_DEFAULTS boards/sdkconfig.base)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
)
set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py)

View File

@ -1,5 +1,6 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
boards/GENERIC_D2WD/sdkconfig.board
)

View File

@ -1,5 +1,6 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
boards/GENERIC_OTA/sdkconfig.board
)

View File

@ -1,5 +1,6 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
boards/sdkconfig.spiram
)

View File

@ -1,5 +1,6 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
boards/sdkconfig.240mhz
boards/sdkconfig.spiram
boards/TINYPICO/sdkconfig.board

View File

@ -45,3 +45,7 @@ CONFIG_ESP32_ULP_COPROC_ENABLED=y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
# To reduce iRAM usage
CONFIG_ESP32_WIFI_IRAM_OPT=n
CONFIG_ESP32_WIFI_RX_IRAM_OPT=n

View File

@ -78,6 +78,7 @@ set(MICROPY_SOURCE_QSTR
set(IDF_COMPONENTS
app_update
bootloader_support
bt
driver
esp32
esp_common

View File

@ -126,6 +126,12 @@
#define MICROPY_PY_THREAD_GIL_VM_DIVISOR (32)
// extended modules
#ifndef MICROPY_PY_BLUETOOTH
#define MICROPY_PY_BLUETOOTH (1)
#define MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE (1)
#define MICROPY_BLUETOOTH_NIMBLE (1)
#define MICROPY_BLUETOOTH_NIMBLE_BINDINGS_ONLY (1)
#endif
#define MICROPY_PY_UASYNCIO (1)
#define MICROPY_PY_UCTYPES (1)
#define MICROPY_PY_UZLIB (1)