blob: 51e4dc35b59bd96046293f807283fb0190dd5904 [file] [log] [blame]
/*
* Copyright (c) 2021 YuLong Yao <feilongphone@gmail.com>
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <soc.h>
static int gd32e10x_soc_init(const struct device *dev)
{
uint32_t key;
ARG_UNUSED(dev);
key = irq_lock();
SystemInit();
NMI_INIT();
irq_unlock(key);
return 0;
}
SYS_INIT(gd32e10x_soc_init, PRE_KERNEL_1, 0);