diff options
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 47 |
1 files changed, 43 insertions, 4 deletions
diff --git a/common/command.c b/common/command.c index 4649e00ab..f6f276951 100644 --- a/common/command.c +++ b/common/command.c | |||
| @@ -27,6 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 27 | #include "keyboard.h" | 27 | #include "keyboard.h" |
| 28 | #include "bootloader.h" | 28 | #include "bootloader.h" |
| 29 | #include "action_layer.h" | 29 | #include "action_layer.h" |
| 30 | #include "action_util.h" | ||
| 30 | #include "eeconfig.h" | 31 | #include "eeconfig.h" |
| 31 | #include "sleep_led.h" | 32 | #include "sleep_led.h" |
| 32 | #include "led.h" | 33 | #include "led.h" |
| @@ -251,10 +252,48 @@ static bool command_common(uint8_t code) | |||
| 251 | break; | 252 | break; |
| 252 | case KC_V: // print version & information | 253 | case KC_V: // print version & information |
| 253 | print("\n\n----- Version -----\n"); | 254 | print("\n\n----- Version -----\n"); |
| 254 | print(STR(DESCRIPTION) "\n"); | 255 | print("DESC: " STR(DESCRIPTION) "\n"); |
| 255 | print(STR(MANUFACTURER) "(" STR(VENDOR_ID) ")/"); | 256 | print("VID: " STR(VENDOR_ID) "(" STR(MANUFACTURER) ") " |
| 256 | print(STR(PRODUCT) "(" STR(PRODUCT_ID) ") "); | 257 | "PID: " STR(PRODUCT_ID) "(" STR(PRODUCT) ") " |
| 257 | print("VERSION: " STR(DEVICE_VER) "\n"); | 258 | "VER: " STR(DEVICE_VER) "\n"); |
| 259 | print("BUILD: " STR(VERSION) " (" __TIME__ " " __DATE__ ")\n"); | ||
| 260 | /* build options */ | ||
| 261 | print("OPTIONS:" | ||
| 262 | #ifdef PROTOCOL_PJRC | ||
| 263 | " PJRC" | ||
| 264 | #endif | ||
| 265 | #ifdef PROTOCOL_LUFA | ||
| 266 | " LUFA" | ||
| 267 | #endif | ||
| 268 | #ifdef PROTOCOL_VUSB | ||
| 269 | " VUSB" | ||
| 270 | #endif | ||
| 271 | #ifdef BOOTMAGIC_ENABLE | ||
| 272 | " BOOTMAGIC" | ||
| 273 | #endif | ||
| 274 | #ifdef MOUSEKEY_ENABLE | ||
| 275 | " MOUSEKEY" | ||
| 276 | #endif | ||
| 277 | #ifdef EXTRAKEY_ENABLE | ||
| 278 | " EXTRAKEY" | ||
| 279 | #endif | ||
| 280 | #ifdef CONSOLE_ENABLE | ||
| 281 | " CONSOLE" | ||
| 282 | #endif | ||
| 283 | #ifdef COMMAND_ENABLE | ||
| 284 | " COMMAND" | ||
| 285 | #endif | ||
| 286 | #ifdef NKRO_ENABLE | ||
| 287 | " NKRO" | ||
| 288 | #endif | ||
| 289 | #ifdef KEYMAP_SECTION_ENABLE | ||
| 290 | " KEYMAP_SECTION" | ||
| 291 | #endif | ||
| 292 | " " STR(BOOTLOADER_SIZE) "\n"); | ||
| 293 | |||
| 294 | print("GCC: " STR(__GNUC__) "." STR(__GNUC_MINOR__) "." STR(__GNUC_PATCHLEVEL__) | ||
| 295 | " AVR-LIBC: " __AVR_LIBC_VERSION_STRING__ | ||
| 296 | " AVR_ARCH: avr" STR(__AVR_ARCH__) "\n"); | ||
| 258 | break; | 297 | break; |
| 259 | case KC_T: // print timer | 298 | case KC_T: // print timer |
| 260 | print_val_hex32(timer_count); | 299 | print_val_hex32(timer_count); |
