First debug changes for USB host
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3215 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
40bbda8f4b
commit
7eec10ca08
@ -161,13 +161,16 @@ static int nsh_waiter(int argc, char *argv[])
|
||||
bool connected = false;
|
||||
int ret;
|
||||
|
||||
message("nsh_waiter: Running\n");
|
||||
for (;;)
|
||||
{
|
||||
/* Wait for the device to change state */
|
||||
|
||||
ret = DRVR_WAIT(g_drvr, connected);
|
||||
DEBUGASSERT(ret == OK);
|
||||
|
||||
connected = !connected;
|
||||
message("nsh_waiter: %s\n", connected ? "connected" : "disconnected");
|
||||
|
||||
/* Did we just become connected? */
|
||||
|
||||
@ -265,6 +268,8 @@ static int nsh_usbhostinitialize(void)
|
||||
{
|
||||
/* Start a thread to handle device connection. */
|
||||
|
||||
message("nsh_usbhostinitialize: Start nsh_waiter\n");
|
||||
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
pid = task_create("usbhost", CONFIG_USBHOST_DEFPRIO,
|
||||
CONFIG_USBHOST_STACKSIZE,
|
||||
|
Loading…
Reference in New Issue
Block a user