1 /* 2 * Copyright (c) 2023-2024 Analog Devices, Inc. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief System/hardware module for MAX32xxx MCUs 10 */ 11 12 #include <zephyr/device.h> 13 #include <zephyr/init.h> 14 15 #include <wrap_max32_sys.h> 16 17 #if defined(CONFIG_MAX32_ON_ENTER_CPU_IDLE_HOOK) z_arm_on_enter_cpu_idle(void)18bool z_arm_on_enter_cpu_idle(void) 19 { 20 /* Returning false prevent device goes to sleep mode */ 21 return false; 22 } 23 #endif 24 25 /** 26 * @brief Perform basic hardware initialization at boot. 27 * 28 * This needs to be run from the very beginning. 29 */ soc_early_init_hook(void)30void soc_early_init_hook(void) 31 { 32 /* Apply device related preinit configuration */ 33 max32xx_system_init(); 34 } 35