Hi Mark,
#ifdef SERIAL_INTERFACE
appears in lots of files should I also change it to
#if defined SERIAL_INTERFACE && defined DEMO_UART
in the following files
webinterface.c (3 times)
application.c (9 times)
debug.c (15 times)
I think I should not change it in
app_hw_lm3sxxxx.h
tty_drv.c
driver.c
LM3sxxx.c
I've tried the above and it seems to work, the debug menu appears on the Telnet port.
I think the above would be a good modification to make to the project, so you would have to define DEMO_UART to force the debug menu to appear on the serial port, otherwise it would appear on the Telnet port.
I added the following
extern void fnMyFirstTask(TTASKTABLE *ptrTaskTable)
{
static unsigned char ucCounter = 0;
fnDebugMsg("Hello, World! Test number ");
fnDebugDec(ucCounter++, 0, 0);
fnDebugMsg("\r\n");
}
And added
{ "xmytask!!", fnMyFirstTask, NO_QUE, (DELAY_LIMIT)(5 * SEC), (DELAY_LIMIT)(2 * SEC), UTASKER_STOP}, // my first task (runs after a delay of 5s and then periodically every 2s)
to the ctTaskTable definition in TaskConfig.h
and also added
extern void fnMyFirstTask(TTASKTABLE *ptrTaskTable); // prototype
to TaskConfig.h
Now I also get "Hello, World! Test number nn" printed to the Telnet port so debug printf seems to work also, I've just left the menu in for the moment.
I've detailed what I've done above so others might find it easier to follow.
Cheers
Martin