Skip to content

Commit f9f711a

Browse files
committed
now it compiles, so there is that
1 parent 727dd41 commit f9f711a

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

ports/espressif/boards/hiibot_iots2/board.c

100755100644
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,22 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include "boards/board.h"
27+
#include "supervisor/board.h"
2828
#include "mpconfigboard.h"
2929
#include "shared-bindings/microcontroller/Pin.h"
30+
#include "shared-module/displayio/__init__.h"
31+
#include "shared-module/displayio/mipi_constants.h"
3032

3133
void board_init(void) {
3234
// USB
3335
common_hal_never_reset_pin(&pin_GPIO19);
3436
common_hal_never_reset_pin(&pin_GPIO20);
3537

3638
// Debug UART
39+
#ifdef DEBUG
3740
common_hal_never_reset_pin(&pin_GPIO43);
3841
common_hal_never_reset_pin(&pin_GPIO44);
42+
#endif
3943

4044
// SPI Flash and RAM
4145
common_hal_never_reset_pin(&pin_GPIO26);
@@ -52,5 +56,7 @@ bool board_requests_safe_mode(void) {
5256
}
5357

5458
void reset_board(void) {
59+
}
5560

61+
void board_deinit(void) {
5662
}

ports/espressif/boards/hiibot_iots2/mpconfigboard.mk

100755100644
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ USB_VID = 0x612B
22
USB_PID = 0x80E8
33
USB_PRODUCT = "IoTs2"
44
USB_MANUFACTURER = "HiiBot"
5-
USB_DEVICES = "CDC,MSC,HID"
5+
6+
IDF_TARGET = esp32s2
67

78
INTERNAL_FLASH_FILESYSTEM = 1
89
LONGINT_IMPL = MPZ

ports/espressif/boards/hiibot_iots2/pins.c

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "shared-bindings/board/__init__.h"
22

33
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
4+
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
5+
46
{ MP_ROM_QSTR(MP_QSTR_IO0), MP_ROM_PTR(&pin_GPIO0) },
57

68
{ MP_ROM_QSTR(MP_QSTR_IO1), MP_ROM_PTR(&pin_GPIO1) },

ports/espressif/boards/hiibot_iots2/sdkconfig

100755100644
File mode changed.

0 commit comments

Comments
 (0)