[boards] elle0: possibility to use PPM input on SERVO8

<configure name="RADIO_CONTROL_PPM_PIN" value="SERVO8"/>
This commit is contained in:
Felix Ruess
2016-04-16 10:34:58 +02:00
parent 4bbf237657
commit f11c80be43
3 changed files with 22 additions and 2 deletions
+3 -1
View File
@@ -60,8 +60,10 @@ ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PA_10 PA10 UART
PPM_CONFIG=1
else ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PA_01 PA01 PA1 SERVO6))
PPM_CONFIG=2
else ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PB_07 PB07 PB7 SERVO8))
PPM_CONFIG=3
else
$(error Unknown RADIO_CONTROL_PPM_PIN, configure it to either PA01, PA10)
$(error Unknown RADIO_CONTROL_PPM_PIN, configure it to either PA01, PA10, PB07)
endif
+3 -1
View File
@@ -60,8 +60,10 @@ ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PA_10 PA10 UART
PPM_CONFIG=1
else ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PA_01 PA01 PA1 SERVO6))
PPM_CONFIG=2
else ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PB_07 PB07 PB7 SERVO8))
PPM_CONFIG=3
else
$(error Unknown RADIO_CONTROL_PPM_PIN, configure it to either PA01, PA10)
$(error Unknown RADIO_CONTROL_PPM_PIN, configure it to either PA01, PA10, PB07)
endif