1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-19 09:54:15 +01:00

Fixed PPM compile errors - you can now compile for PPM input if desired.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2818 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2011-02-20 13:41:19 +00:00 committed by pip
parent c214833346
commit 578b779a76

View File

@ -228,11 +228,11 @@ extern uint32_t pios_com_spektrum_id;
//-------------------------
// Receiver PPM input
//-------------------------
#define PIOS_PPM_GPIO_PORT PIOS_PWM_CH1_GPIO_PORT
#define PIOS_PPM_GPIO_PIN PIOS_PWM_CH1_PIN
#define PIOS_PPM_TIM_PORT PIOS_PWM_CH1_TIM_PORT
#define PIOS_PPM_TIM_CHANNEL PIOS_PWM_CH1_CH
#define PIOS_PPM_TIM_CCR PIOS_PWM_CH1_CCR
#define PIOS_PPM_GPIO_PORT GPIOA
#define PIOS_PPM_GPIO_PIN GPIO_Pin_9
#define PIOS_PPM_TIM_PORT TIM1
#define PIOS_PPM_TIM_CHANNEL TIM_Channel_2
#define PIOS_PPM_TIM_CCR TIM_IT_CC2
#define PIOS_PPM_TIM TIM1
#define PIOS_PPM_TIM_IRQ TIM1_CC_IRQn
#define PIOS_PPM_NUM_INPUTS 8 //Could be more if needed