mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
make it possible to set RADIO_CONTROL_LED to none
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -37,6 +37,7 @@ GPS_BAUD = B38400
|
||||
endif
|
||||
|
||||
GPS_LED = 2
|
||||
RADIO_CONTROL_LED = none
|
||||
|
||||
ifndef ADC_IR1
|
||||
ADC_IR1 = 1
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -29,6 +29,8 @@ GPS_BAUD = B38400
|
||||
endif
|
||||
GPS_LED = 2
|
||||
|
||||
RADIO_CONTROL_LED = none
|
||||
|
||||
ifndef MODEM_PORT
|
||||
MODEM_PORT = UART1
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user