aboutsummaryrefslogtreecommitdiff
path: root/common/command.c
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-09-19 00:51:44 +0900
committertmk <nobody@nowhere>2013-09-19 00:51:44 +0900
commit9f29fa6bf39ff9b703de132b7f8b8a794b078471 (patch)
treed7b4537bb135d18b071b7cc4cf5f4fe3bc2d3a93 /common/command.c
parent0ca415004a453b2a841880d3a66492c664505737 (diff)
downloadqmk_firmware-9f29fa6bf39ff9b703de132b7f8b8a794b078471.tar.gz
qmk_firmware-9f29fa6bf39ff9b703de132b7f8b8a794b078471.zip
Fix version info command
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c47
1 files changed, 42 insertions, 5 deletions
diff --git a/common/command.c b/common/command.c
index 7415645b0..8a8a81d66 100644
--- a/common/command.c
+++ b/common/command.c
@@ -251,11 +251,48 @@ static bool command_common(uint8_t code)
251 break; 251 break;
252 case KC_V: // print version & information 252 case KC_V: // print version & information
253 print("\n\n----- Version -----\n"); 253 print("\n\n----- Version -----\n");
254 print(STR(DESCRIPTION) "\n"); 254 print("DESC: " STR(DESCRIPTION) "\n");
255 print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") VER: " STR(DEVICE_VER) "\n"); 255 print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") "
256 print("SRC: " STR(VERSION) "\n"); 256 "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") "
257 print("GCC: " STR(__GNUC__) "." STR(__GNUC_MINOR__) "." STR(__GNUC_PATCHLEVEL__) "\n"); 257 "VER: " STR(DEVICE_VER) "\n");
258 print("AVR-LIBC: " __AVR_LIBC_VERSION_STRING__ "\n"); 258 print("BUILD: " STR(VERSION) " (" __TIME__ " " __DATE__ ")\n");
259 /* build options */
260 print("OPTIONS:"
261#ifdef PROTOCOL_PJRC
262 " PJRC"
263#endif
264#ifdef PROTOCOL_LUFA
265 " LUFA"
266#endif
267#ifdef PROTOCOL_VUSB
268 " VUSB"
269#endif
270#ifdef BOOTMAGIC_ENABLE
271 " BOOTMAGIC"
272#endif
273#ifdef MOUSEKEY_ENABLE
274 " MOUSEKEY"
275#endif
276#ifdef EXTRAKEY_ENABLE
277 " EXTRAKEY"
278#endif
279#ifdef CONSOLE_ENABLE
280 " CONSOLE"
281#endif
282#ifdef COMMAND_ENABLE
283 " COMMAND"
284#endif
285#ifdef NKRO_ENABLE
286 " NKRO"
287#endif
288#ifdef KEYMAP_SECTION_ENABLE
289 " KEYMAP_SECTION"
290#endif
291 " " STR(BOOTLOADER_SIZE) "\n");
292
293 print("GCC: " STR(__GNUC__) "." STR(__GNUC_MINOR__) "." STR(__GNUC_PATCHLEVEL__)
294 " AVR-LIBC: " __AVR_LIBC_VERSION_STRING__
295 " AVR_ARCH: avr" STR(__AVR_ARCH__) "\n");
259 break; 296 break;
260 case KC_T: // print timer 297 case KC_T: // print timer
261 print_val_hex32(timer_count); 298 print_val_hex32(timer_count);