Skip to content

Commit 0bda216

Browse files
adolfogccarlescufi
authored andcommitted
boards: xtensa: add heltec_wireless_stick_lite_v3
Adds support for the Wireless Stick Lite (V3), a development board from HelTec Automation. Signed-off-by: Adolfo E. García <[email protected]>
1 parent 7a9ff70 commit 0bda216

14 files changed

+723
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
if(CONFIG_GPIO_ESP32)
4+
zephyr_library()
5+
zephyr_library_sources(board_init.c)
6+
endif()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Heltec Wireless Stick Lite (V3) board configuration
2+
3+
# Copyright (c) 2021 Instituto de Pesquisas Eldorado (eldorado.org.br)
4+
# Copyright (c) 2023 The Zephyr Project Contributors
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
config BOARD_HELTEC_WIRELESS_STICK_LITE
8+
bool "Heltec Wireless Stick Lite (V3) Board"
9+
depends on SOC_SERIES_ESP32S3
10+
11+
choice SOC_PART_NUMBER
12+
default SOC_ESP32S3_FN8
13+
endchoice
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Heltec Wireless Stick Lite (V3) board configuration
2+
3+
# Copyright (c) 2021 Instituto de Pesquisas Eldorado (eldorado.org.br)
4+
# Copyright (c) 2023 The Zephyr Project Contributors
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
config BOARD
8+
default "heltec_wireless_stick_lite_v3"
9+
depends on BOARD_HELTEC_WIRELESS_STICK_LITE
10+
11+
config ENTROPY_GENERATOR
12+
default y
13+
14+
config HEAP_MEM_POOL_SIZE
15+
default 98304 if WIFI
16+
default 40960 if BT
17+
default 4096
18+
19+
choice BT_HCI_BUS_TYPE
20+
default BT_ESP32 if BT
21+
endchoice
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
choice BOOTLOADER
5+
default BOOTLOADER_MCUBOOT
6+
endchoice
7+
8+
choice BOOT_SIGNATURE_TYPE
9+
default BOOT_SIGNATURE_TYPE_NONE
10+
endchoice
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*")
4+
set(OPENOCD OPENOCD-NOTFOUND)
5+
endif()
6+
find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH)
7+
8+
include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
9+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2021 Instituto de Pesquisas Eldorado (eldorado.org.br)
3+
* Copyright (c) 2023 The Zephyr Project Contributors
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
#include <zephyr/device.h>
9+
#include <zephyr/drivers/gpio.h>
10+
#include <zephyr/init.h>
11+
12+
#define VEXT_PIN DT_GPIO_PIN(DT_NODELABEL(vext), gpios)
13+
14+
static int board_heltec_wireless_stick_lite_v3_init(void)
15+
{
16+
const struct device *gpio;
17+
18+
gpio = DEVICE_DT_GET(DT_NODELABEL(gpio0));
19+
if (!device_is_ready(gpio)) {
20+
return -ENODEV;
21+
}
22+
23+
/* turns external VCC on */
24+
gpio_pin_configure(gpio, VEXT_PIN, GPIO_OUTPUT);
25+
gpio_pin_set_raw(gpio, VEXT_PIN, 0);
26+
27+
return 0;
28+
}
29+
30+
SYS_INIT(board_heltec_wireless_stick_lite_v3_init, PRE_KERNEL_2, CONFIG_GPIO_INIT_PRIORITY);

0 commit comments

Comments
 (0)