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
This commit is contained in:
parent
fec5d8fe97
commit
c95769f13c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user