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

cpu/esp8266: model Kconfig

This commit is contained in:
Leandro Lanzieri 2021-11-18 17:17:51 +01:00
parent bfdfbb1a48
commit 185d1a20df
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593
15 changed files with 164 additions and 0 deletions

View File

@ -19,6 +19,17 @@ config CPU_FAM_ESP8266
select HAS_PERIPH_RTT_OVERFLOW
select HAS_PERIPH_RTT_SET_COUNTER
select PACKAGE_ESP8266_SDK if TEST_KCONFIG
select MODULE_ESP_SDK if TEST_KCONFIG
select MODULE_ESP_IDF_ESP8266 if TEST_KCONFIG
select MODULE_ESP_IDF_NVS_FLASH if TEST_KCONFIG
select MODULE_ESP_IDF_SPI_FLASH if TEST_KCONFIG
select MODULE_ESP_IDF_UTIL if TEST_KCONFIG
select MODULE_ESP_IDF_WPA_SUPPLICANT_CRYPTO if TEST_KCONFIG
select MODULE_ESP_SDK if TEST_KCONFIG
select MODULE_PERIPH_COMMON if TEST_KCONFIG
select MODULE_RTT_RTC if HAS_PERIPH_RTT && MODULE_PERIPH_RTC
## CPU Models
config CPU_MODEL_ESP8266EX
bool
@ -54,3 +65,11 @@ config CPU
default "esp8266" if CPU_FAM_ESP8266
source "$(RIOTCPU)/esp_common/Kconfig"
config MODULE_ESP_I2C_SW
bool
default y if MODULE_PERIPH_I2C
select MODULE_PERIPH_I2C_SW
rsource "sdk/Kconfig"
rsource "vendor/Kconfig"

View File

@ -9,3 +9,9 @@ FEATURES_PROVIDED += periph_rtt
FEATURES_PROVIDED += periph_rtc
FEATURES_PROVIDED += periph_rtt_overflow
FEATURES_PROVIDED += periph_rtt_set_counter
# This configuration enables modules that are only available when using Kconfig
# module modelling
ifeq (1, $(TEST_KCONFIG))
KCONFIG_ADD_CONFIG += $(RIOTCPU)/esp8266/esp8266.config
endif

View File

@ -0,0 +1,2 @@
CONFIG_MODULE_MTD=y
CONFIG_MODULE_PS=y

11
cpu/esp8266/sdk/Kconfig Normal file
View File

@ -0,0 +1,11 @@
# 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_ESP_SDK
bool
depends on TEST_KCONFIG
depends on HAS_ARCH_ESP8266

9
cpu/esp8266/vendor/Kconfig vendored Normal file
View File

@ -0,0 +1,9 @@
# 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.
#
rsource "esp-gdbstub/Kconfig"
rsource "esp-idf/Kconfig"

11
cpu/esp8266/vendor/esp-gdbstub/Kconfig vendored Normal file
View File

@ -0,0 +1,11 @@
# 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_ESP_GDBSTUB
bool "gdbstub interface support"
depends on TEST_KCONFIG
depends on HAS_ARCH_ESP8266

18
cpu/esp8266/vendor/esp-idf/Kconfig vendored Normal file
View File

@ -0,0 +1,18 @@
# 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_ESP_IDF
bool
depends on TEST_KCONFIG
depends on HAS_ARCH_ESP8266
rsource "esp8266/source/Kconfig"
rsource "heap/src/Kconfig"
rsource "nvs_flash/src/Kconfig"
rsource "spi_flash/Kconfig"
rsource "util/src/Kconfig"
rsource "wpa_supplicant/Kconfig"

View File

@ -0,0 +1,11 @@
# 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_ESP_IDF_ESP8266
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF

View File

@ -0,0 +1,11 @@
# 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_ESP_IDF_HEAP
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF

View File

@ -0,0 +1,13 @@
# 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_ESP_IDF_NVS_FLASH
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF
help
Non-volatile storage library.

View File

@ -0,0 +1,11 @@
# 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_ESP_IDF_SPI_FLASH
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF

View File

@ -0,0 +1,11 @@
# 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_ESP_IDF_UTIL
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF

View File

@ -0,0 +1,9 @@
# 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.
#
rsource "port/Kconfig"
rsource "src/crypto/Kconfig"

View File

@ -0,0 +1,11 @@
# 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_ESP_IDF_WPA_SUPPLICANT_PORT
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF

View File

@ -0,0 +1,11 @@
# 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_ESP_IDF_WPA_SUPPLICANT_CRYPTO
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF