From a294fbb3014e3a35c2b0cf54e3a54c49703f8d9a Mon Sep 17 00:00:00 2001 From: Omercan Kilic <134288264+kilicomercan@users.noreply.github.com> Date: Sat, 16 Mar 2024 02:33:07 +0300 Subject: [PATCH] fix(PeriphDrivers): Update INRO clock Enum name for MAX32662. (#946) --- Libraries/PeriphDrivers/Include/MAX32662/tmr.h | 4 ++-- Libraries/PeriphDrivers/Source/TMR/tmr_me12.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/PeriphDrivers/Include/MAX32662/tmr.h b/Libraries/PeriphDrivers/Include/MAX32662/tmr.h index bf656c5874e..de05225049e 100644 --- a/Libraries/PeriphDrivers/Include/MAX32662/tmr.h +++ b/Libraries/PeriphDrivers/Include/MAX32662/tmr.h @@ -149,8 +149,8 @@ typedef enum { MXC_TMR_8M_CLK, /*32K clock can be used for Timers 0,1,2,3 and 4*/ MXC_TMR_32K_CLK, - /*8K and EXT clocks can only be used for Timers 4 and 5*/ - MXC_TMR_8K_CLK, + /*80K and EXT clocks can only be used for Timers 4 and 5*/ + MXC_TMR_80K_CLK } mxc_tmr_clock_t; /** diff --git a/Libraries/PeriphDrivers/Source/TMR/tmr_me12.c b/Libraries/PeriphDrivers/Source/TMR/tmr_me12.c index 46a6e0e33fd..eecb91b40df 100644 --- a/Libraries/PeriphDrivers/Source/TMR/tmr_me12.c +++ b/Libraries/PeriphDrivers/Source/TMR/tmr_me12.c @@ -66,7 +66,7 @@ int MXC_TMR_Init(mxc_tmr_regs_t *tmr, mxc_tmr_cfg_t *cfg, bool init_pins, sys_ma MXC_TMR_RevB_SetClockSourceFreq((mxc_tmr_revb_regs_t *)tmr, ERTCO_FREQ); break; - case MXC_TMR_8K_CLK: + case MXC_TMR_80K_CLK: if (tmr_id < 3) { // Timers 0-2 do not support this clock source return E_NOT_SUPPORTED; } @@ -242,7 +242,7 @@ uint32_t MXC_TMR_GetPeriod(mxc_tmr_regs_t *tmr, mxc_tmr_clock_t clock, uint32_t clockFrequency = ERTCO_FREQ; break; - case MXC_TMR_8K_CLK: + case MXC_TMR_80K_CLK: clockFrequency = INRO_FREQ; break;