aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/stm32
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-07-07 17:53:55 -0700
committerpx4dev <px4@purgatory.org>2013-07-07 17:53:55 -0700
commitb4029dd824cec7a0b53c62e960f80d90ddc6e13c (patch)
tree2bae71f23af17bb0d9de26a914c859ec9af1e010 /src/drivers/stm32
parent43f1843cc750fcef07122feaeca07863ed28c036 (diff)
downloadpx4-firmware-b4029dd824cec7a0b53c62e960f80d90ddc6e13c.tar.gz
px4-firmware-b4029dd824cec7a0b53c62e960f80d90ddc6e13c.tar.bz2
px4-firmware-b4029dd824cec7a0b53c62e960f80d90ddc6e13c.zip
Pull v2 pieces up to build with the merge
Diffstat (limited to 'src/drivers/stm32')
-rw-r--r--src/drivers/stm32/drv_hrt.c8
-rw-r--r--src/drivers/stm32/tone_alarm/tone_alarm.cpp4
2 files changed, 4 insertions, 8 deletions
diff --git a/src/drivers/stm32/drv_hrt.c b/src/drivers/stm32/drv_hrt.c
index 7ef3db970..1cc18afda 100644
--- a/src/drivers/stm32/drv_hrt.c
+++ b/src/drivers/stm32/drv_hrt.c
@@ -70,7 +70,7 @@
#include "stm32_gpio.h"
#include "stm32_tim.h"
-#ifdef CONFIG_HRT_TIMER
+#ifdef HRT_TIMER
/* HRT configuration */
#if HRT_TIMER == 1
@@ -275,7 +275,7 @@ static void hrt_call_invoke(void);
/*
* Specific registers and bits used by PPM sub-functions
*/
-#ifdef CONFIG_HRT_PPM
+#ifdef HRT_PPM_CHANNEL
/*
* If the timer hardware doesn't support GTIM_CCER_CCxNP, then we will work around it.
*
@@ -377,7 +377,7 @@ static void hrt_ppm_decode(uint32_t status);
# define CCMR1_PPM 0
# define CCMR2_PPM 0
# define CCER_PPM 0
-#endif /* CONFIG_HRT_PPM */
+#endif /* HRT_PPM_CHANNEL */
/*
* Initialise the timer we are going to use.
@@ -907,4 +907,4 @@ hrt_latency_update(void)
}
-#endif /* CONFIG_HRT_TIMER */
+#endif /* HRT_TIMER */
diff --git a/src/drivers/stm32/tone_alarm/tone_alarm.cpp b/src/drivers/stm32/tone_alarm/tone_alarm.cpp
index 167ef30a8..2284be84d 100644
--- a/src/drivers/stm32/tone_alarm/tone_alarm.cpp
+++ b/src/drivers/stm32/tone_alarm/tone_alarm.cpp
@@ -117,10 +117,6 @@
#include <systemlib/err.h>
-#ifndef CONFIG_HRT_TIMER
-# error This driver requires CONFIG_HRT_TIMER
-#endif
-
/* Tone alarm configuration */
#if TONE_ALARM_TIMER == 2
# define TONE_ALARM_BASE STM32_TIM2_BASE