1 /* 2 * Copyright (c) 2022, Teslabs Engineering S.L. 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6 #include <zephyr/init.h> 7 #include <zephyr/irq.h> 8 gd32e50x_soc_init(void)9static int gd32e50x_soc_init(void) 10 { 11 uint32_t key; 12 13 14 key = irq_lock(); 15 16 SystemInit(); 17 NMI_INIT(); 18 19 irq_unlock(key); 20 21 return 0; 22 } 23 24 SYS_INIT(gd32e50x_soc_init, PRE_KERNEL_1, 0); 25