This commit is contained in:
Antoine Drouin
2010-08-26 01:23:48 +00:00
parent 3204b082b3
commit 8e0b66b31a
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -226,7 +226,7 @@
<makefile>
include $(PAPARAZZI_SRC)/conf/autopilot/lisa_test_progs.makefile
#include $(PAPARAZZI_SRC)/conf/autopilot/lisa_test_progs.makefile
</makefile>
@@ -209,11 +209,14 @@ test_adc.TARGET = test_adc
test_adc.TARGETDIR = test_adc
test_adc.CFLAGS = -I$(SRC_LISA) -I$(ARCHI) -DPERIPHERALS_AUTO_INIT
test_adc.CFLAGS += -DBOARD_CONFIG=$(BOARD_CFG)
test_adc.srcs = $(SRC_LISA)/test_adc.c \
$(SRC_ARCH)/stm32_exceptions.c \
$(SRC_ARCH)/stm32_vector_table.c
test_adc.CFLAGS += -DUSE_LED
test_adc.srcs += $(SRC_ARCH)/led_hw.c
test_adc.CFLAGS += -DUSE_SYS_TIME
test_adc.CFLAGS +=-DSYS_TIME_LED=$(SYS_TIME_LED)
test_adc.CFLAGS += -DPERIODIC_TASK_PERIOD='SYS_TICS_OF_SEC(1./512.)'
+1 -1
View File
@@ -80,7 +80,7 @@ static inline void main_event_task( void ) {
uint16_t v1 = 123;
uint16_t v2 = 123;
v1 = (((adc0_buf.values[0])));
v2 = (((adc1_buf.values[0])));
v2 = (((adc3_buf.values[0])));
RunOnceEvery(100, {DOWNLINK_SEND_ADC_GENERIC(DefaultChannel, &v1, &v2)});
}
+2 -2
View File
@@ -1,7 +1,7 @@
/*
* $Id: adc_hw.c 5313 2010-08-11 18:46:20Z flixr $
* $Id$
*
* Copyright (C) 2008 Pascal Brisset, Antoine Drouin
* Copyright (C) 2010 The Paparazzi Team
*
* This file is part of paparazzi.
*