mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 09:36:19 +08:00
made adc_init called by mcu_init when PERIPHERALS_AUTO_INIT is defined
This commit is contained in:
@@ -136,7 +136,7 @@ ns_srcs += $(SRC_ARCH)/mcu_periph/uart_arch.c
|
||||
# ANALOG
|
||||
#
|
||||
|
||||
ns_CFLAGS += -DADC
|
||||
ns_CFLAGS += -DUSE_ADC
|
||||
#ifeq ($(ARCH), lpc21)
|
||||
ns_srcs += $(SRC_ARCH)/mcu_periph/adc_arch.c
|
||||
ifeq ($(ARCH), stm32)
|
||||
|
||||
@@ -17,7 +17,7 @@ tunnel.srcs += $(SRC_ARCH)/uart_tunnel.c
|
||||
# A test program to monitor the ADC values
|
||||
test_adcs.ARCHDIR = $(ARCH)
|
||||
|
||||
test_adcs.CFLAGS += -DBOARD_CONFIG=$(CONFIG) -DLED -DTIME_LED=1 -DADC -DUSE_ADC_0 -DUSE_ADC_1 -DUSE_ADC_2 -DUSE_ADC_3 -DUSE_ADC_4 -DUSE_ADC_5 -DUSE_ADC_6 -DUSE_ADC_7
|
||||
test_adcs.CFLAGS += -DBOARD_CONFIG=$(CONFIG) -DLED -DTIME_LED=1 -DUSE_ADC -DUSE_ADC_0 -DUSE_ADC_1 -DUSE_ADC_2 -DUSE_ADC_3 -DUSE_ADC_4 -DUSE_ADC_5 -DUSE_ADC_6 -DUSE_ADC_7
|
||||
test_adcs.CFLAGS += -DDOWNLINK -DUSE_UART0 -DDOWNLINK_TRANSPORT=XBeeTransport -DDOWNLINK_FBW_DEVICE=Uart0 -DDOWNLINK_AP_DEVICE=Uart0 -DXBEE_UART=Uart0 -DDATALINK=XBEE -DUART0_BAUD=B9600
|
||||
test_adcs.srcs += downlink.c $(SRC_ARCH)/uart_hw.c xbee.c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user