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

drivers/ws281x/Kconfig: Select mega cpu by cpu_core

The current MODULE_WS281X_ATMEGA only supports ATmega core.
This update Kconfig to select MODULE_WS281X_ATMEGA module by
CPU_CORE_AVR_MEGA instead HAS_ARCH_AVR8.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke 2021-02-05 19:16:51 -03:00
parent b843cfb5c2
commit 9cbe8bceeb
2 changed files with 6 additions and 6 deletions

View File

@ -7,16 +7,16 @@
config MODULE_WS281X
bool "WS2812/SK6812 RGB LED (NeoPixel)"
depends on HAS_ARCH_AVR8 || HAS_ARCH_ESP32 || HAS_ARCH_NATIVE
depends on HAS_CPU_CORE_ATMEGA || HAS_ARCH_ESP32 || HAS_ARCH_NATIVE
depends on TEST_KCONFIG
select MODULE_XTIMER
select MODULE_WS281X_ATMEGA if HAS_ARCH_AVR8
select MODULE_WS281X_ATMEGA if HAS_CPU_CORE_ATMEGA
select MODULE_WS281X_VT100 if HAS_ARCH_NATIVE
select MODULE_WS281X_ESP32 if HAS_ARCH_ESP32
config MODULE_WS281X_ATMEGA
bool
depends on HAS_ARCH_AVR8
depends on HAS_CPU_CORE_ATMEGA
config MODULE_WS281X_VT100
bool

View File

@ -1,7 +1,7 @@
FEATURES_REQUIRED_ANY += arch_avr8|arch_esp32|arch_native
FEATURES_REQUIRED_ANY += cpu_core_atmega|arch_esp32|arch_native
ifeq (,$(filter ws281x_%,$(USEMODULE)))
ifneq (,$(filter arch_avr8,$(FEATURES_USED)))
ifneq (,$(filter cpu_core_atmega,$(FEATURES_USED)))
USEMODULE += ws281x_atmega
endif
ifneq (,$(filter arch_native,$(FEATURES_USED)))
@ -13,7 +13,7 @@ ifeq (,$(filter ws281x_%,$(USEMODULE)))
endif
ifneq (,$(filter ws281x_atmega,$(USEMODULE)))
FEATURES_REQUIRED += arch_avr8
FEATURES_REQUIRED += cpu_core_atmega
endif
USEMODULE += xtimer