diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-17 00:35:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-17 00:35:54 +0000 |
commit | db782f9d51c4b9899954924003790818df015148 (patch) | |
tree | f4aa88bf3cae01e31b85638ca4703cda94ea4f77 /nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c | |
parent | 1607d9c23e02c53c00bfd900fa061d2d5afd6950 (diff) | |
download | px4-nuttx-db782f9d51c4b9899954924003790818df015148.tar.gz px4-nuttx-db782f9d51c4b9899954924003790818df015148.tar.bz2 px4-nuttx-db782f9d51c4b9899954924003790818df015148.zip |
LPCXpresso USB device works
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3516 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c')
-rwxr-xr-x | nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c b/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c index dd5e465da..4055a6fc9 100755 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_usbdev.c @@ -3176,9 +3176,13 @@ void up_usbinitialize(void) /* Step 3: Configure I/O pins */ usbdev_dumpgpio(); +#ifndef CONFIG_LPC17_USBDEV_NOVBUS lpc17_configgpio(GPIO_USB_VBUS); /* VBUS status input */ +#endif lpc17_configgpio(GPIO_USB_CONNECT); /* SoftConnect control signal */ +#ifndef CONFIG_LPC17_USBDEV_NOLED lpc17_configgpio(GPIO_USB_UPLED); /* GoodLink LED control signal */ +#endif lpc17_configgpio(GPIO_USB_DP); /* Positive differential data */ lpc17_configgpio(GPIO_USB_DM); /* Negative differential data */ usbdev_dumpgpio(); |