2020-06-08 11:25:08 +02:00
|
|
|
# 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 CPU_ARCH_XTENSA
|
|
|
|
bool
|
|
|
|
select HAS_ARCH_32BIT
|
|
|
|
select HAS_ARCH_ESP
|
2022-06-25 19:43:33 +02:00
|
|
|
select HAS_ARCH_ESP_XTENSA
|
2022-08-24 17:15:37 +02:00
|
|
|
help
|
|
|
|
Xtensa based architecture is used for the ESP8266 or the ESP32x SoC variant
|
|
|
|
|
|
|
|
config CPU_ARCH_RISCV
|
|
|
|
bool
|
|
|
|
select HAS_ARCH_32BIT
|
|
|
|
select HAS_ARCH_ESP
|
|
|
|
select HAS_ARCH_ESP_RISCV
|
|
|
|
help
|
|
|
|
RISC-V based architecture is used for the ESP32x SoC variant.
|
2020-06-08 11:25:08 +02:00
|
|
|
|
|
|
|
config CPU_COMMON_ESP
|
|
|
|
bool
|
|
|
|
select HAS_CPP
|
|
|
|
select HAS_ESP_NOW
|
|
|
|
select HAS_ESP_SPIFFS
|
|
|
|
select HAS_ESP_WIFI
|
2020-05-22 15:13:14 +02:00
|
|
|
select HAS_ESP_WIFI_AP
|
2020-07-12 22:53:30 +02:00
|
|
|
select HAS_LIBSTDCPP
|
2021-12-23 10:35:07 +01:00
|
|
|
select HAS_NEWLIB
|
2020-06-08 11:25:08 +02:00
|
|
|
select HAS_PERIPH_CPUID
|
2021-12-23 10:35:07 +01:00
|
|
|
select HAS_PERIPH_GPIO
|
|
|
|
select HAS_PERIPH_GPIO_IRQ
|
2020-06-08 11:25:08 +02:00
|
|
|
select HAS_PERIPH_HWRNG
|
|
|
|
select HAS_PERIPH_PM
|
2021-12-23 10:35:07 +01:00
|
|
|
select HAS_PERIPH_RTC
|
|
|
|
select HAS_PERIPH_RTT
|
|
|
|
select HAS_PERIPH_RTT_OVERFLOW
|
|
|
|
select HAS_PERIPH_RTT_SET_COUNTER
|
2020-06-08 11:25:08 +02:00
|
|
|
select HAS_PERIPH_TIMER
|
2021-12-23 10:35:07 +01:00
|
|
|
select HAS_PERIPH_UART_MODECFG
|
2020-06-08 11:25:08 +02:00
|
|
|
select HAS_SSP
|
|
|
|
|
|
|
|
## Declaration of specific features
|
|
|
|
config HAS_ESP_SPIFFS
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a Serial Peripheral Interface Flash File System can be
|
|
|
|
used.
|
|
|
|
|
|
|
|
config HAS_ESP_WIFI
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that an ESP WiFi radio is present.
|
|
|
|
|
2020-05-22 15:13:14 +02:00
|
|
|
config HAS_ESP_WIFI_AP
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that ESP WiFi SoftAP support is present.
|
|
|
|
|
2020-06-08 11:25:08 +02:00
|
|
|
config HAS_ESP_NOW
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that an ESP NOW-compatible radio is present.
|
|
|
|
|
2020-08-31 22:48:10 +02:00
|
|
|
config HAS_ESP_JTAG
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that a JTAG interface is present.
|
|
|
|
|
2020-06-08 11:25:08 +02:00
|
|
|
config HAS_ARCH_ESP
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that an 'ESP' architecture is being used.
|
|
|
|
|
2022-06-25 19:43:33 +02:00
|
|
|
config HAS_ARCH_ESP_XTENSA
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that an Xtensa-based 'ESP' architecture is being used.
|
|
|
|
|
2022-06-25 23:52:15 +02:00
|
|
|
config HAS_ARCH_ESP_RISCV
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that an RISC-V-based 'ESP' architecture is being used.
|
|
|
|
|
2021-11-30 12:03:13 +01:00
|
|
|
config HAS_ESP_WIFI_ENTERPRISE
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Indicates that the platform supports WPA2 enterprise mode for the WiFi
|
|
|
|
interface.
|
|
|
|
|
2020-06-08 11:25:08 +02:00
|
|
|
## Common CPU symbols
|
|
|
|
config CPU_ARCH
|
|
|
|
default "xtensa" if CPU_ARCH_XTENSA
|
2022-08-24 17:15:37 +02:00
|
|
|
default "rv32" if CPU_ARCH_RISCV
|
2021-11-18 17:15:34 +01:00
|
|
|
|
|
|
|
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
|
2022-06-17 07:17:40 +02:00
|
|
|
select MODULE_CORE_THREAD_FLAGS if MODULE_ZTIMER_MSEC
|
2021-11-18 17:15:34 +01:00
|
|
|
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"
|
|
|
|
|
2022-02-04 08:23:45 +01:00
|
|
|
config MODULE_ESP_QEMU
|
|
|
|
bool "Simulate ESP with QEMU"
|
|
|
|
|
2022-06-25 23:52:15 +02:00
|
|
|
rsource "esp-riscv/Kconfig"
|
2022-06-25 19:43:33 +02:00
|
|
|
rsource "esp-xtensa/Kconfig"
|
2021-11-18 17:15:34 +01:00
|
|
|
rsource "freertos/Kconfig"
|
|
|
|
rsource "periph/Kconfig"
|
|
|
|
rsource "vendor/xtensa/Kconfig"
|
2022-07-18 09:51:45 +02:00
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
endif # TEST_KCONFIG
|