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 MAX32675 timer warning #7

Merged
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
4 changes: 2 additions & 2 deletions MAX/Libraries/PeriphDrivers/Source/TMR/tmr_me16.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@

int MXC_TMR_Init(mxc_tmr_regs_t *tmr, mxc_tmr_cfg_t *cfg, bool init_pins)
{
uint8_t tmr_id;
uint8_t tmr_id = MXC_TMR_GET_IDX(tmr);
uint8_t clockSource = MXC_TMR_CLK0;

if (cfg == NULL) {
return E_NULL_PTR;
}

MXC_ASSERT((tmr_id = MXC_TMR_GET_IDX(tmr)) >= 0);
MXC_ASSERT(tmr_id >= 0);

switch (cfg->clock) {
case MXC_TMR_EXT_CLK:
Expand Down