Browse Source

OTG_FS_ID that is on PA10 is managed by stm32 otg fs device Driver

N.B The driver set FDMOD, Force device mode and Writing a 1 to this bit
forces the core to device mode irrespective of the OTG_FS_ID input
pin.
sbg
David Sidrane 9 years ago committed by Lorenz Meier
parent
commit
b9d93f2cad
  1. 5
      src/drivers/boards/tap-v1/board_config.h
  2. 3
      src/drivers/boards/tap-v1/tap_usb.c

5
src/drivers/boards/tap-v1/board_config.h

@ -203,10 +203,9 @@ __BEGIN_DECLS @@ -203,10 +203,9 @@ __BEGIN_DECLS
/* USB OTG FS
*
* PA9 OTG_FS_VBUS VBUS sensing (also connected to the green LED)
* PA9 OTG_FS_VBUS VBUS sensing
*/
#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 GPIO_OTGFS_VBUS (GPIO_INPUT|GPIO_FLOAT|GPIO_PORTA|GPIO_PIN9)
#define RC_SERIAL_PORT "/dev/ttyS5"
#define INVERT_RC_INPUT(_s) while(0)

3
src/drivers/boards/tap-v1/tap_usb.c

@ -80,11 +80,10 @@ __EXPORT void stm32_usbinitialize(void) @@ -80,11 +80,10 @@ __EXPORT void stm32_usbinitialize(void)
{
/* The OTG FS has an internal soft pull-up */
/* Configure the OTG FS VBUS sensing GPIO, Power On, and Overcurrent GPIOs */
/* Configure the OTG FS VBUS sensing GPIO */
#ifdef CONFIG_STM32_OTGFS
px4_arch_configgpio(GPIO_OTGFS_VBUS);
px4_arch_configgpio(GPIO_OTGFS_OVER);
#endif
}

Loading…
Cancel
Save