Skip to content

Commit 37f4365

Browse files
committed
feature: Add Basic board
Signed-off-by: lbuque <[email protected]>
1 parent b631c26 commit 37f4365

Some content is hidden

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

64 files changed

+1427
-13
lines changed

m5stack/Makefile

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,34 @@
1010
BOARD ?= M5STACK_8MB
1111

1212
boards := \
13-
M5STACK_AtomS3:atoms3 \
14-
M5STACK_AtomS3_Lite:atoms3-lite \
15-
M5STACK_StampS3:stamps3 \
16-
M5STACK_CoreS3:cores3 \
17-
M5STACK_AtomS3U:atoms3u \
18-
M5STACK_Core2:core2 \
13+
M5STACK_AtomS3:atoms3 \
14+
M5STACK_AtomS3_Lite:atoms3-lite \
15+
M5STACK_StampS3:stamps3 \
16+
M5STACK_CoreS3:cores3 \
17+
M5STACK_AtomS3U:atoms3u \
18+
M5STACK_Core2:core2 \
1919
M5STACK_StickC_PLUS2:stickcplus2 \
20-
M5STACK_StickC_PLUS:stickcplus \
21-
M5STACK_Fire:fire
20+
M5STACK_StickC_PLUS:stickcplus \
21+
M5STACK_Fire:fire \
22+
M5STACK_Basic:basic
2223

2324
define find_board
2425
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),none)
2526
endef
2627

2728
# Board type list
28-
BOARD_TYPE_DEF := none atoms3 atoms3-lite stamps3 cores3 atoms3u core2 stickcplus2 stickcplus fire
29+
BOARD_TYPE_DEF := \
30+
none \
31+
atoms3 \
32+
atoms3-lite \
33+
stamps3 \
34+
cores3 \
35+
atoms3u \
36+
core2 \
37+
stickcplus2 \
38+
stickcplus \
39+
fire \
40+
basic
2941

3042
# Select the board type to build, default is None
3143
# This value affects which folder in the "./fs/system/" directory is pack into "fs-system.bin"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set(SDKCONFIG_DEFAULTS
2+
./boards/sdkconfig.base
3+
./boards/sdkconfig.flash_16mb
4+
./boards/sdkconfig.ble
5+
./boards/sdkconfig.240mhz
6+
./boards/sdkconfig.disable_iram
7+
./boards/M5STACK_Basic/sdkconfig.board
8+
)
9+
10+
# If not enable LVGL, ignore this...
11+
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=0)
12+
13+
if(NOT MICROPY_FROZEN_MANIFEST)
14+
set(MICROPY_FROZEN_MANIFEST ${CMAKE_SOURCE_DIR}/boards/manifest.py)
15+
endif()
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#define MICROPY_HW_BOARD_NAME "M5STACK"
2+
#define MICROPY_HW_MCU_NAME "ESP32"
3+
4+
// If not enable LVGL, ignore this...
5+
#include "./../mpconfiglvgl.h"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SSL
2+
CONFIG_MBEDTLS_INTERNAL_MEM_ALLOC=n
3+
CONFIG_MBEDTLS_CUSTOM_MEM_ALLOC=y
4+
5+
# Flash
6+
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
7+
CONFIG_ESPTOOLPY_FLASHFREQ="80m"
8+
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
4.5 KB
4.69 KB
4.18 KB
4.31 KB
4.57 KB
4.33 KB

0 commit comments

Comments
 (0)