[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6115] add usb_tunnel to setup.makefile
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [6115] add usb_tunnel to setup.makefile |
Date: |
Fri, 08 Oct 2010 21:48:58 +0000 |
Revision: 6115
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6115
Author: flixr
Date: 2010-10-08 21:48:56 +0000 (Fri, 08 Oct 2010)
Log Message:
-----------
add usb_tunnel to setup.makefile
Modified Paths:
--------------
paparazzi3/trunk/conf/airframes/microjet_example.xml
paparazzi3/trunk/conf/airframes/twinjet_example.xml
paparazzi3/trunk/conf/autopilot/setup.makefile
Modified: paparazzi3/trunk/conf/airframes/microjet_example.xml
===================================================================
--- paparazzi3/trunk/conf/airframes/microjet_example.xml 2010-10-08
20:48:30 UTC (rev 6114)
+++ paparazzi3/trunk/conf/airframes/microjet_example.xml 2010-10-08
21:48:56 UTC (rev 6115)
@@ -186,6 +186,8 @@
<firmware name="setup">
<target name="tunnel" board="tiny_1.1" />
+ <target name="usb_tunnel_0" board="tiny_1.1" />
+ <target name="usb_tunnel_1" board="tiny_1.1" />
<target name="setup_actuators" board="tiny_1.1" />
</firmware>
Modified: paparazzi3/trunk/conf/airframes/twinjet_example.xml
===================================================================
--- paparazzi3/trunk/conf/airframes/twinjet_example.xml 2010-10-08 20:48:30 UTC
(rev 6114)
+++ paparazzi3/trunk/conf/airframes/twinjet_example.xml 2010-10-08 21:48:56 UTC
(rev 6115)
@@ -33,8 +33,10 @@
</firmware>
<firmware name="setup">
- <target name="tunnel" board="twog_1" />
- <target name="setup_actuators" board="twog_1" />
+ <target name="tunnel" board="twog_1" />
+ <target name="usb_tunnel_0" board="twog_1" />
+ <target name="usb_tunnel_1" board="twog_1" />
+ <target name="setup_actuators" board="twog_1" />
</firmware>
<servos>
Modified: paparazzi3/trunk/conf/autopilot/setup.makefile
===================================================================
--- paparazzi3/trunk/conf/autopilot/setup.makefile 2010-10-08 20:48:30 UTC
(rev 6114)
+++ paparazzi3/trunk/conf/autopilot/setup.makefile 2010-10-08 21:48:56 UTC
(rev 6115)
@@ -14,21 +14,44 @@
SETUP_INC = -I$(SRC_SETUP) -I$(SRC_SETUP_ARCH)
+# for the usb_tunnel we need to set PCLK higher
+# so we just use tiny_2_1_1_usb.h as board file for the usb tunnels
+ifeq ($(TARGET), usb_tunnel_0)
+ usb_tunnel_0.CFLAGS += -DBOARD_CONFIG=\"tiny_2_1_1_usb.h\"
+else
+ ifeq ($(TARGET), usb_tunnel_1)
+ usb_tunnel_1.CFLAGS += -DBOARD_CONFIG=\"tiny_2_1_1_usb.h\"
+ else
+ $(TARGET).CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
+ endif
+endif
-$(TARGET).CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
-
# a test program to tunnel between both uart
-
tunnel.CFLAGS += -DFBW -DLED
tunnel.srcs += $(SRC_ARCH)/uart_tunnel.c
+# a configuration program to access both uart through usb
+usb_tunnel_0.CFLAGS += -DFBW -DUSE_UART0 -DUART0_BAUD=B115200
+usb_tunnel_0.CFLAGS += -DUSE_USB_LINE_CODING -DUSE_USB_SERIAL -DLED
+usb_tunnel_0.srcs += $(SRC_ARCH)/usb_tunnel.c $(SRC_ARCH)/usb_ser_hw.c
$(SRC_ARCH)/uart_hw.c
+usb_tunnel_0.srcs += $(SRC_ARCH)/lpcusb/usbhw_lpc.c
$(SRC_ARCH)/lpcusb/usbinit.c
+usb_tunnel_0.srcs += $(SRC_ARCH)/lpcusb/usbcontrol.c
$(SRC_ARCH)/lpcusb/usbstdreq.c
+usb_tunnel_0.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c $(SRC_ARCH)/armVIC.c
+
+usb_tunnel_1.CFLAGS += -DFBW -DUSE_UART1 -DUART1_BAUD=B115200
+usb_tunnel_1.CFLAGS += -DUSE_USB_LINE_CODING -DUSE_USB_SERIAL -DLED
+usb_tunnel_1.srcs += $(SRC_ARCH)/usb_tunnel.c $(SRC_ARCH)/usb_ser_hw.c
$(SRC_ARCH)/uart_hw.c
+usb_tunnel_1.srcs += $(SRC_ARCH)/lpcusb/usbhw_lpc.c
$(SRC_ARCH)/lpcusb/usbinit.c
+usb_tunnel_1.srcs += $(SRC_ARCH)/lpcusb/usbcontrol.c
$(SRC_ARCH)/lpcusb/usbstdreq.c
+usb_tunnel_1.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c $(SRC_ARCH)/armVIC.c
+
+
+
# a test program to setup actuators
setup_actuators.CFLAGS += -DFBW -DLED -DTIME_LED=1
-DACTUATORS=\"servos_4017_hw.h\" -DSERVOS_4017
-setup_actuators.CFLAGS += -DUSE_UART1 -DUART1_BAUD=B57600
-DDOWNLINK_DEVICE=Uart1 -DPPRZ_UART=Uart1
-setup_actuators.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport
-DDATALINK=PPRZ
+setup_actuators.CFLAGS += -DUSE_UART1 -DUART1_BAUD=B57600
-DDOWNLINK_DEVICE=Uart1 -DPPRZ_UART=Uart1
+setup_actuators.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport
-DDATALINK=PPRZ
setup_actuators.CFLAGS += -DDOWNLINK_FBW_DEVICE=Uart1
-DDOWNLINK_AP_DEVICE=Uart1
setup_actuators.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c
$(SRC_ARCH)/armVIC.c pprz_transport.c downlink.c actuators.c setup_actuators.c
$(SRC_ARCH)/uart_hw.c $(SRC_ARCH)/servos_4017_hw.c main.c
-
-
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6115] add usb_tunnel to setup.makefile,
Felix Ruess <=