FMUv4pro : workaround for safety switch

This commit is contained in:
Kevin Lopez Alvarez 2017-03-23 10:31:59 +01:00
parent fcf7cdf6a7
commit 9528ae29b6
2 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@
/* Safety switch button *******************************************************/
#define GPIO_BTN_SAFETY (GPIO_INPUT|GPIO_CNF_INFLOAT|GPIO_MODE_INPUT|GPIO_PORTB|GPIO_PIN5)
#define GPIO_SAFETY_PD (GPIO_INPUT|GPIO_CNF_INPULLDWN|GPIO_MODE_INPUT|GPIO_PORTB|GPIO_PIN6)
/* Power switch controls ******************************************************/

View File

@ -112,6 +112,7 @@ __EXPORT void stm32_boardinitialize(void)
stm32_configgpio(GPIO_LED4);
stm32_configgpio(GPIO_BTN_SAFETY);
stm32_configgpio(GPIO_SAFETY_PD);
/* spektrum power enable is active high - enable it by default */
stm32_configgpio(GPIO_SPEKTRUM_PWR_EN);