-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/external_boards: add esp32s3-ci board for optional modules
- Loading branch information
Showing
7 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
tests/external_board_dirs/esp-ci-boards/esp32s3-ci/Kconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright (c) 2020 HAW Hamburg | ||
# | ||
# 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 "esp32s3-ci" if BOARD_ESP32S3_CI | ||
|
||
config BOARD_ESP32S3_CI | ||
bool | ||
default y | ||
select BOARD_COMMON_ESP32S3 | ||
select CPU_MODEL_ESP32S3_WROOM_1X_N8R8 | ||
select HAS_ARDUINO | ||
select HAS_ESP_JTAG | ||
select HAS_ESP_RTC_TIMER_32K | ||
select HAS_PERIPH_ADC | ||
select HAS_PERIPH_I2C | ||
select HAS_PERIPH_PWM | ||
select HAS_PERIPH_SPI | ||
|
||
select MODULE_BOARD_ESP32S3-CI | ||
|
||
config MODULE_BOARD_ESP32S3-CI | ||
bool | ||
|
||
if TEST_KCONFIG | ||
|
||
choice ESP32_I2C_IMPLEMENTATION | ||
default MODULE_ESP_I2C_HW | ||
endchoice | ||
|
||
config MODULE_ESP_HW_COUNTER | ||
default y | ||
depends on MODULE_PERIPH_TIMER | ||
|
||
endif # TEST_KCONFIG | ||
|
||
source "$(RIOTBOARD)/common/esp32s3/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This must be a different name than 'board' as it is implemented by 'esp32s3-devkit' | ||
MODULE = board_esp32s3-ci | ||
|
||
DIRS += $(RIOTBOARD)/esp32s3-devkit | ||
|
||
include $(RIOTBASE)/Makefile.base |
30 changes: 30 additions & 0 deletions
30
tests/external_board_dirs/esp-ci-boards/esp32s3-ci/Makefile.dep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This must be a different name than 'board' as it is implemented by 'esp32s3-devkit' | ||
USEMODULE += board_esp32s3-ci | ||
|
||
USEMODULE += esp_idf_heap | ||
USEMODULE += esp_jtag | ||
USEMODULE += esp_log_startup | ||
USEMODULE += esp_log_tagged | ||
USEMODULE += esp_spi_ram | ||
|
||
ifneq (,$(filter periph_i2c,$(USEMODULE))) | ||
USEMODULE += esp_i2c_hw | ||
endif | ||
|
||
ifneq (,$(filter periph_timer,$(USEMODULE))) | ||
USEMODULE += esp_hw_counter | ||
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)/esp32s3-devkit/Makefile.dep |
6 changes: 6 additions & 0 deletions
6
tests/external_board_dirs/esp-ci-boards/esp32s3-ci/Makefile.features
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FEATURES_PROVIDED += esp_jtag | ||
FEATURES_PROVIDED += esp_rtc_timer_32k | ||
|
||
BOARD_VERSION = esp32s3-devkitc-1-n8r8 | ||
|
||
include $(RIOTBOARD)/esp32s3-devkit/Makefile.features |
10 changes: 10 additions & 0 deletions
10
tests/external_board_dirs/esp-ci-boards/esp32s3-ci/Makefile.include
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)/esp32s3-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=\"[email protected]\" | ||
CFLAGS += -DESP_WIFI_EAP_PASS=\"riot\" | ||
|
||
include $(RIOTBOARD)/esp32s3-devkit/Makefile.include |
6 changes: 6 additions & 0 deletions
6
tests/external_board_dirs/esp-ci-boards/esp32s3-ci/esp32s3-ci.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Sets up configuration for openocd | ||
CONFIG_MODULE_ESP_IDF_HEAP=y | ||
CONFIG_MODULE_ESP_JTAG=y | ||
CONFIG_MODULE_ESP_LOG_STARTUP=y | ||
CONFIG_MODULE_ESP_LOG_TAGGED=y | ||
CONFIG_MODULE_ESP_SPI_RAM=y |