Initial debug fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3226 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-12-31 20:59:23 +00:00
parent 58eeed82fe
commit c915a459a0
2 changed files with 26 additions and 2 deletions

View File

@ -208,8 +208,20 @@ static int nsh_waiter(int argc, char *argv[])
static int nsh_usbhostinitialize(void)
{
int pid;
int ret;
/* First, get an instance of the USB host interface */
/* 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");
}
/* Then get an instance of the USB host interface */
message("nsh_usbhostinitialize: Initialize USB host\n");
g_drvr = usbhost_initialize(0);

View File

@ -261,8 +261,20 @@ errout:
static int nsh_usbhostinitialize(void)
{
int pid;
int ret;
/* First, get an instance of the USB host interface */
/* 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");
}
/* Then get an instance of the USB host interface */
message("nsh_usbhostinitialize: Initialize USB host\n");
g_drvr = usbhost_initialize(0);