blob: 394c7923946a9c95dc94d8dbf78b2aaa728f83e3 [file] [log] [blame]
/*
* Copyright (c) 2021, Teslabs Engineering S.L.
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
static int gd32f4xx_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(gd32f4xx_soc_init, PRE_KERNEL_1, 0);