diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-04 16:31:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-04 16:31:24 +0000 |
commit | d71296f49b301d3ca8edcc6e9b79dd6b23a01c31 (patch) | |
tree | 23808398c7fcff423f580bfe5a9140788f336dc0 /nuttx/examples | |
parent | e77ccab049d2df5252503e01aae180e6168024fa (diff) | |
download | px4-nuttx-d71296f49b301d3ca8edcc6e9b79dd6b23a01c31.tar.gz px4-nuttx-d71296f49b301d3ca8edcc6e9b79dd6b23a01c31.tar.bz2 px4-nuttx-d71296f49b301d3ca8edcc6e9b79dd6b23a01c31.zip |
DM90x0 driver hooked into DM320
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@367 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples')
-rw-r--r-- | nuttx/examples/nettest/nettest.c | 10 | ||||
-rw-r--r-- | nuttx/examples/uip/main.c | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/nuttx/examples/nettest/nettest.c b/nuttx/examples/nettest/nettest.c index 443b555b3..1afa21182 100644 --- a/nuttx/examples/nettest/nettest.c +++ b/nuttx/examples/nettest/nettest.c @@ -46,6 +46,10 @@ #include "nettest.h" /**************************************************************************** + * Definitions + ****************************************************************************/ + +/**************************************************************************** * Private Data ****************************************************************************/ @@ -104,5 +108,9 @@ int user_start(int argc, char *argv[]) void uip_log(char *m) { - printf("uIP log message: %s\n", m); + /* Since uip_log is called from interrupt handling logic, it cannot use + * or other standard I/O. This should work from an interrupt handler: + */ + + lib_rawprintf("uIP log message: %s\n", m); } diff --git a/nuttx/examples/uip/main.c b/nuttx/examples/uip/main.c index 5d1406b6b..ded7bca20 100644 --- a/nuttx/examples/uip/main.c +++ b/nuttx/examples/uip/main.c @@ -77,6 +77,10 @@ #endif /**************************************************************************** + * Definitions + ****************************************************************************/ + +/**************************************************************************** * Private Data ****************************************************************************/ @@ -205,7 +209,11 @@ int user_start(int argc, char *argv[]) void uip_log(char *m) { - printf("uIP log message: %s\n", m); + /* Since uip_log is called from interrupt handling logic, it cannot use + * or other standard I/O. This should work from an interrupt handler: + */ + + lib_rawprintf("uIP log message: %s\n", m); } #if defined(CONFIG_EXAMPLE_UIP_WEBCLIENT) |