blob: 6958f5bb1c1351c597b89b8423c27df6bb4fb4e5 [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(void)
{
uint32_t key;
key = irq_lock();
SystemInit();
NMI_INIT();
irq_unlock(key);
return 0;
}
SYS_INIT(gd32e10x_soc_init, PRE_KERNEL_1, 0);