summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/stm32/stm32_usbdev.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-10 22:34:13 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-10 22:34:13 +0000
commit4ef1a053dbf63d40f59c44afa6c3b7ebc4805b16 (patch)
tree87ea45d400c37f58e8605aa68891c1779eb6f38c /nuttx/arch/arm/src/stm32/stm32_usbdev.c
parent7f70b0ff398db4b0f6640b7758893bd97d62488c (diff)
downloadpx4-nuttx-4ef1a053dbf63d40f59c44afa6c3b7ebc4805b16.tar.gz
px4-nuttx-4ef1a053dbf63d40f59c44afa6c3b7ebc4805b16.tar.bz2
px4-nuttx-4ef1a053dbf63d40f59c44afa6c3b7ebc4805b16.zip
Minor fixes for STM32 F3 USB still does not work
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5637 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_usbdev.c')
-rw-r--r--nuttx/arch/arm/src/stm32/stm32_usbdev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_usbdev.c b/nuttx/arch/arm/src/stm32/stm32_usbdev.c
index dc05a7ebb..81eeafdbd 100644
--- a/nuttx/arch/arm/src/stm32/stm32_usbdev.c
+++ b/nuttx/arch/arm/src/stm32/stm32_usbdev.c
@@ -61,6 +61,7 @@
#include "up_arch.h"
#include "stm32.h"
#include "stm32_syscfg.h"
+#include "stm32_gpio.h"
#include "stm32_usbdev.h"
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
@@ -3481,6 +3482,13 @@ void up_usbinitialize(void)
usbtrace(TRACE_DEVINIT, 0);
stm32_checksetup();
+ /* Configure USB GPIO alternate function pins */
+
+#ifdef CONFIG_STM32_STM32F30XX
+ (void)stm32_configgpio(GPIO_USB_DM);
+ (void)stm32_configgpio(GPIO_USB_DP);
+#endif
+
/* Power up the USB controller, but leave it in the reset state */
stm32_hwsetup(priv);