1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu: drop cpu_init() from public headers

Boards are no longer supposed fo call the function, so drop it from
public header files.
This commit is contained in:
Benjamin Valentin 2021-10-18 17:30:06 +02:00
parent ccae474cf8
commit 3e20e939c6
9 changed files with 4 additions and 25 deletions

View File

@ -161,11 +161,6 @@ static inline int avr8_is_uart_tx_pending(void)
*/
void avr8_exit_isr(void);
/**
* @brief Initialization of the CPU
*/
void cpu_init(void);
/**
* @brief Initialization of the CPU clock
*/

View File

@ -38,6 +38,7 @@
* @brief functions for initializing the board, std-lib and kernel
*/
extern void board_init(void);
extern void cpu_init(void);
extern void kernel_init(void);
extern void __libc_init_array(void);

View File

@ -66,11 +66,6 @@ extern "C" {
*/
#define CORTEXM_SCB_CPACR_FPU_ACCESS_FULL (0x00f00000)
/**
* @brief Initialization of the CPU
*/
void cpu_init(void);
/**
* @brief Initialize Cortex-M specific core parts of the CPU
*

View File

@ -182,6 +182,7 @@ void reset_handler_default(void)
#endif
/* initialize the CPU */
extern void cpu_init(void);
cpu_init();
/* initialize the board (which also initiates CPU initialization) */

View File

@ -68,6 +68,7 @@ void cpu_init(void)
/* trigger static peripheral initialization */
periph_init();
}
void mips_start(void)
{
cpu_init();

View File

@ -50,11 +50,6 @@ static inline void cpu_print_last_instruction(void)
/* This function must exist else RIOT won't compile */
}
/**
* @brief Initialize the CPU, set IRQ priorities
*/
void cpu_init(void);
/**
* @brief Trigger a conditional context scheduler run / context switch
*

View File

@ -117,11 +117,6 @@ static inline void __attribute__((always_inline)) __exit_isr(void)
__restore_context();
}
/**
* @brief Initialize the cpu
*/
void msp430_cpu_init(void);
/**
* @brief Print the last instruction's address
*

View File

@ -33,6 +33,7 @@
#endif
extern void board_init(void);
extern void msp430_cpu_init(void);
__attribute__((constructor)) static void startup(void)
{

View File

@ -29,11 +29,6 @@
extern "C" {
#endif
/**
* @brief Initialization of the CPU
*/
void cpu_init(void);
/**
* @brief Initialize rv32i specific core parts of the CPU
*