]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Add Unique Id to version information
authorJacob Alexander <haata@kiibohd.com>
Wed, 5 Aug 2015 17:18:35 +0000 (10:18 -0700)
committerJacob Alexander <haata@kiibohd.com>
Wed, 5 Aug 2015 17:18:35 +0000 (10:18 -0700)
Debug/cli/cli.c

index a5aa94c84daa80b59753800b76f946bc4c078f61..03fb3ca44b2924888d3b8247e124d7f422123364 100644 (file)
@@ -548,5 +548,15 @@ void cliFunc_version( char* args )
        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
 }