Skip to content

Commit 5084493

Browse files
committed
[esp32] update board configs from upstream
How boards are configured has been simplified in micropython. Update the board config files from upstream.
1 parent 260818b commit 5084493

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+123
-516
lines changed

boards/esp32/MICROLITE_S2_SPIRAM/CMakeLists.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"deploy": [
3+
"../deploy_s2.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"WiFi"
9+
],
10+
"images": [
11+
"generic_s2.jpg"
12+
],
13+
"mcu": "esp32s2",
14+
"product": "ESP32-S2",
15+
"thumbnail": "",
16+
"url": "https://www.espressif.com/en/products/modules",
17+
"vendor": "Espressif"
18+
}

boards/esp32/MICROLITE_S2_SPIRAM/deploy.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

boards/esp32/MICROLITE_S2_SPIRAM/main/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
set(IDF_TARGET esp32s2)
2+
23
set(SDKCONFIG_DEFAULTS
3-
${MICROPY_PORT_DIR}/boards/sdkconfig.base
4-
${MICROPY_PORT_DIR}/boards/sdkconfig.spiram_sx
5-
# ${MICROPY_PORT_DIR}/boards/sdkconfig.usb
6-
${MICROPY_BOARD_DIR}/sdkconfig.board
4+
boards/sdkconfig.base
5+
boards/sdkconfig.usb
76
)
87

9-
message (STATUS "mpconfigboard.cmake: PROJECT_DIR=${PROJECT_DIR}")
108

119
set(USER_C_MODULES
12-
${PROJECT_DIR}/micropython-modules/micropython.cmake
10+
${CMAKE_CURRENT_LIST_DIR}/../../../micropython-modules/micropython.cmake
1311
)
1412

15-
if(NOT MICROPY_FROZEN_MANIFEST)
16-
set(MICROPY_FROZEN_MANIFEST ${MICROPY_PORT_DIR}/boards/manifest.py)
17-
endif()
13+
list(APPEND EXTRA_COMPONENT_DIRS ${CMAKE_CURRENT_LIST_DIR}/../../../dependencies/tflite-micro-esp-examples/components/esp-tflite-micro)
14+
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
#define MICROPY_HW_BOARD_NAME "ESP32S2 Microlite"
2-
#define MICROPY_HW_MCU_NAME "ESP32-S2FN4R2"
1+
// Started from upstream GENERIC_S2
2+
#define MICROPY_HW_BOARD_NAME "Microlite ESP32S2 module"
3+
#define MICROPY_HW_MCU_NAME "Microlite ESP32S2"
34

45
#define MICROPY_PY_BLUETOOTH (0)
56
#define MICROPY_HW_ENABLE_SDCARD (0)
67

7-
// these were from the um_tiny s2 double check if they match the ESP32S2DEVKITM1R
8-
// #define MICROPY_HW_I2C0_SCL (9)
9-
// #define MICROPY_HW_I2C0_SDA (8)
10-
11-
// #define MICROPY_HW_SPI1_MOSI (35)
12-
// #define MICROPY_HW_SPI1_MISO (36)
13-
// #define MICROPY_HW_SPI1_SCK (37)
8+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
9+
#define MICROPY_HW_ENABLE_UART_REPL (1)

boards/esp32/MICROLITE_S2_SPIRAM/sdkconfig.board

Lines changed: 0 additions & 9 deletions
This file was deleted.

boards/esp32/MICROLITE_S3/CMakeLists.txt

Lines changed: 0 additions & 32 deletions
This file was deleted.

boards/esp32/MICROLITE_S3/board.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"deploy": [
3+
"../deploy_s3.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"WiFi"
9+
],
10+
"images": [
11+
"generic_s3.jpg"
12+
],
13+
"mcu": "esp32s3",
14+
"product": "ESP32-S3",
15+
"thumbnail": "",
16+
"url": "https://www.espressif.com/en/products/modules",
17+
"vendor": "Espressif"
18+
}

boards/esp32/MICROLITE_S3/main/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)