blob: 9b253303d284a35742f0b847c5fbb520c98edda6 [file] [log] [blame]
/*
* Copyright (c) Copyright (c) 2021 BrainCo Inc.
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
#include <soc.h>
static int gd32f3x0_init(const struct device *dev)
{
uint32_t key;
ARG_UNUSED(dev);
key = irq_lock();
SystemInit();
NMI_INIT();
irq_unlock(key);
return 0;
}
SYS_INIT(gd32f3x0_init, PRE_KERNEL_1, 0);