source: rtems/cpukit/libmisc/shell/main_cpuinfo.c @ 255fe43

Last change on this file since 255fe43 was 255fe43, checked in by Joel Sherrill <joel@…>, on 03/01/22 at 20:40:44

cpukit/: Scripted embedded brains header file clean up

Updates #4625.

  • Property mode set to 100644
File size: 733 bytes
Line 
1/*
2 * Copyright (c) 2016 embedded brains GmbH.  All rights reserved.
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
18static 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
28rtems_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.