Build Time and Date

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Build Time and Date

1,323件の閲覧回数
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,267件の閲覧回数
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,267件の閲覧回数
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 件の賞賛
返信