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