From f9f711ab96aa8f1cc402871f3c56f5de88dc4636 Mon Sep 17 00:00:00 2001 From: Neradoc Date: Wed, 2 Feb 2022 13:35:56 +0100 Subject: [PATCH] now it compiles, so there is that --- ports/espressif/boards/hiibot_iots2/board.c | 10 ++++++++-- ports/espressif/boards/hiibot_iots2/mpconfigboard.mk | 3 ++- ports/espressif/boards/hiibot_iots2/pins.c | 2 ++ ports/espressif/boards/hiibot_iots2/sdkconfig | 0 4 files changed, 12 insertions(+), 3 deletions(-) mode change 100755 => 100644 ports/espressif/boards/hiibot_iots2/board.c mode change 100755 => 100644 ports/espressif/boards/hiibot_iots2/mpconfigboard.mk mode change 100755 => 100644 ports/espressif/boards/hiibot_iots2/pins.c mode change 100755 => 100644 ports/espressif/boards/hiibot_iots2/sdkconfig diff --git a/ports/espressif/boards/hiibot_iots2/board.c b/ports/espressif/boards/hiibot_iots2/board.c old mode 100755 new mode 100644 index 1dc30b5af8..2b19741dbd --- a/ports/espressif/boards/hiibot_iots2/board.c +++ b/ports/espressif/boards/hiibot_iots2/board.c @@ -24,9 +24,11 @@ * THE SOFTWARE. */ -#include "boards/board.h" +#include "supervisor/board.h" #include "mpconfigboard.h" #include "shared-bindings/microcontroller/Pin.h" +#include "shared-module/displayio/__init__.h" +#include "shared-module/displayio/mipi_constants.h" void board_init(void) { // USB @@ -34,8 +36,10 @@ void board_init(void) { common_hal_never_reset_pin(&pin_GPIO20); // Debug UART + #ifdef DEBUG common_hal_never_reset_pin(&pin_GPIO43); common_hal_never_reset_pin(&pin_GPIO44); + #endif // SPI Flash and RAM common_hal_never_reset_pin(&pin_GPIO26); @@ -52,5 +56,7 @@ bool board_requests_safe_mode(void) { } void reset_board(void) { - +} + +void board_deinit(void) { } diff --git a/ports/espressif/boards/hiibot_iots2/mpconfigboard.mk b/ports/espressif/boards/hiibot_iots2/mpconfigboard.mk old mode 100755 new mode 100644 index 7a13a03654..28c4ad3a8a --- a/ports/espressif/boards/hiibot_iots2/mpconfigboard.mk +++ b/ports/espressif/boards/hiibot_iots2/mpconfigboard.mk @@ -2,7 +2,8 @@ USB_VID = 0x612B USB_PID = 0x80E8 USB_PRODUCT = "IoTs2" USB_MANUFACTURER = "HiiBot" -USB_DEVICES = "CDC,MSC,HID" + +IDF_TARGET = esp32s2 INTERNAL_FLASH_FILESYSTEM = 1 LONGINT_IMPL = MPZ diff --git a/ports/espressif/boards/hiibot_iots2/pins.c b/ports/espressif/boards/hiibot_iots2/pins.c old mode 100755 new mode 100644 index a1f6bde4fe..fb3a2daa1b --- a/ports/espressif/boards/hiibot_iots2/pins.c +++ b/ports/espressif/boards/hiibot_iots2/pins.c @@ -1,6 +1,8 @@ #include "shared-bindings/board/__init__.h" STATIC const mp_rom_map_elem_t board_global_dict_table[] = { + CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS + { MP_ROM_QSTR(MP_QSTR_IO0), MP_ROM_PTR(&pin_GPIO0) }, { MP_ROM_QSTR(MP_QSTR_IO1), MP_ROM_PTR(&pin_GPIO1) }, diff --git a/ports/espressif/boards/hiibot_iots2/sdkconfig b/ports/espressif/boards/hiibot_iots2/sdkconfig old mode 100755 new mode 100644