arch/arm/src/lpc32xx: lpc32_adc.c was being selected by the build system wehn DAC was selected.

This commit is contained in:
Gregory Nutt 2017-11-27 10:11:22 -06:00
parent fb49472ec8
commit 4eda9e92de

View File

@ -122,15 +122,11 @@ endif
ifeq ($(CONFIG_LPC43_SPI),y)
CHIP_CSRCS += lpc43_spi.c
else
ifeq ($(CONFIG_LPC43_SSP0),y)
else ifeq ($(CONFIG_LPC43_SSP0),y)
CHIP_CSRCS += lpc43_spi.c
else
ifeq ($(CONFIG_LPC43_SSP1),y)
else ifeq ($(CONFIG_LPC43_SSP1),y)
CHIP_CSRCS += lpc43_spi.c
endif
endif
endif
ifeq ($(CONFIG_LPC43_SPIFI),y)
CHIP_CSRCS += lpc43_spifi.c
@ -138,11 +134,9 @@ endif
ifeq ($(CONFIG_LPC43_SSP0),y)
CHIP_CSRCS += lpc43_ssp.c
else
ifeq ($(CONFIG_LPC43_SSP1),y)
else ifeq ($(CONFIG_LPC43_SSP1),y)
CHIP_CSRCS += lpc43_ssp.c
endif
endif
ifeq ($(CONFIG_LPC43_TIMER),y)
CHIP_CSRCS += lpc43_timer.c
@ -154,34 +148,24 @@ endif
ifeq ($(CONFIG_LPC43_I2C0),y)
CHIP_CSRCS += lpc43_i2c.c
else
ifeq ($(CONFIG_LPC43_I2C1),y)
else ifeq ($(CONFIG_LPC43_I2C1),y)
CHIP_CSRCS += lpc43_i2c.c
endif
endif
ifeq ($(CONFIG_LPC43_CAN0),y)
CHIP_CSRCS += lpc43_can.c
else
ifeq ($(CONFIG_LPC43_CAN1),y)
else ifeq ($(CONFIG_LPC43_CAN1),y)
CHIP_CSRCS += lpc43_can.c
endif
endif
ifeq ($(CONFIG_LPC43_ADC0),y)
CHIP_CSRCS += lpc43_adc.c
else
ifeq ($(CONFIG_LPC43_ADC1),y)
else ifeq ($(CONFIG_LPC43_ADC1),y)
CHIP_CSRCS += lpc43_adc.c
endif
endif
ifeq ($(CONFIG_LPC43_DAC),y)
CHIP_CSRCS += lpc43_adc.c
else
ifeq ($(CONFIG_LPC43_DAC),y)
CHIP_CSRCS += lpc43_adc.c
endif
CHIP_CSRCS += lpc43_dac.c
endif
ifeq ($(CONFIG_LPC43_USBOTG),y)