boards: riscv: esp32c3_luatos_core: Convert to v2

Converts the board to hwmv2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae
2024-02-19 13:47:05 +00:00
committed by Carles Cufi
parent 0a96dcb778
commit 22c2edb89c
21 changed files with 37 additions and 32 deletions

View File

@@ -1,14 +0,0 @@
# Copyright (c) 2023 YuLong Yao<feilongphone@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_ESP32C3_LUATOS_CORE
bool "luatos ESP32C3-CORE Board"
depends on SOC_SERIES_ESP32C3
config BOARD_ESP32C3_LUATOS_CORE_USB
bool "luatos ESP32C3-CORE Board without UART chip"
depends on SOC_SERIES_ESP32C3
choice SOC_PART_NUMBER
default SOC_ESP32C3_MINI_N4
endchoice

View File

@@ -3,10 +3,6 @@
# Copyright (c) 2023 YuLong Yao<feilongphone@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD
default "esp32c3_luatos_core"
depends on BOARD_ESP32C3_LUATOS_CORE || BOARD_ESP32C3_LUATOS_CORE_USB
config HEAP_MEM_POOL_ADD_SIZE_BOARD
int
default 65535 if WIFI && BT

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2023 YuLong Yao<feilongphone@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_ESP32C3_LUATOS_CORE
select SOC_ESP32C3_MINI_N4

View File

@@ -0,0 +1,5 @@
# Copyright (c) 2023 YuLong Yao<feilongphone@gmail.com>
# SPDX-License-Identifier: Apache-2.0
config BOARD_ESP32C3_LUATOS_CORE_USB
select SOC_ESP32C3_MINI_N4

View File

@@ -0,0 +1,9 @@
boards:
- name: esp32c3_luatos_core
vendor: luatos
socs:
- name: esp32c3
- name: esp32c3_luatos_core_usb
vendor: luatos
socs:
- name: esp32c3

View File

@@ -40,11 +40,11 @@ There are two version hardware of this board. The difference between them is the
:align: center
:alt: esp32c3_luatos_core
2. USB-C connect to esp32 chip directly(esp32c3_luatos_core_usb)
2. USB-C connect to esp32 chip directly(esp32c3_luatos_core/esp32c3/usb)
.. image:: img/esp32c3_luatos_core_usb.jpg
:align: center
:alt: esp32c3_luatos_core_usb
:alt: esp32c3_luatos_core/esp32c3/usb
Supported Features
==================
@@ -162,9 +162,9 @@ Zephyr build. Output is structured by the domain subdirectories:
build/
├── hello_world
   └── zephyr
   ├── zephyr.elf
   └── zephyr.bin
└── zephyr
├── zephyr.elf
└── zephyr.bin
├── mcuboot
│ └── zephyr
│ ├── zephyr.elf

View File

@@ -9,7 +9,7 @@
#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
model = "esp32c3_luatos_core";
model = "ESP32C3 Luatos Core";
compatible = "espressif,esp32c3";
aliases {

View File

@@ -19,4 +19,4 @@ testing:
ignore_tags:
- net
- bluetooth
vendor: espressif
vendor: luatos

View File

@@ -1,8 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_BOARD_ESP32C3_LUATOS_CORE=y
CONFIG_SOC_SERIES_ESP32C3=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_CONSOLE=y

View File

@@ -19,4 +19,4 @@ testing:
ignore_tags:
- net
- bluetooth
vendor: espressif
vendor: luatos

View File

@@ -1,8 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
CONFIG_BOARD_ESP32C3_LUATOS_CORE_USB=y
CONFIG_SOC_SERIES_ESP32C3=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_CONSOLE=y

10
boards/luatos/index.rst Normal file
View File

@@ -0,0 +1,10 @@
.. _boards-luatos:
Luatos
######
.. toctree::
:maxdepth: 1
:glob:
**/*