Last change
on this file was
bcef89f2,
checked in by Sebastian Huber <sebastian.huber@…>, on 05/19/23 at 06:18:25
|
Update company name
The embedded brains GmbH & Co. KG is the legal successor of embedded
brains GmbH.
|
-
Property mode set to
100644
|
File size:
719 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Copyright (c) 2016 embedded brains GmbH & Co. KG |
---|
3 | * |
---|
4 | * The license and distribution terms for this file may be |
---|
5 | * found in the file LICENSE in this distribution or at |
---|
6 | * http://www.rtems.org/license/LICENSE. |
---|
7 | */ |
---|
8 | |
---|
9 | #ifdef HAVE_CONFIG_H |
---|
10 | #include "config.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #include <rtems/shell.h> |
---|
14 | #include <rtems/shellconfig.h> |
---|
15 | #include <rtems/cpuuse.h> |
---|
16 | #include <rtems/printer.h> |
---|
17 | |
---|
18 | static int rtems_shell_main_cpuinfo(int argc, char **argv) |
---|
19 | { |
---|
20 | rtems_printer printer; |
---|
21 | |
---|
22 | rtems_print_printer_fprintf(&printer, stdout); |
---|
23 | rtems_cpu_info_report(&printer); |
---|
24 | |
---|
25 | return 0; |
---|
26 | } |
---|
27 | |
---|
28 | rtems_shell_cmd_t rtems_shell_CPUINFO_Command = { |
---|
29 | .name = "cpuinfo", |
---|
30 | .usage = "cpuinfo", |
---|
31 | .topic = "rtems", |
---|
32 | .command = rtems_shell_main_cpuinfo |
---|
33 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.