mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
bd3f54ac8f
This adds the features - periph_gpio_ll_input_pull_down: To indicate support for input mode with internal pull down - periph_gpio_ll_input_pull_keep: To indicate support for input mode with internal resistor pulling towards current level - periph_gpio_ll_input_pull_up: To indicate support for input mode with internal pull up - periph_gpio_ll_disconnect: To indicate a GPIO can be disconnected - periph_gpio_ll_open_drain: To indicate support for open drain mode - periph_gpio_ll_open_drain_pull_up: To indicate support for open drain mode with internal pull up - periph_gpio_ll_open_source: To indicate support for open source mode - periph_gpio_ll_open_source_pull_down: To indicate support for open source mode with internal pull down
75 lines
2.3 KiB
Makefile
75 lines
2.3 KiB
Makefile
ifeq (esp32,$(CPU_FAM))
|
|
CPU_ARCH = xtensa
|
|
CPU_CORE = xtensa-lx6
|
|
else ifneq (,$(filter esp32c3,$(CPU_FAM)))
|
|
CPU_ARCH = rv32
|
|
CPU_CORE = rv32imc
|
|
else ifneq (,$(filter esp32s2 esp32s3,$(CPU_FAM)))
|
|
CPU_ARCH = xtensa
|
|
CPU_CORE = xtensa-lx7
|
|
else
|
|
$(error Unkwnown ESP32x SoC variant (family))
|
|
endif
|
|
|
|
# MCU defined features that are provided independent on board definitions
|
|
|
|
include $(RIOTCPU)/esp_common/Makefile.features
|
|
|
|
FEATURES_PROVIDED += arch_esp32
|
|
FEATURES_PROVIDED += esp_rmt
|
|
FEATURES_PROVIDED += esp_wifi_enterprise
|
|
FEATURES_PROVIDED += periph_flashpage
|
|
FEATURES_PROVIDED += periph_flashpage_in_address_space
|
|
FEATURES_PROVIDED += periph_flashpage_pagewise
|
|
FEATURES_PROVIDED += periph_gpio_ll
|
|
FEATURES_PROVIDED += periph_gpio_ll_disconnect
|
|
FEATURES_PROVIDED += periph_gpio_ll_input_pull_down
|
|
FEATURES_PROVIDED += periph_gpio_ll_input_pull_up
|
|
FEATURES_PROVIDED += periph_gpio_ll_irq
|
|
FEATURES_PROVIDED += periph_gpio_ll_irq_level_triggered_high
|
|
FEATURES_PROVIDED += periph_gpio_ll_irq_level_triggered_low
|
|
FEATURES_PROVIDED += periph_gpio_ll_open_drain
|
|
FEATURES_PROVIDED += periph_gpio_ll_open_drain_pull_up
|
|
FEATURES_PROVIDED += periph_spi_reconfigure
|
|
FEATURES_PROVIDED += puf_sram
|
|
|
|
ifeq (xtensa,$(CPU_ARCH))
|
|
FEATURES_PROVIDED += esp_hw_counter
|
|
endif
|
|
|
|
ifeq (esp32,$(CPU_FAM))
|
|
FEATURES_PROVIDED += ble_nimble
|
|
FEATURES_PROVIDED += ble_nimble_netif
|
|
FEATURES_PROVIDED += esp_ble
|
|
FEATURES_PROVIDED += esp_ble_esp32
|
|
else ifneq (,$(filter esp32c3 esp32s3,$(CPU_FAM)))
|
|
FEATURES_PROVIDED += ble_adv_ext
|
|
FEATURES_PROVIDED += ble_nimble
|
|
FEATURES_PROVIDED += ble_nimble_netif
|
|
FEATURES_PROVIDED += ble_phy_2mbit
|
|
FEATURES_PROVIDED += esp_ble
|
|
FEATURES_PROVIDED += esp_ble_esp32c3
|
|
endif
|
|
|
|
ifneq (,$(filter esp32 esp32s3,$(CPU_FAM)))
|
|
FEATURES_PROVIDED += periph_sdmmc_auto_clk
|
|
FEATURES_PROVIDED += periph_sdmmc_auto_cmd12
|
|
FEATURES_PROVIDED += periph_sdmmc_mmc
|
|
ifeq (esp32s3,$(CPU_FAM))
|
|
FEATURES_PROVIDED += periph_sdmmc_hs
|
|
endif
|
|
endif
|
|
|
|
ifneq (,$(filter esp32-wrover% esp32s2%r2 esp32s3%r2 esp32s3%r8 esp32s3%r8v,$(CPU_MODEL)))
|
|
FEATURES_PROVIDED += esp_spi_ram
|
|
ifneq (,$(filter esp32s3%r8 esp32s3%r8v,$(CPU_MODEL)))
|
|
FEATURES_PROVIDED += esp_spi_oct
|
|
endif
|
|
endif
|
|
|
|
# This configuration enables modules that are only available when using Kconfig
|
|
# module modelling
|
|
ifeq (1, $(TEST_KCONFIG))
|
|
KCONFIG_ADD_CONFIG += $(RIOTCPU)/esp32/esp32.config
|
|
endif
|