blob: 80cf3bada588e3d7e373bef45e2496f673004d37 [file] [log] [blame]
/*
* Copyright (c) 2021 YuLong Yao <feilongphone@gmail.com>
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <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);