Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
2.7.0-rc2
Toggle main menu visibility
Main Page
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
fatal.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Intel Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
11
#ifndef ZEPHYR_INCLUDE_FATAL_H
12
#define ZEPHYR_INCLUDE_FATAL_H
13
14
#include <arch/cpu.h>
15
#include <
toolchain.h
>
16
23
enum
k_fatal_error_reason
{
25
K_ERR_CPU_EXCEPTION
,
26
28
K_ERR_SPURIOUS_IRQ
,
29
31
K_ERR_STACK_CHK_FAIL
,
32
34
K_ERR_KERNEL_OOPS
,
35
37
K_ERR_KERNEL_PANIC
38
39
/* TODO: add more codes for exception types that are common across
40
* architectures
41
*/
42
};
43
52
FUNC_NORETURN
void
k_fatal_halt
(
unsigned
int
reason);
53
83
void
k_sys_fatal_error_handler
(
unsigned
int
reason,
const
z_arch_esf_t *esf);
84
99
void
z_fatal_error(
unsigned
int
reason,
const
z_arch_esf_t *esf);
100
103
#endif
/* ZEPHYR_INCLUDE_FATAL_H */
k_fatal_error_reason
k_fatal_error_reason
Definition:
fatal.h:23
k_fatal_halt
FUNC_NORETURN void k_fatal_halt(unsigned int reason)
Halt the system on a fatal error.
k_sys_fatal_error_handler
void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf)
Fatal error policy handler.
Definition:
main.c:49
K_ERR_STACK_CHK_FAIL
@ K_ERR_STACK_CHK_FAIL
Definition:
fatal.h:31
K_ERR_SPURIOUS_IRQ
@ K_ERR_SPURIOUS_IRQ
Definition:
fatal.h:28
K_ERR_KERNEL_PANIC
@ K_ERR_KERNEL_PANIC
Definition:
fatal.h:37
K_ERR_KERNEL_OOPS
@ K_ERR_KERNEL_OOPS
Definition:
fatal.h:34
K_ERR_CPU_EXCEPTION
@ K_ERR_CPU_EXCEPTION
Definition:
fatal.h:25
toolchain.h
Macros to abstract toolchain specific capabilities.
include
fatal.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4