From d61468dbcfa791732e69c566dcc84083e898c7dc Mon Sep 17 00:00:00 2001 From: Tahsin Mutlugun Date: Thu, 10 Oct 2024 15:29:30 +0300 Subject: [PATCH 1/2] Fix mismatched LP shutdown function for MAX32662 Shutdown function is defined as MXC_LP_EnterShutDownMode lp.h however it is implemented as MXC_LP_EnterPowerDownMode. Signed-off-by: Tahsin Mutlugun --- MAX/Libraries/PeriphDrivers/Source/LP/lp_me12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAX/Libraries/PeriphDrivers/Source/LP/lp_me12.c b/MAX/Libraries/PeriphDrivers/Source/LP/lp_me12.c index 3b2c9a9..ead2ece 100644 --- a/MAX/Libraries/PeriphDrivers/Source/LP/lp_me12.c +++ b/MAX/Libraries/PeriphDrivers/Source/LP/lp_me12.c @@ -58,7 +58,7 @@ void MXC_LP_EnterBackupMode(void) // Should never reach this line - device will jump to backup vector on exit from background mode. } -void MXC_LP_EnterPowerDownMode(void) +void MXC_LP_EnterShutDownMode(void) { MXC_GCR->pm &= ~MXC_F_GCR_PM_MODE; MXC_GCR->pm |= MXC_S_GCR_PM_MODE_SHUTDOWN; From 183dbff50b6ab87bf57f28a7bd405f5506ed00ad Mon Sep 17 00:00:00 2001 From: Tahsin Mutlugun Date: Thu, 10 Oct 2024 15:32:24 +0300 Subject: [PATCH 2/2] Remove unused includes for MAX32672 Remove inclusion of trimsir_regs.h and aes_regs.h from max32672.h. They may cause redefinition warnings for __I macro. Signed-off-by: Tahsin Mutlugun --- .../CMSIS/Device/Maxim/MAX32672/Include/max32672.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/MAX/Libraries/CMSIS/Device/Maxim/MAX32672/Include/max32672.h b/MAX/Libraries/CMSIS/Device/Maxim/MAX32672/Include/max32672.h index f4c0d69..604e6d5 100644 --- a/MAX/Libraries/CMSIS/Device/Maxim/MAX32672/Include/max32672.h +++ b/MAX/Libraries/CMSIS/Device/Maxim/MAX32672/Include/max32672.h @@ -29,13 +29,6 @@ #include -// TODO(ADI): Remove below after grace period. Temporarily added these includes to resolve errors -// for grace period before eventually removing support for deprecated features. 10-24-2022 -//>>> -#include "trimsir_regs.h" -#include "aes_regs.h" -//<<< - #ifndef FALSE #define FALSE (0) #endif @@ -314,10 +307,6 @@ typedef enum { #define MXC_BASE_AES ((uint32_t)0x40207400UL) #define MXC_AES ((mxc_aes_regs_t *)MXC_BASE_AES) -// DEPRECATED(10-24-2022): Scheduled for removal. -typedef __attribute__((deprecated( - "Use MXC_AES (mxc_aes_regs_t), not the deprecated MXC_SYS_AES (mxc_sys_aes_regs_t) instance name and struct. 10-24-2022"))) -mxc_aes_regs_t mxc_sys_aes_regs_t; #define MXC_SYS_AES ((mxc_sys_aes_regs_t *)MXC_BASE_AES) /******************************************************************************/