Line data Source code
1 1 : /*
2 : * Copyright (c) 2023 CSIRO.
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : /** @file
8 : * @brief Fatal base type definitions
9 : */
10 :
11 : #ifndef ZEPHYR_INCLUDE_FATAL_TYPES_H
12 : #define ZEPHYR_INCLUDE_FATAL_TYPES_H
13 :
14 : #ifdef __cplusplus
15 : extern "C" {
16 : #endif
17 :
18 : /**
19 : * @defgroup fatal_types Fatal error base types
20 : * @ingroup fatal_apis
21 : * @{
22 : */
23 :
24 0 : enum k_fatal_error_reason {
25 : /** Generic CPU exception, not covered by other codes */
26 : K_ERR_CPU_EXCEPTION,
27 :
28 : /** Unhandled hardware interrupt */
29 : K_ERR_SPURIOUS_IRQ,
30 :
31 : /** Faulting context overflowed its stack buffer */
32 : K_ERR_STACK_CHK_FAIL,
33 :
34 : /** Moderate severity software error */
35 : K_ERR_KERNEL_OOPS,
36 :
37 : /** High severity software error */
38 : K_ERR_KERNEL_PANIC,
39 :
40 : /** Arch specific fatal errors */
41 : K_ERR_ARCH_START = 16
42 : };
43 :
44 : /** @} */
45 :
46 : #ifdef __cplusplus
47 : }
48 : #endif
49 :
50 : #endif /* ZEPHYR_INCLUDE_FATAL_TYPES_H */
|