analogdevicesinc / msdk

Software Development Kit for Analog Device's MAX-series microcontrollers
Apache License 2.0
64 stars 82 forks source link

fix(PeriphDrivers): Fix TMR Rev B Initialization Bug with Non-Default Clock Sources #829

Closed Jake-Carter closed 10 months ago

Jake-Carter commented 11 months ago

Description

Closes #823

There's a new note about clock selection in Rev 4 of the MAX32670 UG (See section 13.4)

image

In the past, the settings for the "A" timer were assumed to propagate through to the "B" timer in 32-bit cascade mode. It seems like there was a bug, so now we should match the clock selection for A/B on initialization to ensure proper operation in the 32-bit modes.

Checklist Before Requesting Review