1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/external_boards: add esp32c3-ci board for optional modules

This commit is contained in:
Gunar Schorcht 2022-08-07 07:54:38 +02:00
parent 3f1ac8a6b3
commit 6d79c939de
7 changed files with 86 additions and 0 deletions

View File

@ -35,6 +35,7 @@ dwm1001
esp32-ci
esp32-heltec-lora32-v2
esp32-olimex-evb
esp32c3-ci
esp32c3-devkit
esp8266-ci
esp8266-esp-12x

View File

@ -0,0 +1,37 @@
# Copyright (c) 2020 HAW Hamburg
# 2022 Gunar Schorcht
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
config BOARD
default "esp32c3-ci" if BOARD_ESP32C3_CI
config BOARD_ESP32C3_CI
bool
default y
select BOARD_COMMON_ESP32C3
select CPU_MODEL_ESP32C3_MINI_1X
select HAS_ARDUINO
select HAS_ESP_RTC_TIMER_32K
select HAS_ESP_JTAG
select HAS_PERIPH_ADC
select HAS_PERIPH_I2C
select HAS_PERIPH_PWM
select HAS_PERIPH_SPI
select MODULE_BOARD_ESP32C3-CI
select MODULE_ESP_IDF_HEAP
config MODULE_BOARD_ESP32C3-CI
bool
if TEST_KCONFIG
choice ESP32_I2C_IMPLEMENTATION
default MODULE_ESP_I2C_HW
endchoice
endif # TEST_KCONFIG
source "$(RIOTBOARD)/common/esp32c3/Kconfig"

View File

@ -0,0 +1,6 @@
# This must be a different name than 'board' as it is implemented by 'esp32c3-devkit'
MODULE = board_esp32c3-ci
DIRS += $(RIOTBOARD)/esp32c3-devkit
include $(RIOTBASE)/Makefile.base

View File

@ -0,0 +1,24 @@
# This must be a different name than 'board' as it is implemented by 'esp32c3-devkit'
USEMODULE += board_esp32c3-ci
USEMODULE += esp_idf_heap
USEMODULE += esp_log_startup
USEMODULE += esp_log_tagged
ifneq (,$(filter periph_i2c,$(USEMODULE)))
USEMODULE += esp_i2c_hw
endif
ifneq (,$(filter netdev_default,$(USEMODULE)))
# if netdev_default is used, we use gnrc modules that are enabled
# in different examples to use different esp_wifi modules
ifneq (,$(filter gnrc_netif_single,$(USEMODULE)))
# if gnrc_netif_single module is enabled, esp_wifi_enterprise is used
USEMODULE += esp_wifi_enterprise
else
# in all other case esp_wifi_ap is enabled
USEMODULE += esp_wifi_ap
endif
endif
include $(RIOTBOARD)/esp32c3-devkit/Makefile.dep

View File

@ -0,0 +1,3 @@
FEATURES_PROVIDED += esp_rtc_timer_32k
include $(RIOTBOARD)/esp32c3-devkit/Makefile.features

View File

@ -0,0 +1,10 @@
# We must duplicate the include done by $(RIOTBASE)/Makefile.include
# to also include the main board header
INCLUDES += $(addprefix -I,$(wildcard $(RIOTBOARD)/esp32c3-devkit/include))
# ESP_WIFI_EAP_USER and ESP_WIFI_EAP_PASS have to be defined to compile the
# optional module esp_wifi_enterprise in CI
CFLAGS += -DESP_WIFI_EAP_USER=\"riot@riot-os.org\"
CFLAGS += -DESP_WIFI_EAP_PASS=\"riot\"
include $(RIOTBOARD)/esp32c3-devkit/Makefile.include

View File

@ -0,0 +1,5 @@
# Sets up configuration for openocd
CONFIG_MODULE_ESP_JTAG=y
CONFIG_MODULE_ESP_IDF_HEAP=y
CONFIG_MODULE_ESP_LOG_STARTUP=y
CONFIG_MODULE_ESP_LOG_TAGGED=y