Skip to content

Commit 2d8564d

Browse files
committed
feature/board: Add cardputer board
Signed-off-by: lbuque <[email protected]>
1 parent 8aa096f commit 2d8564d

Some content is hidden

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

76 files changed

+1968
-6
lines changed

m5stack/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ boards := \
2424
M5STACK_Basic:basic \
2525
M5STACK_Basic_4MB:basic \
2626
M5STACK_Capsule:capsule \
27-
M5STACK_Dial:dial
27+
M5STACK_Dial:dial \
28+
M5STACK_Cardputer:cardputer
2829

2930
define find_board
3031
$(if $(filter $(1):%,$(boards)),$(word 2,$(subst :, ,$(filter $(1):%,$(boards)))),none)
@@ -45,7 +46,8 @@ BOARD_TYPE_DEF := \
4546
fire \
4647
basic \
4748
capsule \
48-
dial
49+
dial \
50+
cardputer
4951

5052
# Select the board type to build, default is None
5153
# This value affects which folder in the "./fs/system/" directory is pack into "fs-system.bin"

m5stack/boards/M5STACK_AtomS3U/mpconfigboard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(IDF_TARGET esp32s3)
22

3-
# atoms3u https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L26
3+
# atoms3u https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L28
44
set(BOARD_ID 138)
55

66
set(SDKCONFIG_DEFAULTS

m5stack/boards/M5STACK_AtomS3_Lite/mpconfigboard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(IDF_TARGET esp32s3)
22

3-
# atoms3-lite https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L25
3+
# atoms3-lite https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L27
44
set(BOARD_ID 137)
55

66
set(SDKCONFIG_DEFAULTS

m5stack/boards/M5STACK_Capsule/mpconfigboard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(IDF_TARGET esp32s3)
22

3-
# capsule https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L27
3+
# capsule https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L29
44
set(BOARD_ID 139)
55

66
set(SDKCONFIG_DEFAULTS
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"deploy": [
3+
"../deploy_s3.md"
4+
],
5+
"docs": "",
6+
"features": [
7+
"BLE",
8+
"WiFi"
9+
],
10+
"images": [
11+
"generic_s3.jpg"
12+
],
13+
"mcu": "esp32s3",
14+
"product": "M5Dial",
15+
"thumbnail": "",
16+
"url": "https://docs.m5stack.com/en/core/M5Dial",
17+
"vendor": "M5Stack"
18+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include("$(MPY_DIR)/../m5stack/modules/startup/manifest_cardputer.py")
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
set(IDF_TARGET esp32s3)
2+
3+
# dial https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L16
4+
set(BOARD_ID 14)
5+
6+
set(SDKCONFIG_DEFAULTS
7+
./boards/M5STACK_S3_8MB/sdkconfig.board
8+
./boards/sdkconfig.base
9+
./boards/sdkconfig.240mhz
10+
./boards/sdkconfig.disable_iram
11+
./boards/sdkconfig.ble
12+
./boards/sdkconfig.usb
13+
./boards/sdkconfig.flash_8mb
14+
)
15+
16+
# If not enable LVGL, ignore this...
17+
set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=0)
18+
19+
if(NOT MICROPY_FROZEN_MANIFEST)
20+
set(MICROPY_FROZEN_MANIFEST ${CMAKE_SOURCE_DIR}/boards/manifest.py)
21+
endif()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#define MICROPY_HW_BOARD_NAME "M5STACK"
2+
#define MICROPY_HW_MCU_NAME "M5DIAL"
3+
4+
#define MICROPY_PY_MACHINE_DAC (0)
5+
6+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
7+
#define MICROPY_HW_ENABLE_UART_REPL (1)
8+
9+
#define MICROPY_HW_I2C0_SCL (9)
10+
#define MICROPY_HW_I2C0_SDA (8)
11+
12+
// If not enable LVGL, ignore this...
13+
#include "./../mpconfiglvgl.h"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
CONFIG_FLASHMODE_DIO=y # QIO mode has some problem when mount fs
2+
CONFIG_ESPTOOLPY_FLASHMODE_DIO=y
3+
CONFIG_ESPTOOLPY_FLASHMODE="dio"
4+
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
5+
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
6+
CONFIG_ESPTOOLPY_AFTER_NORESET=y
7+
8+
CONFIG_SPIRAM_MEMTEST=
9+
CONFIG_FREERTOS_UNICORE=y

m5stack/boards/M5STACK_StampS3/mpconfigboard.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
set(IDF_TARGET esp32s3)
22

3-
# stamps3 https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L24
3+
# stamps3 https://github.com/m5stack/m5stack-board-id/blob/558d0c4e4fc55a72805827c65a5255aa4b844515/board.csv#L26
44
set(BOARD_ID 136)
55

66
set(SDKCONFIG_DEFAULTS

0 commit comments

Comments
 (0)