blob: a7824b052fc63fe7dbc827068d2b9acc3697e36e [file] [log] [blame]
/*
* Copyright (c) 2021, Teslabs Engineering S.L.
* SPDX-License-Identifier: Apache-2.0
*/
#include <device.h>
#include <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);