From bc515f25412c42863c337d7617869a8ae8cf4c89 Mon Sep 17 00:00:00 2001 From: Tahsin Mutlugun Date: Fri, 13 Dec 2024 12:14:08 -0600 Subject: [PATCH] Update INRO clock rate to 131kHz Update the code to use the correct clock rate of 131kHz for internal nano-ring oscillator. Signed-off-by: Tahsin Mutlugun --- Libraries/CMSIS/Device/Maxim/MAX32657/Include/system_max32657.h | 2 +- Libraries/PeriphDrivers/Source/SYS/sys_me30.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/system_max32657.h b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/system_max32657.h index 0a086a133b4..ba6e6fac685 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/system_max32657.h +++ b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/system_max32657.h @@ -38,7 +38,7 @@ extern "C" { Update if use of this oscillator requires precise timing.*/ /* NOTE: INRO was previously named NANORING */ #ifndef INRO_FREQ -#define INRO_FREQ 100000 +#define INRO_FREQ 131000 #endif #ifndef IPO_FREQ diff --git a/Libraries/PeriphDrivers/Source/SYS/sys_me30.c b/Libraries/PeriphDrivers/Source/SYS/sys_me30.c index 18311b1cd99..ee45aa55f6b 100644 --- a/Libraries/PeriphDrivers/Source/SYS/sys_me30.c +++ b/Libraries/PeriphDrivers/Source/SYS/sys_me30.c @@ -301,7 +301,7 @@ int MXC_SYS_ClockSourceDisable(mxc_sys_system_clock_t clock) break; case MXC_SYS_CLOCK_INRO: - // The 80k clock is always enabled + // The 131k clock is always enabled break; case MXC_SYS_CLOCK_ERFO: