summaryrefslogtreecommitdiff
path: root/nuttx/configs/olimex-lpc1766stk
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-22 02:02:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2010-12-22 02:02:14 +0000
commit6308bfe691ebb4506a88dce4dfe9533bab68f62b (patch)
tree70c68a86f8ab4b1f891b83d49ff7848d201400b8 /nuttx/configs/olimex-lpc1766stk
parentdeb0dd039fcd4118f0292290ee3f2251171dce2d (diff)
downloadpx4-nuttx-6308bfe691ebb4506a88dce4dfe9533bab68f62b.tar.gz
px4-nuttx-6308bfe691ebb4506a88dce4dfe9533bab68f62b.tar.bz2
px4-nuttx-6308bfe691ebb4506a88dce4dfe9533bab68f62b.zip
First debug changes for USB host
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3215 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-lpc1766stk')
-rwxr-xr-xnuttx/configs/olimex-lpc1766stk/src/up_nsh.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c b/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c
index 2d7e2753e..62b470400 100755
--- a/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c
+++ b/nuttx/configs/olimex-lpc1766stk/src/up_nsh.c
@@ -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,