[stm32][ppm] compile time config info

This commit is contained in:
Felix Ruess
2013-01-21 12:01:17 +01:00
parent 513852fff1
commit c2d60afcb0
@@ -50,7 +50,7 @@ static uint32_t timer_rollover_cnt;
#if USE_PPM_TIM2
#pragma message "Using PPM input on SERVO6 pin!"
INFO("Using TIM2 for PPM input on PA_10 (SERVO6) pin.")
#define PPM_RCC &RCC_APB1ENR
#define PPM_PERIPHERAL RCC_APB1ENR_TIM2EN
@@ -65,7 +65,7 @@ static uint32_t timer_rollover_cnt;
#elif USE_PPM_TIM1
#pragma message "Using PPM input on UART1_RX pin!"
INFO("Using TIM1 for PPM input on PA_01 (UART1_RX) pin.")
#define PPM_RCC &RCC_APB2ENR
#define PPM_PERIPHERAL RCC_APB2ENR_TIM1EN