Add version string
This commit is contained in:
parent
6994b6d364
commit
57c52a8789
@ -69,5 +69,9 @@ ifdef BACKLIGHT_ENABLE
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
# Version string
|
||||||
|
OPT_DEFS += -DVERSION=$(shell (git describe --dirty || echo 'unknown') 2> /dev/null)
|
||||||
|
|
||||||
|
|
||||||
# Search Path
|
# Search Path
|
||||||
VPATH += $(TOP_DIR)/common
|
VPATH += $(TOP_DIR)/common
|
||||||
|
@ -252,9 +252,10 @@ static bool command_common(uint8_t code)
|
|||||||
case KC_V: // print version & information
|
case KC_V: // print version & information
|
||||||
print("\n\n----- Version -----\n");
|
print("\n\n----- Version -----\n");
|
||||||
print(STR(DESCRIPTION) "\n");
|
print(STR(DESCRIPTION) "\n");
|
||||||
print(STR(MANUFACTURER) "(" STR(VENDOR_ID) ")/");
|
print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") VER: " STR(DEVICE_VER) "\n");
|
||||||
print(STR(PRODUCT) "(" STR(PRODUCT_ID) ") ");
|
print("SRC: " STR(VERSION) "\n");
|
||||||
print("VERSION: " STR(DEVICE_VER) "\n");
|
print("GCC: " STR(__GNUC__) "." STR(__GNUC_MINOR__) "." STR(__GNUC_PATCHLEVEL__) "\n");
|
||||||
|
print("AVR-LIBC: " __AVR_LIBC_VERSION_STRING__ "\n");
|
||||||
break;
|
break;
|
||||||
case KC_T: // print timer
|
case KC_T: // print timer
|
||||||
print_val_hex32(timer_count);
|
print_val_hex32(timer_count);
|
||||||
|
Reference in New Issue
Block a user