Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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 <zephyr/arch/cpu.h>
16#include <zephyr/toolchain.h>
17#include <zephyr/fatal_types.h>
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
37FUNC_NORETURN void k_fatal_halt(unsigned int reason);
38
68void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *esf);
69
84void z_fatal_error(unsigned int reason, const struct arch_esf *esf);
85
88#ifdef __cplusplus
89}
90#endif
91
92#endif /* ZEPHYR_INCLUDE_FATAL_H */
Fatal base type definitions.
void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *esf)
Fatal error policy handler.
FUNC_NORETURN void k_fatal_halt(unsigned int reason)
Halt the system on a fatal error.
Exception Stack Frame.
Definition exception.h:60
Macros to abstract toolchain specific capabilities.