Skip to content

Commit 5a246c7

Browse files
sylvioalvesnordicjm
authored andcommitted
boards: xtensa: m5stack_atoms3_lite: Convert to v2
Converts the board to hwmv2 Signed-off-by: Sylvio Alves <[email protected]>
1 parent 5238b95 commit 5a246c7

17 files changed

+149
-40
lines changed

boards/boards_legacy/xtensa/m5stack_atoms3_lite/Kconfig.defconfig

Lines changed: 0 additions & 26 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_ATOMS3_LITE
5+
select SOC_ESP32S3_PROCPU if BOARD_M5STACK_ATOMS3_LITE_ESP32S3_PROCPU
6+
select SOC_ESP32S3_APPCPU if BOARD_M5STACK_ATOMS3_LITE_ESP32S3_APPCPU
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# M5Stack AtomS3 Lite board configuration
2+
# Copyright (c) 2023 Martin Kiepfer <[email protected]>
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
if BOARD_M5STACK_ATOMS3_LITE_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_ATOMS3_LITE_ESP32S3_PROCPU
22+
23+
if BOARD_M5STACK_ATOMS3_LITE_ESP32S3_APPCPU
24+
25+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
26+
default 256
27+
28+
endif # BOARD_M5STACK_ATOMS3_LITE_ESP32S3_APPCPU

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,5 @@
22
# Copyright (c) 2023 Martin Kiepfer <[email protected]>
33
# SPDX-License-Identifier: Apache-2.0
44

5-
# M5Stack AtomS3 Lite
65
config BOARD_M5STACK_ATOMS3_LITE
7-
bool "M5Stack AtomS3 Lite Development Board"
8-
depends on SOC_SERIES_ESP32S3
9-
10-
choice SOC_PART_NUMBER
11-
default SOC_ESP32S3_FN8
12-
endchoice
6+
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_atoms3_lite
3+
vendor: m5stack
4+
socs:
5+
- name: esp32s3

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

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

9393
.. zephyr-app-commands::
9494
:zephyr-app: samples/hello_world
95-
:board: m5stack_atoms3_lite
95+
:board: m5stack_atoms3_lite/esp32s3/procpu
9696
:goals: build
9797

9898
The usual ``flash`` target will work with the ``m5stack_atoms3_lite`` board
@@ -101,7 +101,7 @@ application.
101101

102102
.. zephyr-app-commands::
103103
:zephyr-app: samples/hello_world
104-
:board: m5stack_atoms3_lite
104+
:board: m5stack_atoms3_lite/esp32s3/procpu
105105
:goals: flash
106106

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

0 commit comments

Comments
 (0)