Skip to content

Commit

Permalink
comment on why USE_AD_TIM1 is needed for PPM with input pin on servo6
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Jan 9, 2013
1 parent 9113129 commit 03fc3e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/firmwares/subsystems/shared/radio_control_ppm.makefile
Expand Up @@ -28,6 +28,8 @@ ifeq ($(NORADIO), False)
ap.CFLAGS += -DUSE_PPM_TIM1
fbw.CFLAGS += -DUSE_PPM_TIM1
else ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PA_01 SERVO6))
# TIM2 is used by ADC by default, tell it to use TIM1 instead
# (also see sw/airborne/arch/stm32/TIM_usage_list.txt)
ap.CFLAGS += -DUSE_PPM_TIM2 -DUSE_AD_TIM1
fbw.CFLAGS += -DUSE_PPM_TIM2 -DUSE_AD_TIM1
else
Expand Down

0 comments on commit 03fc3e6

Please sign in to comment.