/* | |
* Copyright (c) 2022, Teslabs Engineering S.L. | |
* SPDX-License-Identifier: Apache-2.0 | |
*/ | |
#include <zephyr/init.h> | |
#include <zephyr/irq.h> | |
static int gd32e50x_soc_init(void) | |
{ | |
uint32_t key; | |
key = irq_lock(); | |
SystemInit(); | |
NMI_INIT(); | |
irq_unlock(key); | |
return 0; | |
} | |
SYS_INIT(gd32e50x_soc_init, PRE_KERNEL_1, 0); |