make it possible to set RADIO_CONTROL_LED to none

This commit is contained in:
Felix Ruess
2011-12-05 20:23:33 +01:00
parent 033b29c4f6
commit 9329809f53
6 changed files with 8 additions and 2 deletions
@@ -12,7 +12,7 @@ endif
ifeq ($(NORADIO), False)
$(TARGET).CFLAGS += -DRADIO_CONTROL
ifdef RADIO_CONTROL_LED
ifneq ($(RADIO_CONTROL_LED),none)
ap.CFLAGS += -DRADIO_CONTROL_LED=$(RADIO_CONTROL_LED)
endif
$(TARGET).CFLAGS += -DRADIO_CONTROL_TYPE_H=\"subsystems/radio_control/ppm.h\"
@@ -10,7 +10,7 @@ ap.CFLAGS += -DRADIO_CONTROL_TYPE_H=\"subsystems/radio_control/spektrum.h\"
ifeq ($(ARCH), lpc21)
ap.CFLAGS += -DRADIO_CONTROL_SPEKTRUM_MODEL_H=$(RADIO_CONTROL_SPEKTRUM_MODEL)
endif
ifdef RADIO_CONTROL_LED
ifneq ($(RADIO_CONTROL_LED),none)
ap.CFLAGS += -DRADIO_CONTROL_LED=$(RADIO_CONTROL_LED)
endif
ap.CFLAGS += -DRADIO_CONTROL_SPEKTRUM_PRIMARY_PORT=$(RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT)
+1
View File
@@ -24,6 +24,7 @@ LPC21ISP_XTAL = 12000
### default settings for classix
GPS_BAUD = B38400
GPS_LED = none
RADIO_CONTROL_LED = none
# All targets on the TINY board run on the same processor achitecture
$(TARGET).ARCHDIR = $(ARCH)
+1
View File
@@ -37,6 +37,7 @@ GPS_BAUD = B38400
endif
GPS_LED = 2
RADIO_CONTROL_LED = none
ifndef ADC_IR1
ADC_IR1 = 1
+2
View File
@@ -36,6 +36,8 @@ ifndef MODEM_BAUD
MODEM_BAUD = B57600
endif
RADIO_CONTROL_LED = none
ADC_IR_TOP = ADC_0
ADC_IR1 = ADC_1
ADC_IR2 = ADC_2
+2
View File
@@ -29,6 +29,8 @@ GPS_BAUD = B38400
endif
GPS_LED = 2
RADIO_CONTROL_LED = none
ifndef MODEM_PORT
MODEM_PORT = UART1
endif