summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-lpc1766stk/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-31 20:59:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-31 20:59:23 +0000
commit9bdb91ec537f8a7889a816cf989e6d91054effe5 (patch)
treef05fe58bed011e432506fefdea124c1f9372b27b /nuttx/configs/olimex-lpc1766stk/src
parent714575b61092daa986ffdc535bec98d181114509 (diff)
downloadpx4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.tar.gz
px4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.tar.bz2
px4-nuttx-9bdb91ec537f8a7889a816cf989e6d91054effe5.zip
Initial debug fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3226 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-lpc1766stk/src')
-rwxr-xr-xnuttx/configs/olimex-lpc1766stk/src/up_nsh.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c b/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c
index 0d59dc4fa..afb6d084e 100755
--- a/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c
+++ b/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c
@@ -261,8 +261,20 @@ errout:
static int nsh_usbhostinitialize(void)
{
int pid;
+ int ret;
+
+ /* First, register all of the class drivers needed to support the drivers
+ * that we care about:
+ */
+
+ message("nsh_usbhostinitialize: Register class drivers\n");
+ ret = usbhost_storageinit();
+ if (ret != OK)
+ {
+ message("nsh_usbhostinitialize: Failed to register the mass storage class\n");
+ }
- /* First, get an instance of the USB host interface */
+ /* Then get an instance of the USB host interface */
message("nsh_usbhostinitialize: Initialize USB host\n");
g_drvr = usbhost_initialize(0);