mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
d6c2926933
The vendor binary libraries of ESP-IDF are provided as a separate GIT repository. These libraries are defined as separate package for two reasons: 1. RIOT packages don't support to clone GIT repositories recursively; 2. ESP-IDF pulls a lot of other GIT repositories that are not needed when it is cloned recursively.
135 lines
3.3 KiB
Plaintext
135 lines
3.3 KiB
Plaintext
# Copyright (c) 2020 HAW Hamburg
|
|
# 2021 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 CPU_CORE_XTENSA_LX6
|
|
bool
|
|
select CPU_ARCH_XTENSA
|
|
|
|
config CPU_FAM_ESP32
|
|
bool
|
|
select CPU_COMMON_ESP
|
|
select CPU_CORE_XTENSA_LX6
|
|
select HAS_ARCH_ESP32
|
|
select HAS_CPU_ESP32
|
|
select HAS_ESP_WIFI_ENTERPRISE
|
|
select HAS_PERIPH_ADC_CTRL
|
|
|
|
select PACKAGE_ESP32_SDK if TEST_KCONFIG
|
|
select MODULE_PERIPH_RTT if HAS_PERIPH_RTT && MODULE_PM_LAYERED
|
|
select MODULE_RTT_RTC if HAS_PERIPH_RTT && MODULE_PERIPH_RTC
|
|
select MODULE_PS if MODULE_SHELL
|
|
select MODULE_ESP_IDF_DRIVER if TEST_KCONFIG
|
|
select MODULE_ESP_IDF_ESP32 if TEST_KCONFIG
|
|
select MODULE_ESP_IDF_SOC if TEST_KCONFIG
|
|
imply MODULE_NEWLIB_NANO
|
|
|
|
## CPU Models
|
|
config CPU_MODEL_ESP32_WROOM_32
|
|
bool
|
|
select CPU_FAM_ESP32
|
|
|
|
config CPU_MODEL_ESP32_WROVER
|
|
bool
|
|
select CPU_FAM_ESP32
|
|
select HAS_ESP_SPI_RAM
|
|
|
|
config CPU_MODEL_ESP32_WROVER_B
|
|
bool
|
|
select CPU_FAM_ESP32
|
|
select HAS_ESP_SPI_RAM
|
|
|
|
config CPU_MODEL_ESP32_WROVER_E
|
|
bool
|
|
select CPU_FAM_ESP32
|
|
select HAS_ESP_SPI_RAM
|
|
|
|
config CPU_MODEL_ESP32_D0WD
|
|
bool
|
|
select CPU_FAM_ESP32
|
|
|
|
## Definition of specific features
|
|
config HAS_ARCH_ESP32
|
|
bool
|
|
help
|
|
Indicates that the current architecture is ESP32.
|
|
|
|
config HAS_CPU_ESP32
|
|
bool
|
|
help
|
|
Indicates that the current CPU is 'esp32'.
|
|
|
|
config HAS_ESP_RTC_TIMER_32K
|
|
bool
|
|
help
|
|
Indicates that an external 32.768 kHz crystal is connected to the ESP32
|
|
in the board.
|
|
|
|
config HAS_ESP_SPI_RAM
|
|
bool
|
|
help
|
|
Indicates that an external RAM is connected via the FSPI interface in
|
|
the board.
|
|
|
|
config HAS_PERIPH_ADC_CTRL
|
|
bool
|
|
help
|
|
Indicates that an ESP32 ADC controller peripheral is present.
|
|
|
|
## Common CPU symbols
|
|
config CPU_CORE
|
|
default "xtensa-lx6" if CPU_CORE_XTENSA_LX6
|
|
|
|
config CPU_FAM
|
|
default "esp32" if CPU_FAM_ESP32
|
|
|
|
config CPU_MODEL
|
|
default "esp32-wroom_32" if CPU_MODEL_ESP32_WROOM_32
|
|
default "esp32-wrover" if CPU_MODEL_ESP32_WROVER
|
|
default "esp32-wrover" if CPU_MODEL_ESP32_WROVER_B
|
|
default "esp32-wrover" if CPU_MODEL_ESP32_WROVER_E
|
|
default "esp32-d0wd" if CPU_MODEL_ESP32_D0WD
|
|
|
|
config CPU
|
|
default "esp32" if CPU_FAM_ESP32
|
|
|
|
menu "ESP32 specific configurations"
|
|
depends on TEST_KCONFIG
|
|
depends on HAS_ARCH_ESP32
|
|
|
|
choice
|
|
bool "CPU clock frequency"
|
|
default ESP32_DEFAULT_CPU_FREQ_MHZ_80
|
|
|
|
config ESP32_DEFAULT_CPU_FREQ_MHZ_2
|
|
bool "2 MHz"
|
|
config ESP32_DEFAULT_CPU_FREQ_MHZ_40
|
|
bool "40 MHz"
|
|
config ESP32_DEFAULT_CPU_FREQ_MHZ_80
|
|
bool "80 MHz"
|
|
config ESP32_DEFAULT_CPU_FREQ_MHZ_160
|
|
bool "160 MHz"
|
|
config ESP32_DEFAULT_CPU_FREQ_MHZ_240
|
|
bool "240 MHz"
|
|
endchoice
|
|
|
|
config MODULE_ESP_SPI_RAM
|
|
bool "SPI RAM support"
|
|
depends on HAS_ESP_SPI_RAM
|
|
select MODULE_ESP_IDF_HEAP
|
|
help
|
|
Say y to use external SPI RAM connected through the FSPI interface.
|
|
|
|
config MODULE_ESP_JTAG
|
|
bool "Enable JTAG debugging interface"
|
|
depends on HAS_ESP_JTAG
|
|
|
|
endmenu
|
|
|
|
rsource "periph/Kconfig"
|
|
rsource "vendor/esp-idf/Kconfig"
|
|
source "$(RIOTCPU)/esp_common/Kconfig"
|