1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/drivers/ws281x/Makefile.dep
2023-03-29 00:47:35 +02:00

31 lines
834 B
Makefile

FEATURES_REQUIRED_ANY += cpu_core_atmega|arch_esp32|arch_native
ifeq (,$(filter ws281x_%,$(USEMODULE)))
ifneq (,$(filter cpu_core_atmega,$(FEATURES_USED)))
USEMODULE += ws281x_atmega
endif
ifneq (,$(filter arch_native,$(FEATURES_USED)))
USEMODULE += ws281x_vt100
endif
ifneq (,$(filter arch_esp32,$(FEATURES_USED)))
USEMODULE += ws281x_esp32
endif
endif
ifneq (,$(filter ws281x_atmega,$(USEMODULE)))
FEATURES_REQUIRED += cpu_core_atmega
endif
ifneq (,$(filter ws281x_esp32%,$(USEMODULE)))
FEATURES_REQUIRED += arch_esp32
ifneq (,$(filter ws281x_esp32_sw,$(USEMODULE)))
USEMODULE += ws281x_esp32
else
# use ESP32x RMT hardware implementation by default
FEATURES_REQUIRED += esp_rmt
USEMODULE += esp_idf_rmt
USEMODULE += ws281x_esp32
USEMODULE += ws281x_esp32_hw
endif
endif