# HG changeset patch # User Jacob Alexander # Date 1438795115 25200 # Node ID 32dfab699fc0ccb076c490eee21a0a2d94ba1943 # Parent 86b937945313ddec25838995323a1e3b3bdbc8e6 Add Unique Id to version information diff -r 86b937945313 -r 32dfab699fc0 Debug/cli/cli.c --- a/Debug/cli/cli.c Mon Aug 03 21:42:01 2015 -0700 +++ b/Debug/cli/cli.c Wed Aug 05 10:18:35 2015 -0700 @@ -548,5 +548,15 @@ print( " \033[1mCPU:\033[0m " CLI_CPU NL ); print( " \033[1mDevice:\033[0m " CLI_Device NL ); print( " \033[1mModules:\033[0m " CLI_Modules NL ); +#if defined(_mk20dx128_) || defined(_mk20dx128vlf5_) || defined(_mk20dx256_) || defined(_mk20dx256vlh7_) + print( " \033[1mUnique Id:\033[0m " ); + printHex32_op( SIM_UIDH, 4 ); + printHex32_op( SIM_UIDMH, 4 ); + printHex32_op( SIM_UIDML, 4 ); + printHex32_op( SIM_UIDL, 4 ); +#elif defined(_at90usb162_) || defined(_atmega32u4_) || defined(_at90usb646_) || defined(_at90usb1286_) +#else +#error "No unique id defined." +#endif }