diff options
Diffstat (limited to 'os/various')
-rw-r--r-- | os/various/shell.c | 21 |
1 files changed, 17 insertions, 4 deletions
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 <string.h>
#include "ch.h"
+#include "hal.h"
#include "shell.h"
#if SHELL_USE_IPRINTF
@@ -84,14 +85,26 @@ 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
}
static void cmd_systime(BaseChannel *chp, int argc, char *argv[]) {
|