source: rtems/cpukit/sapi/include/rtems/fatal.h @ b697bc6

4.115
Last change on this file since b697bc6 was b697bc6, checked in by Joel Sherrill <joel.sherrill@…>, on 01/10/13 at 21:06:42

cpukit: Use Consistent Beginning of Doxygen Group Notation

This is the result of a sed script which converts all uses
of @{ into a consistent form.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @file
3 *
4 * @brief Fatal API.
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-2011.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 */
15
16#ifndef _RTEMS_FATAL_H
17#define _RTEMS_FATAL_H
18
19#include <rtems/score/basedefs.h> /* RTEMS_COMPILER_NO_RETURN_ATTRIBUTE */
20#include <rtems/extension.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26/**
27 * @defgroup ClassicFatal Fatal
28 *
29 * @ingroup ClassicRTEMS
30 *
31 * @brief The Fatal Manager provides functions for fatal system states and or
32 * irrecoverable errors.
33 */
34/**@{**/
35
36/**
37 * @brief Exception frame.
38 */
39typedef CPU_Exception_frame rtems_exception_frame;
40
41/**
42 * @brief Prints the exception frame via printk().
43 *
44 * @see rtems_fatal() and RTEMS_FATAL_SOURCE_EXCEPTION.
45 */
46static inline void rtems_exception_frame_print(
47  const rtems_exception_frame *frame
48)
49{
50  _CPU_Exception_frame_print( frame );
51}
52
53/**
54 * @brief Invokes the internal error handler with a source of
55 * INTERNAL_ERROR_RTEMS_API and is internal set to false.
56 *
57 * @param[in] the_error is a 32-bit fatal error code.
58 *
59 * @see _Internal_error_Occurred().
60 */
61void rtems_fatal_error_occurred(
62  uint32_t   the_error
63) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
64
65/**
66 * @brief Invokes the internal error handler with is internal set to false.
67 *
68 * @param[in] source is the fatal source.
69 * @param[in] error is the fatal code.
70 *
71 * @see _Internal_error_Occurred().
72 */
73void rtems_fatal(
74  rtems_fatal_source source,
75  rtems_fatal_code error
76) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
77
78/**
79 * @brief Returns a description for a fatal source.
80 *
81 * @param[in] source is the fatal source.
82 *
83 * @retval description The fatal source description.
84 * @retval ? The passed fatal source is invalid.
85 */
86const char *rtems_fatal_source_description( rtems_fatal_source source );
87
88/**
89 * @brief Returns a description for an internal error code.
90 *
91 * @param[in] error is the error code.
92 *
93 * @retval description The error code description.
94 * @retval ? The passed error code is invalid.
95 */
96const char *rtems_internal_error_description( rtems_fatal_code error );
97
98/** @} */
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
105/* end of include file */
Note: See TracBrowser for help on using the repository browser.