blob: d7b189530a987e33c840e8a374e68ea3d34aefd3 [file] [log] [blame]
/*
* Copyright (c) 2021, Teslabs Engineering S.L.
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/device.h>
#include <zephyr/init.h>
#include <zephyr/irq.h>
static int gd32f4xx_soc_init(void)
{
uint32_t key;
key = irq_lock();
SystemInit();
NMI_INIT();
irq_unlock(key);
return 0;
}
SYS_INIT(gd32f4xx_soc_init, PRE_KERNEL_1, 0);