tap: Init both USB pins

This commit is contained in:
Lorenz Meier 2016-08-11 14:02:05 +02:00 committed by Lorenz Meier
parent 3fff9e5826
commit 2fad39aaae
2 changed files with 3 additions and 1 deletions

View File

@ -206,6 +206,7 @@ __BEGIN_DECLS
* PA9 OTG_FS_VBUS VBUS sensing (also connected to the green LED)
*/
#define GPIO_OTGFS_VBUS (GPIO_INPUT|GPIO_FLOAT|GPIO_SPEED_100MHz|GPIO_OPENDRAIN|GPIO_PORTA|GPIO_PIN9)
#define GPIO_OTGFS_OVER (GPIO_INPUT|GPIO_FLOAT|GPIO_SPEED_100MHz|GPIO_OPENDRAIN|GPIO_PORTA|GPIO_PIN10)
#define RC_SERIAL_PORT "/dev/ttyS5"
#define INVERT_RC_INPUT(_s) while(0)

View File

@ -83,7 +83,8 @@ __EXPORT void stm32_usbinitialize(void)
/* Configure the OTG FS VBUS sensing GPIO, Power On, and Overcurrent GPIOs */
#ifdef CONFIG_STM32_OTGFS
stm32_configgpio(GPIO_OTGFS_VBUS);
px4_arch_configgpio(GPIO_OTGFS_VBUS);
px4_arch_configgpio(GPIO_OTGFS_OVER);
#endif
}