Zephyr API Documentation  3.6.99
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>
15#include <zephyr/toolchain.h>
16#include <zephyr/fatal_types.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
36FUNC_NORETURN void k_fatal_halt(unsigned int reason);
37
67void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf);
68
83void z_fatal_error(unsigned int reason, const z_arch_esf_t *esf);
84
87#ifdef __cplusplus
88}
89#endif
90
91#endif /* ZEPHYR_INCLUDE_FATAL_H */
Fatal base type definitions.
FUNC_NORETURN void k_fatal_halt(unsigned int reason)
Halt the system on a fatal error.
void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *esf)
Fatal error policy handler.
Macros to abstract toolchain specific capabilities.