source: rtems/c/src/lib/libbsp/shared/include/generic-fatal.h @ ade27c6

4.115
Last change on this file since ade27c6 was ade27c6, checked in by Sebastian Huber <sebastian.huber@…>, on Jun 20, 2013 at 9:44:04 AM

bsps: Move bsp_generic_fatal_code to new file

Add bsp_generic_fatal().

  • Property mode set to 100644
File size: 972 bytes
Line 
1/*
2 * Copyright (c) 2012-2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.com/license/LICENSE.
13 */
14
15#ifndef LIBBSP_SHARED_BSP_GENERIC_FATAL_H
16#define LIBBSP_SHARED_BSP_GENERIC_FATAL_H
17
18#include <rtems.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif /* __cplusplus */
23
24/**
25 * @brief Generic BSP fatal error codes.
26 */
27typedef enum {
28  BSP_GENERIC_FATAL_EXCEPTION_INITIALIZATION,
29  BSP_GENERIC_FATAL_INTERRUPT_INITIALIZATION,
30  BSP_GENERIC_FATAL_SPURIOUS_INTERRUPT
31} bsp_generic_fatal_code;
32
33static inline void bsp_generic_fatal( bsp_generic_fatal_code code )
34{
35  rtems_fatal( RTEMS_FATAL_SOURCE_BSP_GENERIC, (rtems_fatal_code) code );
36}
37
38#ifdef __cplusplus
39}
40#endif /* __cplusplus */
41
42#endif /* LIBBSP_SHARED_BSP_GENERIC_FATAL_H */
Note: See TracBrowser for help on using the repository browser.