Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hooks.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_PLATFORM_PLATFORM_H_
7#define ZEPHYR_INCLUDE_PLATFORM_PLATFORM_H_
8
21
22#if defined(CONFIG_SOC_EARLY_RESET_HOOK) || defined(__DOXYGEN__)
32#else
33#define soc_early_reset_hook() do { } while (0)
34#endif
35
36#if defined(CONFIG_SOC_RESET_HOOK) || defined(__DOXYGEN__)
43void soc_reset_hook(void);
44#else
45#define soc_reset_hook() do { } while (0)
46#endif
47
48#if defined(CONFIG_SOC_PREP_HOOK) || defined(__DOXYGEN__)
55void soc_prep_hook(void);
56#else
57#define soc_prep_hook() do { } while (0)
58#endif
59
60#if defined(CONFIG_SOC_EARLY_INIT_HOOK) || defined(__DOXYGEN__)
68#else
69#define soc_early_init_hook() do { } while (0)
70#endif
71
72#if defined(CONFIG_SOC_LATE_INIT_HOOK) || defined(__DOXYGEN__)
80#else
81#define soc_late_init_hook() do { } while (0)
82#endif
83
84#if defined(CONFIG_SOC_PER_CORE_INIT_HOOK) || defined(__DOXYGEN__)
92#else
93#define soc_per_core_init_hook() do { } while (0)
94#endif
95
96#if defined(CONFIG_BOARD_EARLY_INIT_HOOK) || defined(__DOXYGEN__)
105#else
106#define board_early_init_hook() do { } while (0)
107#endif
108
109#if defined(CONFIG_BOARD_LATE_INIT_HOOK) || defined(__DOXYGEN__)
118#else
119#define board_late_init_hook() do { } while (0)
120#endif
121
122#endif
void soc_early_init_hook(void)
SoC hook executed before the kernel and devices are initialized.
void board_early_init_hook(void)
Board hook executed before the kernel starts.
void soc_late_init_hook(void)
SoC hook executed after the kernel and devices are initialized.
void soc_reset_hook(void)
SoC hook executed at the beginning of the reset vector.
void soc_early_reset_hook(void)
SoC hook executed before data RAM initialization, at the beginning of the reset vector.
void soc_prep_hook(void)
SoC hook executed after the reset vector.
void board_late_init_hook(void)
Board hook executed after the kernel starts.
void soc_per_core_init_hook(void)
SoC per-core initialization.