blob: 2ca3748c9d8056b4338466c60c73875f61517861 [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 <zephyr/irq.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);