[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [5791] moved test_adxl345 to new test prog makefile
From: |
antoine drouin |
Subject: |
[paparazzi-commits] [5791] moved test_adxl345 to new test prog makefile |
Date: |
Thu, 02 Sep 2010 19:32:17 +0000 |
Revision: 5791
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5791
Author: poine
Date: 2010-09-02 19:32:17 +0000 (Thu, 02 Sep 2010)
Log Message:
-----------
moved test_adxl345 to new test prog makefile
Modified Paths:
--------------
paparazzi3/trunk/conf/airframes/Poine/booz2_a7.xml
paparazzi3/trunk/conf/autopilot/lisa_l_test_progs.makefile
paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_hmc5843.c
Modified: paparazzi3/trunk/conf/airframes/Poine/booz2_a7.xml
===================================================================
--- paparazzi3/trunk/conf/airframes/Poine/booz2_a7.xml 2010-09-02 18:29:43 UTC
(rev 5790)
+++ paparazzi3/trunk/conf/airframes/Poine/booz2_a7.xml 2010-09-02 19:32:17 UTC
(rev 5791)
@@ -210,6 +210,7 @@
<target name="test_adc" board="lisa_l_1.0"/>
<target name="test_hmc5843" board="lisa_l_1.0"/>
<target name="test_itg3200" board="lisa_l_1.0"/>
+ <target name="test_adxl345" board="lisa_l_1.0"/>
</firmware>
<firmware name="lisa_passthrough">
Modified: paparazzi3/trunk/conf/autopilot/lisa_l_test_progs.makefile
===================================================================
--- paparazzi3/trunk/conf/autopilot/lisa_l_test_progs.makefile 2010-09-02
18:29:43 UTC (rev 5790)
+++ paparazzi3/trunk/conf/autopilot/lisa_l_test_progs.makefile 2010-09-02
19:32:17 UTC (rev 5791)
@@ -321,16 +321,45 @@
test_itg3200.CFLAGS += -DUSE_LED
test_itg3200.srcs += $(SRC_ARCH)/led_hw.c
-test_itg3200.CFLAGS += -DUSE_SYS_TIME -DSYS_TIME_LED=1
+test_itg3200.CFLAGS += -DUSE_SYS_TIME -DSYS_TIME_LED=$(SYS_TIME_LED)
test_itg3200.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC((1./512.))'
test_itg3200.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c
-test_itg3200.CFLAGS += -DUSE_UART2 -DUART2_BAUD=B57600
+test_itg3200.CFLAGS += -DUSE_$(MODEM_PORT) -D$(MODEM_PORT)_BAUD=$(MODEM_BAUD)
test_itg3200.srcs += $(SRC_ARCH)/uart_hw.c
-test_itg3200.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport
-DDOWNLINK_DEVICE=Uart2
+test_itg3200.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport
-DDOWNLINK_DEVICE=$(MODEM_PORT)
test_itg3200.srcs += downlink.c pprz_transport.c
test_itg3200.CFLAGS += -DUSE_I2C2
test_itg3200.srcs += i2c.c $(SRC_ARCH)/i2c_hw.c
-test_itg3200.CFLAGS += -DUSE_EXTI15_10_IRQ # Gyro Int on PC14
\ No newline at end of file
+test_itg3200.CFLAGS += -DUSE_EXTI15_10_IRQ # Gyro Int on PC14
+
+
+#
+# test adxl345 with DMA
+#
+test_adxl345.ARCHDIR = $(ARCHI)
+test_adxl345.TARGET = test_adxl345
+test_adxl345.TARGETDIR = test_adxl345
+test_adxl345.CFLAGS = -I$(SRC_LISA) -I$(ARCHI) -I$(SRC_BOOZ)
-I$(SRC_BOOZ_ARCH) -DPERIPHERALS_AUTO_INIT
+test_adxl345.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
+test_adxl345.srcs += lisa/test/lisa_test_adxl345_dma.c \
+ $(SRC_ARCH)/stm32_exceptions.c \
+ $(SRC_ARCH)/stm32_vector_table.c
+
+test_adxl345.CFLAGS += -DUSE_LED
+test_adxl345.srcs += $(SRC_ARCH)/led_hw.c
+
+test_adxl345.CFLAGS += -DUSE_SYS_TIME -DSYS_TIME_LED=1
+test_adxl345.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC((1./512.))'
+test_adxl345.srcs += sys_time.c $(SRC_ARCH)/sys_time_hw.c
+
+test_adxl345.CFLAGS += -DUSE_UART2 -DUART2_BAUD=B57600
+test_adxl345.srcs += $(SRC_ARCH)/uart_hw.c
+
+test_adxl345.CFLAGS += -DDOWNLINK -DDOWNLINK_TRANSPORT=PprzTransport
-DDOWNLINK_DEVICE=Uart2
+test_adxl345.srcs += downlink.c pprz_transport.c
+
+test_adxl345.CFLAGS += -DUSE_EXTI2_IRQ # Accel Int on PD2
+test_adxl345.CFLAGS += -DUSE_DMA1_C4_IRQ # SPI2 Rx DMA
\ No newline at end of file
Modified: paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_hmc5843.c
===================================================================
--- paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_hmc5843.c 2010-09-02
18:29:43 UTC (rev 5790)
+++ paparazzi3/trunk/sw/airborne/lisa/test/lisa_test_hmc5843.c 2010-09-02
19:32:17 UTC (rev 5791)
@@ -43,7 +43,6 @@
static inline void main_init_hw(void);
-//static uint8_t i2c_done = FALSE;
static struct i2c_transaction i2c_trans;
#define INITIALIZED 6
static uint8_t mag_state = 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [5791] moved test_adxl345 to new test prog makefile,
antoine drouin <=