lpcware

__LINE__ and affiliates

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Brinkand on Thu Oct 07 02:25:16 MST 2010
I would like to be able to add code line number and build dates into my debug output, which I output on the UART of an LPC111x using sprintf.

I included __LINE__ and __TIMESTAMP__ in sprintf arguments and #warning, but they are not recognized.

sprintf(UART_string,"Example: __TIMESTAMP__ __LINE__ \r\n");
Are they available and how do I activate them?

Are there alternative ways to get release time stamp into debug information?

Outcomes