mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +01:00
core/init: minor code cleanup
This commit is contained in:
parent
2491bbaea3
commit
d4e051596c
21
core/init.c
21
core/init.c
@ -19,19 +19,16 @@
|
|||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdbool.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include "kernel_init.h"
|
#include <stdbool.h>
|
||||||
#include "thread.h"
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "auto_init.h"
|
||||||
#include "irq.h"
|
#include "irq.h"
|
||||||
|
#include "kernel_init.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
|
||||||
#include "periph/pm.h"
|
#include "periph/pm.h"
|
||||||
|
#include "thread.h"
|
||||||
#ifdef MODULE_AUTO_INIT
|
|
||||||
#include <auto_init.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define ENABLE_DEBUG 0
|
#define ENABLE_DEBUG 0
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
@ -47,9 +44,9 @@ static void *main_trampoline(void *arg)
|
|||||||
{
|
{
|
||||||
(void)arg;
|
(void)arg;
|
||||||
|
|
||||||
#ifdef MODULE_AUTO_INIT
|
if (IS_USED(MODULE_AUTO_INIT)) {
|
||||||
auto_init();
|
auto_init();
|
||||||
#endif
|
}
|
||||||
|
|
||||||
if (!IS_ACTIVE(CONFIG_SKIP_BOOT_MSG)) {
|
if (!IS_ACTIVE(CONFIG_SKIP_BOOT_MSG)) {
|
||||||
LOG_INFO(CONFIG_BOOT_MSG_STRING "\n");
|
LOG_INFO(CONFIG_BOOT_MSG_STRING "\n");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user