source: rtems/bsps/shared/irq/irq-shell.c @ dea4bbe3

5
Last change on this file since dea4bbe3 was 9b7c456, checked in by Sebastian Huber <sebastian.huber@…>, on 04/05/18 at 04:40:02

bsps: Move generic IRQ support to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 913 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup bsp_interrupt
5 *
6 * @brief Generic BSP interrupt shell implementation.
7 */
8
9/*
10 * Copyright (c) 2009
11 * embedded brains GmbH
12 * Obere Lagerstr. 30
13 * D-82178 Puchheim
14 * Germany
15 * <rtems@embedded-brains.de>
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.org/license/LICENSE.
20 */
21
22#include <stdio.h>
23
24#include <rtems/printer.h>
25#include <rtems/shell.h>
26
27#include <bsp/irq-info.h>
28
29static int bsp_interrupt_shell_main(int argc, char **argv)
30{
31  rtems_printer printer;
32  rtems_print_printer_printf(&printer);
33  bsp_interrupt_report_with_plugin(&printer);
34
35  return 0;
36}
37
38struct rtems_shell_cmd_tt bsp_interrupt_shell_command = {
39  .name     = "irq",
40  .usage   = "Prints interrupt information",
41  .topic   = "rtems",
42  .command = bsp_interrupt_shell_main,
43  .alias   = NULL,
44  .next    = NULL
45};
Note: See TracBrowser for help on using the repository browser.