Skip to content

Commit e15121a

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

18 files changed

+154
-31
lines changed

boards/boards_legacy/xtensa/heltec_wifi_lora32_v2/Kconfig.board

Lines changed: 0 additions & 12 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_HELTEC_WIFI_LORA32_V2
5+
select SOC_ESP32_PROCPU if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_PROCPU
6+
select SOC_ESP32_APPCPU if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_APPCPU

boards/boards_legacy/xtensa/heltec_wifi_lora32_v2/Kconfig.defconfig renamed to boards/heltec/heltec_wifi_lora32_v2/Kconfig.defconfig

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
# Copyright (c) 2021 Instituto de Pesquisas Eldorado (eldorado.org.br)
44
# SPDX-License-Identifier: Apache-2.0
55

6-
config BOARD
7-
default "heltec_wifi_lora32"
8-
depends on BOARD_HELTEC_WIFI_LORA32
9-
10-
config ENTROPY_GENERATOR
11-
default y
6+
if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_PROCPU
127

138
config HEAP_MEM_POOL_ADD_SIZE_BOARD
149
int
@@ -20,3 +15,12 @@ config HEAP_MEM_POOL_ADD_SIZE_BOARD
2015
choice BT_HCI_BUS_TYPE
2116
default BT_ESP32 if BT
2217
endchoice
18+
19+
endif # BOARD_HELTEC_WIFI_LORA32_V2_ESP32_PROCPU
20+
21+
if BOARD_HELTEC_WIFI_LORA32_V2_ESP32_APPCPU
22+
23+
config HEAP_MEM_POOL_ADD_SIZE_BOARD
24+
default 256
25+
26+
endif # BOARD_HELTEC_WIFI_LORA_V2_ESP32_APPCPU
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# HELTEC ESP32 board configuration
2+
3+
# Copyright (c) 2021 Instituto de Pesquisas Eldorado (eldorado.org.br)
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config BOARD_HELTEC_WIFI_LORA32_V2
7+
select SOC_ESP32_D0WD_V3
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
board:
2+
name: heltec_wifi_lora32_v2
3+
vendor: heltec
4+
socs:
5+
- name: esp32

boards/boards_legacy/xtensa/heltec_wifi_lora32_v2/doc/index.rst renamed to boards/heltec/heltec_wifi_lora32_v2/doc/index.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ Zephyr build. Output is structured by the domain subdirectories:
9494
9595
build/
9696
├── hello_world
97-
   └── zephyr
98-
   ├── zephyr.elf
99-
   └── zephyr.bin
97+
└── zephyr
98+
├── zephyr.elf
99+
└── zephyr.bin
100100
├── mcuboot
101101
│ └── zephyr
102102
│ ├── zephyr.elf
@@ -128,7 +128,7 @@ Build and flash applications as usual (see :ref:`build_an_application` and
128128

129129
.. zephyr-app-commands::
130130
:zephyr-app: samples/hello_world
131-
:board: heltec_wifi_lora32_v2
131+
:board: heltec_wifi_lora32_v2/esp32/procpu
132132
:goals: build
133133

134134
The usual ``flash`` target will work with the ``heltec_wifi_lora32_v2`` board
@@ -137,7 +137,7 @@ application.
137137

138138
.. zephyr-app-commands::
139139
:zephyr-app: samples/hello_world
140-
:board: heltec_wifi_lora32_v2
140+
:board: heltec_wifi_lora32_v2/esp32/procpu
141141
:goals: flash
142142

143143
Open the serial monitor using the following command:
@@ -169,15 +169,15 @@ Here is an example for building the :ref:`hello_world` application.
169169

170170
.. zephyr-app-commands::
171171
:zephyr-app: samples/hello_world
172-
:board: heltec_wifi_lora32_v2
172+
:board: heltec_wifi_lora32_v2/esp32/procpu
173173
:goals: build flash
174174
:gen-args: -DOPENOCD=<path/to/bin/openocd> -DOPENOCD_DEFAULT_PATH=<path/to/openocd/share/openocd/scripts>
175175

176176
You can debug an application in the usual way. Here is an example for the :ref:`hello_world` application.
177177

178178
.. zephyr-app-commands::
179179
:zephyr-app: samples/hello_world
180-
:board: heltec_wifi_lora32_v2
180+
:board: heltec_wifi_lora32_v2/esp32/procpu
181181
:goals: debug
182182

183183
Utilizing Hardware Features
@@ -192,7 +192,7 @@ connected via I2C. It can therefore be used by enabling the
192192

193193
.. zephyr-app-commands::
194194
:zephyr-app: samples/subsys/display/lvgl
195-
:board: heltec_wifi_lora32_v2
195+
:board: heltec_wifi_lora32_v2/esp32/procpu
196196
:shield: ssd1306_128x64
197197
:goals: flash
198198

0 commit comments

Comments
 (0)