Skip to content

Commit f1d3d15

Browse files
sylvioalvesnordicjm
authored andcommitted
boards: xtensa: m5stack_stamps3: Convert to v2
Converts the board to hwmv2 Signed-off-by: Sylvio Alves <[email protected]>
1 parent cb68867 commit f1d3d15

17 files changed

+149
-40
lines changed

boards/boards_legacy/xtensa/m5stack_stamps3/Kconfig.defconfig

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_M5STACK_STAMPS3
5+
select SOC_ESP32S3_PROCPU if BOARD_M5STACK_STAMPS3_ESP32S3_PROCPU
6+
select SOC_ESP32S3_APPCPU if BOARD_M5STACK_STAMPS3_ESP32S3_APPCPU
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# M5Stack StampS3 board configuration
2+
# Copyright (c) 2023 Martin Kiepfer <[email protected]>
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
if BOARD_M5STACK_STAMPS3_ESP32S3_PROCPU
6+
7+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
8+
int
9+
default 65535 if WIFI && BT
10+
default 51200 if WIFI
11+
default 40960 if BT
12+
default 4096
13+
14+
config KERNEL_MEM_POOL
15+
default y
16+
17+
choice BT_HCI_BUS_TYPE
18+
default BT_ESP32 if BT
19+
endchoice
20+
21+
endif # BOARD_M5STACK_STAMPS3_ESP32S3_PROCPU
22+
23+
if BOARD_M5STACK_STAMPS3_ESP32S3_APPCPU
24+
25+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
26+
default 256
27+
28+
endif # BOARD_M5STACK_STAMPS3_ESP32S3_APPCPU

boards/boards_legacy/xtensa/m5stack_stamps3/Kconfig.board renamed to boards/m5stack/m5stack_stamps3/Kconfig.m5stack_stamps3

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,4 @@
44
# SPDX-License-Identifier: Apache-2.0
55

66
config BOARD_M5STACK_STAMPS3
7-
bool "M5Stack StampS3 Development Board"
8-
depends on SOC_SERIES_ESP32S3
9-
10-
choice SOC_PART_NUMBER
11-
default SOC_ESP32S3_FN8
12-
endchoice
7+
select SOC_ESP32S3_FN8
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: m5stack_stamps3
3+
vendor: m5stack
4+
socs:
5+
- name: esp32s3

boards/boards_legacy/xtensa/m5stack_stamps3/doc/index.rst renamed to boards/m5stack/m5stack_stamps3/doc/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
149149

150150
.. zephyr-app-commands::
151151
:zephyr-app: samples/hello_world
152-
:board: m5stack_stamps3
152+
:board: m5stack_stamps3/esp32s3/procpu
153153
:goals: build
154154

155155
The usual ``flash`` target will work with the ``m5stack_stamps3`` board
@@ -158,7 +158,7 @@ application.
158158

159159
.. zephyr-app-commands::
160160
:zephyr-app: samples/hello_world
161-
:board: m5stack_stamps3
161+
:board: m5stack_stamps3/esp32s3/procpu
162162
:goals: flash
163163

164164
The baud rate of 921600bps is set by default. If experiencing issues when flashing,

0 commit comments

Comments
 (0)