2023-10-13 21:23:57 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023-2024 Analog Devices, Inc.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief System/hardware module for MAX32xxx MCUs
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <zephyr/device.h>
|
|
|
|
#include <zephyr/init.h>
|
|
|
|
|
|
|
|
#include <wrap_max32_sys.h>
|
|
|
|
|
|
|
|
#if defined(CONFIG_MAX32_ON_ENTER_CPU_IDLE_HOOK)
|
|
|
|
bool z_arm_on_enter_cpu_idle(void)
|
|
|
|
{
|
|
|
|
/* Returning false prevent device goes to sleep mode */
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Perform basic hardware initialization at boot.
|
|
|
|
*
|
|
|
|
* This needs to be run from the very beginning.
|
|
|
|
*/
|
2024-09-10 21:42:25 +08:00
|
|
|
void soc_early_init_hook(void)
|
2023-10-13 21:23:57 +08:00
|
|
|
{
|
|
|
|
/* Apply device related preinit configuration */
|
|
|
|
max32xx_system_init();
|
|
|
|
}
|