paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5539] made RADIO_CONTROL_LINK configurable


From: antoine drouin
Subject: [paparazzi-commits] [5539] made RADIO_CONTROL_LINK configurable
Date: Sat, 21 Aug 2010 20:47:52 +0000

Revision: 5539
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5539
Author:   poine
Date:     2010-08-21 20:47:52 +0000 (Sat, 21 Aug 2010)
Log Message:
-----------
made RADIO_CONTROL_LINK configurable

Modified Paths:
--------------
    
paparazzi3/trunk/conf/autopilot/subsystems/rotorcraft/radio_control_spektrum.makefile

Modified: 
paparazzi3/trunk/conf/autopilot/subsystems/rotorcraft/radio_control_spektrum.makefile
===================================================================
--- 
paparazzi3/trunk/conf/autopilot/subsystems/rotorcraft/radio_control_spektrum.makefile
       2010-08-21 20:46:19 UTC (rev 5538)
+++ 
paparazzi3/trunk/conf/autopilot/subsystems/rotorcraft/radio_control_spektrum.makefile
       2010-08-21 20:47:52 UTC (rev 5539)
@@ -1,5 +1,5 @@
 #
-# Autopilot
+# Makefile for radio_control susbsytem in rotorcraft firmware
 #
 ifndef RADIO_CONTROL_SPEKTRUM_MODEL
 
RADIO_CONTROL_SPEKTRUM_MODEL=\"booz/radio_control/booz_radio_control_spektrum_dx7se.h\"
@@ -8,17 +8,11 @@
 ap.CFLAGS += -DUSE_RADIO_CONTROL 
-DRADIO_CONTROL_BIND_IMPL_FUNC=radio_control_spektrum_try_bind
 ap.CFLAGS += 
-DRADIO_CONTROL_TYPE_H=\"booz/radio_control/booz_radio_control_spektrum.h\"
 ap.CFLAGS += -DRADIO_CONTROL_SPEKTRUM_MODEL_H=$(RADIO_CONTROL_SPEKTRUM_MODEL)
+ap.CFLAGS += -DRADIO_CONTROL_LED=$(RADIO_CONTROL_LED)
+ap.CFLAGS += -DRADIO_CONTROL_LINK=$(RADIO_CONTROL_LINK)
+ap.CFLAGS += -DUSE_$(RADIO_CONTROL_LINK) -D$(RADIO_CONTROL_LINK)_BAUD=B115200
 
 ap.srcs += $(SRC_BOOZ)/booz_radio_control.c \
            $(SRC_BOOZ)/radio_control/booz_radio_control_spektrum.c \
           $(SRC_BOOZ_ARCH)/radio_control/booz_radio_control_spektrum_arch.c
-ifeq ($(ARCHI), arm7)
-ap.CFLAGS += -DRADIO_CONTROL_LED=1
-ap.CFLAGS += -DUSE_UART0 -DUART0_BAUD=B115200
-ap.CFLAGS += -DRADIO_CONTROL_LINK=Uart0
-else ifeq ($(ARCHI), stm32)
-ap.CFLAGS += -DRADIO_CONTROL_LED=5
-ap.CFLAGS += -DUSE_UART3 -DUART3_BAUD=B115200
-ap.CFLAGS += -DRADIO_CONTROL_LINK=Uart3
-endif
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]