Skip to content

Commit

Permalink
fix(PeriphDrivers): Fix MAX32672 MXC_TMR_GetPeriod for 16-32Mhz Clo…
Browse files Browse the repository at this point in the history
…ck (#814)
  • Loading branch information
Jake-Carter authored Dec 21, 2023
1 parent 1a6e1dc commit 8054a56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Libraries/PeriphDrivers/Source/TMR/tmr_me21.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ uint32_t MXC_TMR_GetPeriod(mxc_tmr_regs_t *tmr, mxc_tmr_clock_t clock, uint32_t
break;

case MXC_TMR_32M_CLK:
clockFrequency = 16000000; // Clock Frequency 16 MHz
clockFrequency = ERFO_FREQ; // Note: Could vary between 16-32Mhz. ERFO_FREQ should be
// overridden for custom designs.
break;

default:
Expand Down

0 comments on commit 8054a56

Please sign in to comment.