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

cpu/esp32/esp-idf: add ESP-IDF RMT driver module

This commit is contained in:
Gunar Schorcht 2023-03-26 18:32:27 +02:00
parent 6cb4a66ff6
commit 45d69df4c0
4 changed files with 36 additions and 0 deletions

View File

@ -27,6 +27,7 @@ rsource "event/Kconfig"
rsource "gpio/Kconfig"
rsource "heap/Kconfig"
rsource "nvs_flash/Kconfig"
rsource "rmt/Kconfig"
rsource "spi_flash/Kconfig"
rsource "spi_ram/Kconfig"
rsource "usb/Kconfig"

View File

@ -40,6 +40,10 @@ ifneq (,$(filter esp_idf_nvs_flash,$(USEMODULE)))
DIRS += nvs_flash
endif
ifneq (,$(filter esp_idf_rmt,$(USEMODULE)))
DIRS += rmt
endif
ifneq (,$(filter esp_idf_spi_flash,$(USEMODULE)))
DIRS += spi_flash
endif

View File

@ -0,0 +1,16 @@
# Copyright (c) 2022 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 MODULE_ESP_IDF_RMT
bool
depends on TEST_KCONFIG
depends on MODULE_ESP_IDF && HAS_ESP_RMT
default y if MODULE_WS281X_ESP32 && MODULE_WS281X_ESP32_HW
help
ESP-IDF code for peripheral GPIO.

View File

@ -0,0 +1,15 @@
MODULE = esp_idf_rmt
# source files to be compiled for this module
ESP32_SDK_SRC = \
components/driver/rmt.c \
components/soc/$(CPU_FAM)/rmt_periph.c \
components/hal/rmt_hal.c \
#
include $(RIOTBASE)/Makefile.base
ESP32_SDK_BIN = $(BINDIR)/$(MODULE)
include ../esp_idf.mk
include ../esp_idf_cflags.mk