Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PeriphDrivers): Fix MAX32672 MXC_TMR_GetPeriod for 16-32Mhz Clock #814

Merged
merged 2 commits into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -304,7 +304,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