configs/freedom-k28f: If drivers/leds/rgbled.c is enabled, then treat the board as though it had no discrete LEDs.

This commit is contained in:
Gregory Nutt 2018-05-05 13:01:23 -06:00
parent ec7c4020f9
commit a9f96ebdad
2 changed files with 12 additions and 7 deletions

View File

@ -223,7 +223,7 @@ config ARCH_BOARD_FLIPNCLICK_SAM3X
config ARCH_BOARD_FREEDOM_K28F
bool "NXP Freedom-k28f development board"
depends on ARCH_CHIP_MK28FN2M0VMI15
select ARCH_HAVE_LEDS
select ARCH_HAVE_LEDS if !RGBLED
select ARCH_HAVE_BUTTONS
select ARCH_HAVE_IRQBUTTONS
---help---

View File

@ -38,21 +38,26 @@
ASRCS =
CSRCS = k28_boot.c k28_bringup.c k28_spi.c k28_i2c.c
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += k28_appinit.c
endif
# If the RGB driver is not enabled, then treat the RGB as 3 LEDs
ifneq ($(CONFIG_RGBLED),y)
ifeq ($(CONFIG_ARCH_LEDS),y)
CSRCS += k28_autoleds.c
else
CSRCS += k28_userleds.c
endif
ifeq ($(CONFIG_KINETIS_USBOTG),y)
CSRCS += k28_usbdev.c
endif
ifeq ($(CONFIG_LIB_BOARDCTL),y)
CSRCS += k28_appinit.c
endif
ifeq ($(CONFIG_PWM),y)
CSRCS += k28_pwm.c
endif
ifeq ($(CONFIG_KINETIS_USBOTG),y)
CSRCS += k28_usbdev.c
endif
include $(TOPDIR)/configs/Board.mk