From 5b031265d6aed748827d9d7d964f62704dd0cfab Mon Sep 17 00:00:00 2001 From: Tahsin Mutlugun Date: Fri, 3 Jan 2025 13:29:48 +0300 Subject: [PATCH] Update low power wrapper for MAX32657 Update wrap_max32_lp.h to accomodate the low power modes of MAX32657. Signed-off-by: Tahsin Mutlugun --- Libraries/zephyr/MAX/Include/wrap_max32_lp.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Libraries/zephyr/MAX/Include/wrap_max32_lp.h b/Libraries/zephyr/MAX/Include/wrap_max32_lp.h index 98b73d8e2d2..e92a057a895 100644 --- a/Libraries/zephyr/MAX/Include/wrap_max32_lp.h +++ b/Libraries/zephyr/MAX/Include/wrap_max32_lp.h @@ -61,12 +61,20 @@ static inline void Wrap_MXC_LP_EnterPowerDownMode(void) static inline void Wrap_MXC_LP_EnterLowPowerMode(void) { +#if defined(CONFIG_SOC_MAX32657) + MXC_LP_EnterSleepMode(); +#else MXC_LP_EnterLowPowerMode(); +#endif } static inline void Wrap_MXC_LP_EnterMicroPowerMode(void) { +#if defined(CONFIG_SOC_MAX32657) + MXC_LP_EnterSleepMode(); +#else MXC_LP_EnterMicroPowerMode(); +#endif } static inline void Wrap_MXC_LP_EnterStandbyMode(void)