Browse Source

esp32/boards/GENERIC: Merge with GENERIC_{SPIRAM,OTA,D2WD,UNICORE}.

These are now variants of the GENERIC board.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/12088/head
Jim Mussared 1 year ago
parent
commit
2fbf42d3ad
  1. 8
      ports/esp32/boards/GENERIC/board.json
  2. 10
      ports/esp32/boards/GENERIC/board.md
  3. 44
      ports/esp32/boards/GENERIC/mpconfigboard.cmake
  4. 10
      ports/esp32/boards/GENERIC/mpconfigboard.h
  5. 0
      ports/esp32/boards/GENERIC/sdkconfig.d2wd
  6. 0
      ports/esp32/boards/GENERIC/sdkconfig.ota
  7. 0
      ports/esp32/boards/GENERIC/sdkconfig.unicore
  8. 20
      ports/esp32/boards/GENERIC_D2WD/board.json
  9. 5
      ports/esp32/boards/GENERIC_D2WD/mpconfigboard.cmake
  10. 2
      ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h
  11. 20
      ports/esp32/boards/GENERIC_OTA/board.json
  12. 5
      ports/esp32/boards/GENERIC_OTA/mpconfigboard.cmake
  13. 2
      ports/esp32/boards/GENERIC_OTA/mpconfigboard.h
  14. 24
      ports/esp32/boards/GENERIC_SPIRAM/board.json
  15. 1
      ports/esp32/boards/GENERIC_SPIRAM/board.md
  16. 5
      ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake
  17. 2
      ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.h
  18. 20
      ports/esp32/boards/GENERIC_UNICORE/board.json
  19. 1
      ports/esp32/boards/GENERIC_UNICORE/board.md
  20. 5
      ports/esp32/boards/GENERIC_UNICORE/mpconfigboard.cmake
  21. 2
      ports/esp32/boards/GENERIC_UNICORE/mpconfigboard.h
  22. 1
      ports/esp32/esp32_common.cmake

8
ports/esp32/boards/GENERIC/board.json

@ -13,11 +13,15 @@
"esp32_devkitc.jpg"
],
"mcu": "esp32",
"product": "ESP32",
"product": "ESP32 / WROOM",
"thumbnail": "",
"url": "https://www.espressif.com/en/products/modules",
"variants": {
"idf3": "Compiled with IDF 3.x"
"idf3": "Compiled with IDF 3.x",
"d2wd": "ESP32 D2WD",
"spiram": "Support for SPIRAM / WROVER",
"unicore": "ESP32 Unicore",
"ota": "Support for OTA"
},
"vendor": "Espressif"
}

10
ports/esp32/boards/GENERIC/board.md

@ -1 +1,9 @@
The following files are firmware for ESP32-based boards without external SPIRAM.
The following files are firmware that should work on most ESP32-based boards
with 4MiB of flash, including WROOM WROVER, SOLO, PICO, and MINI modules.
If your board is based on a WROVER module, or otherwise has SPIRAM (also known
as PSRAM), then use the "spiram" variant.
The "d2wd" variant is for ESP32-D2WD chips (with 2MiB flash), and "unicore" is
for single-core ESP32 chips (e.g. the "SOLO" modules). The "ota" variant sets
up the partition table to allow for Over-the-Air updates.

44
ports/esp32/boards/GENERIC/mpconfigboard.cmake

@ -2,3 +2,47 @@ set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
)
if(MICROPY_BOARD_VARIANT STREQUAL "d2wd")
set(SDKCONFIG_DEFAULTS
${SDKCONFIG_DEFAULTS}
boards/GENERIC/sdkconfig.d2wd
)
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_MCU_NAME="ESP32-D2WD"
)
endif()
if(MICROPY_BOARD_VARIANT STREQUAL "ota")
set(SDKCONFIG_DEFAULTS
${SDKCONFIG_DEFAULTS}
boards/GENERIC/sdkconfig.ota
)
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="Generic ESP32 module with OTA"
)
endif()
if(MICROPY_BOARD_VARIANT STREQUAL "spiram")
set(SDKCONFIG_DEFAULTS
${SDKCONFIG_DEFAULTS}
boards/sdkconfig.spiram
)
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_BOARD_NAME="Generic ESP32 module with SPIRAM"
)
endif()
if(MICROPY_BOARD_VARIANT STREQUAL "unicore")
set(SDKCONFIG_DEFAULTS
${SDKCONFIG_DEFAULTS}
boards/GENERIC/sdkconfig.unicore
)
list(APPEND MICROPY_DEF_BOARD
MICROPY_HW_MCU_NAME="ESP32-UNICORE"
)
endif()

10
ports/esp32/boards/GENERIC/mpconfigboard.h

@ -1,2 +1,10 @@
#define MICROPY_HW_BOARD_NAME "ESP32 module"
// Both of these can be set by mpconfigboard.cmake if a BOARD_VARIANT is
// specified.
#ifndef MICROPY_HW_BOARD_NAME
#define MICROPY_HW_BOARD_NAME "Generic ESP32 module"
#endif
#ifndef MICROPY_HW_MCU_NAME
#define MICROPY_HW_MCU_NAME "ESP32"
#endif

