mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 22:13:52 +01:00
cpu/esp_common: model Kconfig
This commit is contained in:
parent
831101eea5
commit
7a8f58ac4c
@ -59,3 +59,47 @@ config HAS_ARCH_ESP
|
||||
## Common CPU symbols
|
||||
config CPU_ARCH
|
||||
default "xtensa" if CPU_ARCH_XTENSA
|
||||
|
||||
config MODULE_ESP_COMMON
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on CPU_COMMON_ESP
|
||||
default y
|
||||
select MODULE_LOG # override default log implementation by default
|
||||
select MODULE_PERIPH
|
||||
select MODULE_ESP_IDF
|
||||
help
|
||||
Common code module for ESP SoCs.
|
||||
|
||||
config MODULE_PERIPH_FLASH
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on CPU_COMMON_ESP
|
||||
default y if MODULE_MTD
|
||||
help
|
||||
Low-level MTD flash driver implementation for ESP SoCs.
|
||||
|
||||
if TEST_KCONFIG
|
||||
|
||||
menu "ESP configurations"
|
||||
|
||||
config MODULE_ESP_LOG_COLORED
|
||||
bool
|
||||
default y if MODULE_LOG_COLOR
|
||||
|
||||
config MODULE_ESP_LOG_TAGGED
|
||||
bool "Add additional information to the log output"
|
||||
help
|
||||
Adds the type of the message, the system time in ms and a tag (module
|
||||
or function) to the output.
|
||||
|
||||
config MODULE_ESP_LOG_STARTUP
|
||||
bool "Add additional startup information to the log output"
|
||||
|
||||
endmenu
|
||||
|
||||
endif # TEST_KCONFIG
|
||||
|
||||
rsource "freertos/Kconfig"
|
||||
rsource "periph/Kconfig"
|
||||
rsource "vendor/xtensa/Kconfig"
|
||||
|
||||
@ -19,3 +19,9 @@ FEATURES_PROVIDED += ssp
|
||||
|
||||
FEATURES_CONFLICT += esp_wifi_ap:esp_now
|
||||
FEATURES_CONFLICT_MSG += "ESP_NOW and ESP_WIFI_AP can not be used at the same time."
|
||||
|
||||
# This configuration enables modules that are only available when using Kconfig
|
||||
# module modelling
|
||||
ifeq (1, $(TEST_KCONFIG))
|
||||
KCONFIG_ADD_CONFIG += $(RIOTCPU)/esp_common/esp_common.config
|
||||
endif
|
||||
|
||||
11
cpu/esp_common/esp_common.config
Normal file
11
cpu/esp_common/esp_common.config
Normal file
@ -0,0 +1,11 @@
|
||||
CONFIG_MODULE_RANDOM=y
|
||||
# Should be autoselecting the MODULE_PRNG_HWRNG if possible
|
||||
# Since the makefile cannot we have to override until end of migration
|
||||
# Remove when TEST_KCONFIG is complete
|
||||
CONFIG_MODULE_PRNG_MUSL_LCG=y
|
||||
CONFIG_MODULE_PERIPH_HWRNG=y
|
||||
CONFIG_MODULE_PERIPH_UART=y
|
||||
CONFIG_MODULE_NEWLIB=y
|
||||
|
||||
# Vendor code uses C++
|
||||
CONFIG_MODULE_CPP=y
|
||||
20
cpu/esp_common/freertos/Kconfig
Normal file
20
cpu/esp_common/freertos/Kconfig
Normal file
@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2021 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.
|
||||
#
|
||||
|
||||
if TEST_KCONFIG && HAS_ARCH_ESP
|
||||
|
||||
config MODULE_ESP_FREERTOS
|
||||
bool
|
||||
default y
|
||||
help
|
||||
FreeRTOS to RIOT-OS adaption module for ESP SoCs source code compatibility.
|
||||
|
||||
config MODULE_ESP_FREERTOS_COMMON
|
||||
bool
|
||||
default MODULE_ESP_FREERTOS
|
||||
|
||||
endif # TEST_KCONFIG && HAS_ARCH_ESP
|
||||
20
cpu/esp_common/periph/Kconfig
Normal file
20
cpu/esp_common/periph/Kconfig
Normal file
@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2021 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.
|
||||
#
|
||||
|
||||
if TEST_KCONFIG
|
||||
|
||||
config MODULE_ESP_COMMON_PERIPH
|
||||
bool
|
||||
depends on HAS_ARCH_ESP
|
||||
default y
|
||||
|
||||
config MODULE_PERIPH_I2C_SW
|
||||
bool
|
||||
help
|
||||
Software implementation of I2C.
|
||||
|
||||
endif # TEST_KCONFIG
|
||||
15
cpu/esp_common/vendor/xtensa/Kconfig
vendored
Normal file
15
cpu/esp_common/vendor/xtensa/Kconfig
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2021 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 MODULE_XTENSA
|
||||
bool
|
||||
depends on TEST_KCONFIG
|
||||
depends on HAS_ARCH_ESP
|
||||
default y
|
||||
help
|
||||
Third-party software components used by the RIOT port for ESP32 and
|
||||
ESP8266.
|
||||
Loading…
x
Reference in New Issue
Block a user