blob: e8731171d583e3cd049f00ee058d9c699c8d5454 [file] [log] [blame]
/*
* 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);