0
ports/esp32/boards/GENERIC_D2WD/sdkconfig.board → ports/esp32/boards/GENERIC/sdkconfig.d2wd

0
ports/esp32/boards/GENERIC_OTA/sdkconfig.board → ports/esp32/boards/GENERIC/sdkconfig.ota

0
ports/esp32/boards/GENERIC_UNICORE/sdkconfig.board → ports/esp32/boards/GENERIC/sdkconfig.unicore

20
ports/esp32/boards/GENERIC_D2WD/board.json

@ -1,20 +0,0 @@
{
"deploy": [
"../deploy.md"
],
"docs": "",
"features": [
"BLE",
"External Flash",
"WiFi"
],
"id": "esp32-d2wd",
"images": [
"generic_d2wd.jpg"
],
"mcu": "esp32",
"product": "ESP32 D2WD",
"thumbnail": "",
"url": "https://www.espressif.com/en/products/modules",
"vendor": "Espressif"
}

5
ports/esp32/boards/GENERIC_D2WD/mpconfigboard.cmake

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

2
ports/esp32/boards/GENERIC_D2WD/mpconfigboard.h

@ -1,2 +0,0 @@
#define MICROPY_HW_BOARD_NAME "Generic ESP32-D2WD module"
#define MICROPY_HW_MCU_NAME "ESP32-D2WD"

20
ports/esp32/boards/GENERIC_OTA/board.json

@ -1,20 +0,0 @@
{
"deploy": [
"../deploy.md"
],
"docs": "",
"features": [
"BLE",
"External Flash",
"WiFi"
],
"id": "esp32-ota",
"images": [
"esp32_devkitc.jpg"
],
"mcu": "esp32",
"product": "ESP32 with OTA support",
"thumbnail": "",
"url": "https://www.espressif.com/en/products/modules",
"vendor": "Espressif"
}

5
ports/esp32/boards/GENERIC_OTA/mpconfigboard.cmake

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

2
ports/esp32/boards/GENERIC_OTA/mpconfigboard.h

@ -1,2 +0,0 @@
#define MICROPY_HW_BOARD_NAME "4MB/OTA module"
#define MICROPY_HW_MCU_NAME "ESP32"

24
ports/esp32/boards/GENERIC_SPIRAM/board.json

@ -1,24 +0,0 @@
{
"deploy": [
"../deploy.md"
],
"docs": "",
"features": [
"BLE",
"External Flash",
"External RAM",
"WiFi"
],
"id": "esp32spiram",
"images": [
"esp32_psram.jpg"
],
"mcu": "esp32",
"product": "ESP32 with SPIRAM",
"thumbnail": "",
"url": "https://www.espressif.com/en/products/modules",
"variants": {
"idf3": "Compiled with IDF 3.x"
},
"vendor": "Espressif"
}

1
ports/esp32/boards/GENERIC_SPIRAM/board.md

@ -1 +0,0 @@
The following files are firmware for ESP32-based boards with external SPIRAM (also known as PSRAM).

5
ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.cmake

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

2
ports/esp32/boards/GENERIC_SPIRAM/mpconfigboard.h

@ -1,2 +0,0 @@
#define MICROPY_HW_BOARD_NAME "ESP32 module (spiram)"
#define MICROPY_HW_MCU_NAME "ESP32"

20
ports/esp32/boards/GENERIC_UNICORE/board.json

@ -1,20 +0,0 @@
{
"deploy": [
"../deploy.md"
],
"docs": "",
"features": [
"BLE",
"External Flash",
"WiFi"
],
"id": "esp32-unicore",
"images": [
"generic_unicore.jpg"
],
"mcu": "esp32",
"product": "ESP32 Unicore",
"thumbnail": "",
"url": "https://www.espressif.com/en/products/modules",
"vendor": "Espressif"
}

1
ports/esp32/boards/GENERIC_UNICORE/board.md

@ -1 +0,0 @@
The following files are daily firmware for single-core ESP32-based boards without external SPIRAM.

5
ports/esp32/boards/GENERIC_UNICORE/mpconfigboard.cmake

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

2
ports/esp32/boards/GENERIC_UNICORE/mpconfigboard.h

@ -1,2 +0,0 @@
#define MICROPY_HW_BOARD_NAME "ESP32 Unicore module"
#define MICROPY_HW_MCU_NAME "ESP32-UNICORE"

1
ports/esp32/esp32_common.cmake

@ -170,6 +170,7 @@ set(MICROPY_CROSS_FLAGS -march=xtensawin)
# Set compile options for this port.
target_compile_definitions(${MICROPY_TARGET} PUBLIC
${MICROPY_DEF_CORE}
${MICROPY_DEF_BOARD}
MICROPY_ESP_IDF_4=1
MICROPY_VFS_FAT=1
MICROPY_VFS_LFS2=1

Loading…
Cancel
Save