Menu

#788 LWIP debug macros

trunk
open
nobody
None
lwIP
Low
16.1.6
False
2017-01-02
2016-11-15
kaidokert
No

I found that lwip debug macros are currently a no-op in trunk. It makes lwip and especially experimental driver debugging somewhat difficult.
Attached is a patch that does two things: adds a lwipPrintf function declaration, that can be inserted by the user into their main program, for example to output to serial, and necessary lwip variable formatters.

Second, implements support for %hu , %hd and %hx 16-bit integer formatters, which are apparently C11 standard now.
Tested on a Olimex P107 rev B - any interest for having fully functional LWIP demo files for this ? Clock config was a bit tricky to get right.

1 Attachments

Discussion


Log in to post a comment.