Browse Source

FMU-inspired PPM config

sbg
Lorenz Meier 11 years ago
parent
commit
85651218e2
  1. 2
      src/drivers/boards/px4io-v1/board_config.h
  2. 2
      src/drivers/boards/px4io-v2/board_config.h

2
src/drivers/boards/px4io-v1/board_config.h

@ -92,4 +92,4 @@ @@ -92,4 +92,4 @@
#define HRT_TIMER 1 /* use timer1 for the HRT */
#define HRT_TIMER_CHANNEL 2 /* use capture/compare channel 2 */
#define HRT_PPM_CHANNEL 1 /* use capture/compare channel 1 */
#define GPIO_PPM_IN GPIO_TIM1_CH1IN
#define GPIO_PPM_IN (GPIO_ALT|GPIO_CNF_AFPU|GPIO_MODE_50MHz|GPIO_PORTE|GPIO_PIN9)

2
src/drivers/boards/px4io-v2/board_config.h

@ -122,7 +122,7 @@ @@ -122,7 +122,7 @@
#define HRT_TIMER 1 /* use timer1 for the HRT */
#define HRT_TIMER_CHANNEL 2 /* use capture/compare channel 2 */
#define HRT_PPM_CHANNEL 1 /* use capture/compare channel 1 */
#define GPIO_PPM_IN GPIO_TIM1_CH1IN
#define GPIO_PPM_IN (GPIO_ALT|GPIO_CNF_AFPU|GPIO_MODE_50MHz|GPIO_PORTE|GPIO_PIN9)
/* LED definitions ******************************************************************/
/* PX4 has two LEDs that we will encode as: */

Loading…
Cancel
Save