From d71296f49b301d3ca8edcc6e9b79dd6b23a01c31 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 4 Nov 2007 16:31:24 +0000 Subject: DM90x0 driver hooked into DM320 git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@367 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/nettest/nettest.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'nuttx/examples/nettest/nettest.c') 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 @@ -45,6 +45,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); } -- cgit v1.2.3