px4fmu-v5:Insure the VBUS signal is low if USB is not connected.

Dispite what the ref manaul says. Some HW needs the added pull
   down to insure the pin reads low when not plugged in to USB.
This commit is contained in:
David Sidrane
2017-07-17 21:02:50 -10:00
parent 15f9f6c06f
commit f7e3f34f48
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ __BEGIN_DECLS
*
* PA9 OTG_FS_VBUS VBUS sensing
*/
#define GPIO_OTGFS_VBUS /* PA9 */ (GPIO_INPUT|GPIO_FLOAT|GPIO_SPEED_100MHz|GPIO_PORTA|GPIO_PIN9)
#define GPIO_OTGFS_VBUS /* PA9 */ (GPIO_INPUT|GPIO_PULLDOWN|GPIO_SPEED_100MHz|GPIO_PORTA|GPIO_PIN9)
/* High-resolution timer */
#define HRT_TIMER 8 /* use timer8 for the HRT */
+2 -3
View File
@@ -229,10 +229,9 @@ stm32_boardinitialize(void)
stm32_spiinitialize();
/* Power on the SD Card */
SD_CARD_POWER_CTRL(true);
/* configure USB interfaces */
stm32_usbinitialize();
}