obsoleted [MODEM|GPS]_UART_NR=[0123], please use [GPS|MODEM]_PORT=UART[0123]. Now fixedwing and rotorcraft port config is the same

This commit is contained in:
Felix Ruess
2011-01-07 21:35:56 +01:00
parent 067019229c
commit 5fdfc59096
16 changed files with 49 additions and 61 deletions
+2 -2
View File
@@ -185,7 +185,7 @@
<!-- Communication -->
<subsystem name="telemetry" type="transparent">
<configure name="MODEM_UART_NR" value="2"/>
<configure name="MODEM_PORT" value="UART2"/>
<configure name="MODEM_BAUD" value="B57600"/>
</subsystem>
@@ -201,7 +201,7 @@
</subsystem>-->
<subsystem name="gps" type="ublox_lea4p">
<configure name="GPS_UART_NR" value="1"/>
<configure name="GPS_PORT" value="UART1"/>
</subsystem>
</firmware>
+1 -1
View File
@@ -18,7 +18,7 @@
<subsystem name="control"/>
<subsystem name="attitude" type="infrared"/>
<subsystem name="gps" type="ublox_lea5h">
<param name="GPS_UART_NR" value="3"/>
<configure name="GPS_PORT" value="UART3"/>
</subsystem>
<subsystem name="navigation"/>
</firmware>
+1 -1
View File
@@ -18,7 +18,7 @@
<subsystem name="control"/>
<subsystem name="attitude" type="infrared"/>
<subsystem name="gps" type="ublox_lea5h">
<param name="GPS_UART_NR" value="3"/>
<configure name="GPS_PORT" value="UART3"/>
</subsystem>
<subsystem name="navigation"/>
</firmware>
+3 -2
View File
@@ -189,7 +189,6 @@
<firmware name="rotorcraft">
<target name="ap" board="lisa_l_1.0">
<define name="GPS_UART_NR" value="3"/>
<!-- <define name="BOOZ_START_DELAY" value="1"/> -->
<subsystem name="radio_control" type="ppm"/>
<subsystem name="actuators" type="mkk"/>
@@ -201,7 +200,9 @@
</target>
<subsystem name="imu" type="b2_v1.1"/>
<subsystem name="gps" type="ublox"/>
<subsystem name="gps" type="ublox">
<configure name="GPS_PORT" value="UART3"/>
</subsystem>
<subsystem name="ahrs" type="cmpl"/>
</firmware>
@@ -2,9 +2,9 @@
ap.CFLAGS += -DUSE_GPS -DUBX
ap.CFLAGS += -DGPS_LINK=Uart$(GPS_UART_NR)
ap.CFLAGS += -DUSE_UART$(GPS_UART_NR)
ap.CFLAGS += -DUART$(GPS_UART_NR)_BAUD=$(GPS_BAUD)
ap.CFLAGS += -DGPS_LINK=$(GPS_PORT)
ap.CFLAGS += -DUSE_$(GPS_PORT)
ap.CFLAGS += -D$(GPS_PORT)_BAUD=$(GPS_BAUD)
ifneq ($(GPS_LED),none)
ap.CFLAGS += -DGPS_LED=$(GPS_LED)
@@ -2,9 +2,9 @@
ap.CFLAGS += -DUSE_GPS -DUBX -DGPS_USE_LATLONG
ap.CFLAGS += -DGPS_LINK=Uart$(GPS_UART_NR)
ap.CFLAGS += -DUSE_UART$(GPS_UART_NR)
ap.CFLAGS += -DUART$(GPS_UART_NR)_BAUD=$(GPS_BAUD)
ap.CFLAGS += -DGPS_LINK=$(GPS_PORT)
ap.CFLAGS += -DUSE_$(GPS_PORT)
ap.CFLAGS += -D$(GPS_PORT)_BAUD=$(GPS_BAUD)
ifneq ($(GPS_LED),none)
ap.CFLAGS += -DGPS_LED=$(GPS_LED)
@@ -1,12 +1,8 @@
ap.CFLAGS += -DUSE_UART$(MODEM_UART_NR)
ap.CFLAGS += -DUART$(MODEM_UART_NR)_BAUD=$(MODEM_BAUD)
ap.CFLAGS += -DUSE_$(MODEM_PORT)
ap.CFLAGS += -D$(MODEM_PORT)_BAUD=$(MODEM_BAUD)
MODEM_UART = Uart$(MODEM_UART_NR)
ap.CFLAGS += -DDOWNLINK -DDOWNLINK_FBW_DEVICE=$(MODEM_UART) -DDOWNLINK_AP_DEVICE=$(MODEM_UART) -DPPRZ_UART=$(MODEM_UART)
ap.CFLAGS += -DDOWNLINK -DDOWNLINK_FBW_DEVICE=$(MODEM_PORT) -DDOWNLINK_AP_DEVICE=$(MODEM_PORT) -DPPRZ_UART=$(MODEM_PORT)
ap.CFLAGS += -DDOWNLINK_TRANSPORT=PprzTransport -DDATALINK=PPRZ
ap.srcs += $(SRC_FIXEDWING)/downlink.c $(SRC_FIRMWARE)/datalink.c $(SRC_FIXEDWING)/pprz_transport.c
@@ -1,10 +1,8 @@
# XBee modems in API mode
ap.CFLAGS += -DUSE_UART$(MODEM_UART_NR)
ap.CFLAGS += -DUART$(MODEM_UART_NR)_BAUD=$(MODEM_BAUD)
ap.CFLAGS += -DUSE_$(MODEM_PORT)
ap.CFLAGS += -D$(MODEM_PORT)_BAUD=$(MODEM_BAUD)
MODEM_UART = Uart$(MODEM_UART_NR)
ap.CFLAGS += -DDOWNLINK -DDOWNLINK_FBW_DEVICE=$(MODEM_UART) -DDOWNLINK_AP_DEVICE=$(MODEM_UART) -DXBEE_UART=$(MODEM_UART)
ap.CFLAGS += -DDOWNLINK -DDOWNLINK_FBW_DEVICE=$(MODEM_PORT) -DDOWNLINK_AP_DEVICE=$(MODEM_PORT) -DXBEE_UART=$(MODEM_PORT)
ap.CFLAGS += -DDOWNLINK_TRANSPORT=XBeeTransport -DDATALINK=XBEE
ap.srcs += $(SRC_FIXEDWING)/downlink.c $(SRC_FIRMWARE)/datalink.c $(SRC_FIXEDWING)/xbee.c
+1 -1
View File
@@ -22,7 +22,7 @@ LPC21ISP_XTAL = 12000
### default settings for classix
GPS_BAUD = B38400
GPS_BAUD = B38400
GPS_LED = none
# All targets on the TINY board run on the same processor achitecture
+2 -12
View File
@@ -30,22 +30,12 @@ MODEM_BAUD = B57600
endif
ifndef GPS_PORT
GPS_PORT=UART1
GPS_PORT = UART1
endif
ifndef GPS_BAUD
GPS_BAUD=B38400
GPS_BAUD = B38400
endif
#
# definitions below were added to get fixedwing firmware to build
#
# modem is usualy connected there
ifndef MODEM_UART_NR
MODEM_UART_NR = 0
endif
ifndef GPS_UART_NR
GPS_UART_NR = 1
endif
ifndef ADC_IR1
ADC_IR1 = 1
-8
View File
@@ -69,14 +69,6 @@ MAX_1168_DRDY_PORT_SOURCE = PortSourceGPIOD
#MAX_1168_DRDY_PORT = GPIOB
#
# definitions below were added to get fixedwing firmware to build
#
# modem is usualy connected there
ifndef MODEM_UART_NR
MODEM_UART_NR = 2
endif
ifndef ADC_IR1
ADC_IR1 = 1
ADC_IR1_CHAN = 0
+4 -10
View File
@@ -42,8 +42,12 @@ endif
#AHRS_ALIGNER_LED = 7
ifndef GPS_PORT
GPS_PORT=UART1
endif
ifndef GPS_BAUD
GPS_BAUD=B38400
endif
GPS_LED = none
#
@@ -57,13 +61,6 @@ MAX_1168_DRDY_PORT_SOURCE = PortSourceGPIOD
#MAX_1168_DRDY_PORT = GPIOB
#
# definitions below were added to get fixedwing firmware to build
#
# modem is usualy connected there
ifndef MODEM_UART_NR
MODEM_UART_NR = 2
endif
ifndef ADC_IR1
ADC_IR1 = 1
@@ -80,6 +77,3 @@ endif
ifndef ADC_IR_NB_SAMPLES
ADC_IR_NB_SAMPLES = 16
endif
ifndef GPS_UART_NR
GPS_UART_NR = 1
endif
+2 -2
View File
@@ -13,6 +13,6 @@ BOARD_VERSION=0.99
BOARD_CFG=\"boards/$(BOARD)_$(BOARD_VERSION).h\"
GPS_UART_NR = 1
GPS_PORT = UART1
GPS_LED = none
MODEM_UART_NR = 0
MODEM_PORT = UART0
+2 -2
View File
@@ -13,6 +13,6 @@ BOARD_VERSION=1.1
BOARD_CFG=\"boards/$(BOARD)_$(BOARD_VERSION).h\"
GPS_UART_NR = 1
GPS_PORT = UART1
GPS_LED = none
MODEM_UART_NR = 0
MODEM_PORT = UART0
+11 -2
View File
@@ -21,11 +21,20 @@ LPC21ISP_XTAL = 12000
### default settings for tiny_2 and twog
GPS_UART_NR = 0
ifndef GPS_PORT
GPS_PORT = UART0
endif
ifndef GPS_BAUD
GPS_BAUD = B38400
endif
GPS_LED = 2
MODEM_UART_NR = 1
ifndef MODEM_PORT
MODEM_PORT = UART1
endif
ifndef MODEM_BAUD
MODEM_BAUD = B57600
endif
ADC_IR_TOP = ADC_0
ADC_IR1 = ADC_1
+8
View File
@@ -42,6 +42,14 @@ ifneq ($(MAKECMDGOALS),clean)
endif
endif
# check for obsolete MODEM_UART_NR and GPS_UART_NR makefile vars
ifdef GPS_UART_NR
$(error GPS_UART_NR is obsolete, please use GPS_PORT instead to define the Uart to use, e.g. <configure name="GPS_PORT" value="UART1"/>)
endif
ifdef MODEM_UART_NR
$(error MODEM_UART_NR is obsolete, please use MODEM_PORT instead to define the Uart to use, e.g. <configure name="MODEM_PORT" value="UART1"/>)
endif
$(TARGET).install : warn_conf
warn_conf :