source: rtems/c/src/lib/libbsp/shared/src/irq-shell.c @ 8634637

4.104.115
Last change on this file since 8634637 was 8634637, checked in by Joel Sherrill <joel.sherrill@…>, on 09/08/09 at 13:35:07

2009-09-08 Sebastian Huber <sebastian.huber@…>

  • include/irq-config.h, include/irq-generic.h, include/irq-info.h, src/irq-generic.c, src/irq-info.c, src/irq-legacy.c, src/irq-shell.c: Format, cleanup and documentation.
  • src/irq-server.c: New file.
  • include/bootcard.h, include/stackalloc.h, src/stackalloc.c, bsplibc.c: Update for heap API changes. Documentation.
  • Property mode set to 100644
File size: 852 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.com/license/LICENSE.
20 */
21
22#include <stdio.h>
23
24#include <rtems/shell.h>
25
26#include <bsp/irq-info.h>
27
28static int bsp_interrupt_shell_main(int argc, char **argv)
29{
30  bsp_interrupt_report_with_plugin(stdout, (rtems_printk_plugin_t) fprintf);
31
32  return 0;
33}
34
35struct rtems_shell_cmd_tt bsp_interrupt_shell_command = {
36  .name     = "irq",
37  .usage   = "Prints interrupt information",
38  .topic   = "rtems",
39  .command = bsp_interrupt_shell_main,
40  .alias   = NULL,
41  .next    = NULL
42};
Note: See TracBrowser for help on using the repository browser.