From 582ace5597d3bdefcd06b8b4ab673f48c81b969c Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 22 Feb 2010 16:29:48 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1660 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/shell.c | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'os/various') diff --git a/os/various/shell.c b/os/various/shell.c index 41c78b1d8..8a0fd4d45 100644 --- a/os/various/shell.c +++ b/os/various/shell.c @@ -28,6 +28,7 @@ #include #include "ch.h" +#include "hal.h" #include "shell.h" #if SHELL_USE_IPRINTF @@ -84,13 +85,25 @@ static void cmd_info(BaseChannel *chp, int argc, char *argv[]) { return; } - shellPrint(chp, "Kernel version "); + shellPrint(chp, "Kernel version: "); shellPrintLine(chp, CH_KERNEL_VERSION); - shellPrint(chp, "Architecture "); - shellPrintLine(chp, CH_ARCHITECTURE_NAME); #ifdef __GNUC__ - shellPrint(chp, "GCC Version "); + shellPrint(chp, "GCC Version: "); shellPrintLine(chp, __VERSION__); +#endif + shellPrint(chp, "Architecture: "); + shellPrintLine(chp, CH_ARCHITECTURE_NAME); +#ifdef CH_CORE_VARIANT_NAME + shellPrint(chp, "Core Variant: "); + shellPrintLine(chp, CH_CORE_VARIANT_NAME); +#endif +#ifdef PLATFORM_NAME + shellPrint(chp, "Platform: "); + shellPrintLine(chp, PLATFORM_NAME); +#endif +#ifdef BOARD_NAME + shellPrint(chp, "Board: "); + shellPrintLine(chp, BOARD_NAME); #endif } -- cgit v1.2.3