DBG Debug Macros?

26 May 2011

Some of the code posted on this site uses some interesting and useful debug macros such as:

DBG(DBG_SECTION "Dispatching req\r\n");
or
DBG printf("Enter Analog Section\n");

I'd like to start using these macros instead of the conditional compilation method (#if (DEBUG)). I've searched the mbed.org website, but have not located the file(s) which define these macros.

Can someone point me to where these might be?

Thanks, Doug

Replies

27 May 2011

Hi Doug:

Actually these useful macro are there on the website, but very well hidden. Evidently they were derived or borrowed from the llwip network module. try looking here:

http://mbed.org/users/donatien/programs/NetServicesSource/5zh9t/docs/dbg_8h.html

Please log in to post a reply.