Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hooks.h File Reference

Soc and Board hooks. More...

Go to the source code of this file.

Functions

void soc_reset_hook (void)
 SoC hook executed at the beginning of the reset vector.
 
void soc_prep_hook (void)
 SoC hook executed after the reset vector.
 
void soc_early_init_hook (void)
 SoC hook executed before the kernel and devices are initialized.
 
void soc_late_init_hook (void)
 SoC hook executed after the kernel and devices are initialized.
 
void soc_per_core_init_hook (void)
 SoC per-core initialization.
 
void board_early_init_hook (void)
 Board hook executed before the kernel starts.
 
void board_late_init_hook (void)
 Board hook executed after the kernel starts.
 

Detailed Description

Soc and Board hooks.

This header file contains function prototypes for the interfaces between zephyr architecture and initialization code and the SoC and board specific logic that resides under boards/ and soc/

Note
These are all standard soc and board interfaces that are exported from soc and board specific logic to OS internal logic. These should never be accessed directly from application code but may be freely used within the OS.

Function Documentation

◆ board_early_init_hook()

void board_early_init_hook ( void )

Board hook executed before the kernel starts.

This is called before the kernel has started. This hook is implemented by the board and can be used to perform any board-specific initialization.

◆ board_late_init_hook()

void board_late_init_hook ( void )

Board hook executed after the kernel starts.

This is called after the kernel has started, but before the main function is called. This hook is implemented by the board and can be used to perform any board-specific initialization.

◆ soc_early_init_hook()

void soc_early_init_hook ( void )

SoC hook executed before the kernel and devices are initialized.

This hook is implemented by the SoC and can be used to perform any SoC-specific initialization.

◆ soc_late_init_hook()

void soc_late_init_hook ( void )

SoC hook executed after the kernel and devices are initialized.

This hook is implemented by the SoC and can be used to perform any SoC-specific initialization.

◆ soc_per_core_init_hook()

void soc_per_core_init_hook ( void )

SoC per-core initialization.

This hook is implemented by the SoC and can be used to perform any SoC-specific per-core initialization

◆ soc_prep_hook()

void soc_prep_hook ( void )

SoC hook executed after the reset vector.

This hook is implemented by the SoC and can be used to perform any SoC-specific initialization.

◆ soc_reset_hook()

void soc_reset_hook ( void )

SoC hook executed at the beginning of the reset vector.

This hook is implemented by the SoC and can be used to perform any SoC-specific initialization.