Build Time and Date

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Build Time and Date

1,396 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rcazalis on Fri Jul 16 06:37:45 MST 2010
Hi,

is there a way to get the build time and date in the code with CodeRed's compiler?
Something like __DATE__?

Original Attachment has been moved to: 1100543_log.txt.zip

0 项奖励
回复
2 回复数

1,340 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rcazalis on Fri Jul 16 11:41:55 MST 2010
Thanks Zero again,

for some reason it did not compile last time... I don't understand...

Come to Paris any time... ;-)
0 项奖励
回复

1,340 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Jul 16 10:14:00 MST 2010
What about good old-fashioned including it in an UART or USB message like

[LEFT][SIZE=2]putstring([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"DOG-LCD Version 1.4 "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]putstring(__DATE__);[/SIZE]
[SIZE=2]putstring([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]" "[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE]
[SIZE=2]putstring(__TIME__);[/SIZE]
[SIZE=2]putstring([/SIZE][SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]"\n\r"[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]);[/SIZE][/LEFT]


('putstring' is my own simple function to buffer strings before I send them via UART or USB)
0 项奖励
回复