Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add s3 variant without BLE. #61

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions variants/esp32s3-no-ble/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ESP32S3-NO-BLE

A variant of the ESP32S3 envelope that disables Bluetooth support to
save RAM and flash space.

Bluetooth reserves memory even when not used. Use this variant if you
do not need Bluetooth support.
30 changes: 30 additions & 0 deletions variants/esp32s3-no-ble/sdkconfig.defaults.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
--- toit/toolchains/esp32s3/sdkconfig.defaults
+++ synthesized/esp32s3-no-ble/sdkconfig.defaults
@@ -10,19 +10,6 @@
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y
-CONFIG_BT_ENABLED=y
-CONFIG_BT_NIMBLE_ENABLED=y
-CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_DEFAULT=y
-CONFIG_BT_NIMBLE_LOG_LEVEL_NONE=y
-CONFIG_BT_NIMBLE_MAX_CONNECTIONS=2
-CONFIG_BT_NIMBLE_MAX_BONDS=4
-CONFIG_BT_NIMBLE_MAX_CCCDS=3
-CONFIG_BT_NIMBLE_PINNED_TO_CORE_1=y
-CONFIG_BT_NIMBLE_NVS_PERSIST=y
-CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME="toit"
-CONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE=0x0
-CONFIG_BT_NIMBLE_ACL_BUF_COUNT=10
-CONFIG_BT_CTRL_BLE_MAX_ACT=10
# CONFIG_SPI_SLAVE_ISR_IN_IRAM is not set
CONFIG_UART_ISR_IN_IRAM=y
# CONFIG_ESP_ERR_TO_NAME_LOOKUP is not set
@@ -57,6 +44,7 @@
CONFIG_MBEDTLS_SSL_IN_CONTENT_LEN=7800
CONFIG_MBEDTLS_SSL_OUT_CONTENT_LEN=3700
CONFIG_MBEDTLS_X509_TRUSTED_CERT_CALLBACK=y
+CONFIG_MBEDTLS_ECP_RESTARTABLE=y
# CONFIG_MBEDTLS_HARDWARE_MPI is not set
CONFIG_MBEDTLS_TLS_CLIENT_ONLY=y
CONFIG_MBEDTLS_POLY1305_C=y
4 changes: 4 additions & 0 deletions variants/esp32s3-spiram-octo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# ESP32S3-SPIRAM-OCTO

A variant of the ESP32S3 envelope that configures the external SPI
RAM to be octo-spi.
Loading