diff options
Diffstat (limited to 'nuttx/configs')
-rwxr-xr-x | nuttx/configs/nucleus2g/src/up_nsh.c | 14 | ||||
-rwxr-xr-x | nuttx/configs/olimex-lpc1766stk/src/up_nsh.c | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/nuttx/configs/nucleus2g/src/up_nsh.c b/nuttx/configs/nucleus2g/src/up_nsh.c index d65516e18..084b95cbb 100755 --- a/nuttx/configs/nucleus2g/src/up_nsh.c +++ b/nuttx/configs/nucleus2g/src/up_nsh.c @@ -208,8 +208,20 @@ static int nsh_waiter(int argc, char *argv[]) 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); 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); |