From 32ec07a3504d6dcbfc53997197a3c53e8c03497f Mon Sep 17 00:00:00 2001 From: Seon Rozenblum Date: Fri, 19 Mar 2021 18:48:34 +1100 Subject: [PATCH] esp32/boards: Rename TINYPICO board to UM_TINYPICO. And add default hardware SPI 0 pins in mpconfigboard.h, and CONFIG_LWIP_LOCAL_HOSTNAME in sdkconfig.board. --- ports/esp32/boards/TINYPICO/mpconfigboard.h | 2 -- ports/esp32/boards/{TINYPICO => UM_TINYPICO}/manifest.py | 0 .../boards/{TINYPICO => UM_TINYPICO}/modules/dotstar.py | 0 .../boards/{TINYPICO => UM_TINYPICO}/modules/tinypico.py | 0 .../boards/{TINYPICO => UM_TINYPICO}/mpconfigboard.cmake | 0 ports/esp32/boards/UM_TINYPICO/mpconfigboard.h | 6 ++++++ .../esp32/boards/{TINYPICO => UM_TINYPICO}/sdkconfig.board | 1 + 7 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 ports/esp32/boards/TINYPICO/mpconfigboard.h rename ports/esp32/boards/{TINYPICO => UM_TINYPICO}/manifest.py (100%) rename ports/esp32/boards/{TINYPICO => UM_TINYPICO}/modules/dotstar.py (100%) rename ports/esp32/boards/{TINYPICO => UM_TINYPICO}/modules/tinypico.py (100%) rename ports/esp32/boards/{TINYPICO => UM_TINYPICO}/mpconfigboard.cmake (100%) create mode 100644 ports/esp32/boards/UM_TINYPICO/mpconfigboard.h rename ports/esp32/boards/{TINYPICO => UM_TINYPICO}/sdkconfig.board (72%) diff --git a/ports/esp32/boards/TINYPICO/mpconfigboard.h b/ports/esp32/boards/TINYPICO/mpconfigboard.h deleted file mode 100644 index e63f43ed25..0000000000 --- a/ports/esp32/boards/TINYPICO/mpconfigboard.h +++ /dev/null @@ -1,2 +0,0 @@ -#define MICROPY_HW_BOARD_NAME "TinyPICO" -#define MICROPY_HW_MCU_NAME "ESP32-PICO-D4" diff --git a/ports/esp32/boards/TINYPICO/manifest.py b/ports/esp32/boards/UM_TINYPICO/manifest.py similarity index 100% rename from ports/esp32/boards/TINYPICO/manifest.py rename to ports/esp32/boards/UM_TINYPICO/manifest.py diff --git a/ports/esp32/boards/TINYPICO/modules/dotstar.py b/ports/esp32/boards/UM_TINYPICO/modules/dotstar.py similarity index 100% rename from ports/esp32/boards/TINYPICO/modules/dotstar.py rename to ports/esp32/boards/UM_TINYPICO/modules/dotstar.py diff --git a/ports/esp32/boards/TINYPICO/modules/tinypico.py b/ports/esp32/boards/UM_TINYPICO/modules/tinypico.py similarity index 100% rename from ports/esp32/boards/TINYPICO/modules/tinypico.py rename to ports/esp32/boards/UM_TINYPICO/modules/tinypico.py diff --git a/ports/esp32/boards/TINYPICO/mpconfigboard.cmake b/ports/esp32/boards/UM_TINYPICO/mpconfigboard.cmake similarity index 100% rename from ports/esp32/boards/TINYPICO/mpconfigboard.cmake rename to ports/esp32/boards/UM_TINYPICO/mpconfigboard.cmake diff --git a/ports/esp32/boards/UM_TINYPICO/mpconfigboard.h b/ports/esp32/boards/UM_TINYPICO/mpconfigboard.h new file mode 100644 index 0000000000..05ee5eaf72 --- /dev/null +++ b/ports/esp32/boards/UM_TINYPICO/mpconfigboard.h @@ -0,0 +1,6 @@ +#define MICROPY_HW_BOARD_NAME "TinyPICO" +#define MICROPY_HW_MCU_NAME "ESP32-PICO-D4" + +#define MICROPY_HW_SPI1_SCK (18) +#define MICROPY_HW_SPI1_MOSI (23) +#define MICROPY_HW_SPI1_MISO (19) diff --git a/ports/esp32/boards/TINYPICO/sdkconfig.board b/ports/esp32/boards/UM_TINYPICO/sdkconfig.board similarity index 72% rename from ports/esp32/boards/TINYPICO/sdkconfig.board rename to ports/esp32/boards/UM_TINYPICO/sdkconfig.board index dc2c23f674..766419c7f8 100644 --- a/ports/esp32/boards/TINYPICO/sdkconfig.board +++ b/ports/esp32/boards/UM_TINYPICO/sdkconfig.board @@ -2,3 +2,4 @@ CONFIG_FLASHMODE_QIO=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_SPIRAM_SPEED_80M=y CONFIG_ESP32_REV_MIN_1=y +CONFIG_LWIP_LOCAL_HOSTNAME="UMTinyPICO"