1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-13 16:43:52 +01:00
RIOT/core/lib/include/kernel_init.h
Marian Buschsieweke bd43254702
core: use SPDX copyright tags
Co-authored-by: crasbe <crasbe@gmail.com>
2025-11-23 21:07:35 +01:00

69 lines
1.2 KiB
C

/*
* SPDX-FileCopyrightText: 2016 Kaspar Schleiser <kaspar@schleiser.de>
* SPDX-FileCopyrightText: 2013 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @ingroup core_internal
* @{
*
* @file
* @brief prototypes for kernel initialization
*
* @author Oliver Hahm <oliver.hahm@inria.fr>
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* @defgroup core_init_config Core initialization compile configuration
* @ingroup config
* @{
*/
#ifdef DOXYGEN
/**
* @brief Enable this to disable printing a message on bootup.
*/
#define CONFIG_SKIP_BOOT_MSG
/**
* @brief The message printed by RIOT before calling the main() function, when
* @ref CONFIG_SKIP_BOOT_MSG is not set.
*/
#define CONFIG_BOOT_MSG_STRING
#endif /* DOXYGEN */
/** @} */
/**
* @brief Initializes scheduler and creates main and idle task
*/
void kernel_init(void);
/**
* @brief Initialize board specific hardware
*/
void board_init(void);
/**
* @brief Initialize debug LEDs and stdio
*/
#ifdef MODULE_CORE_INIT
void early_init(void);
#else
static inline void early_init(void) {}
#endif
#ifdef __cplusplus
}
#endif
/** @} */