fix(Examples,PeriphDrivers): Update TMR Clock Source names to be consistent with the User Guides #956
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The microcontrollers with the TMR_RevB IP Core allow users to select different clock sources for each timer instance. In the MSDK, this is represented using the
mxc_tmr_clock_t
enum. However, the options in themxc_tmr_clock_t
enum were named after frequencies of the clock sources, not their individually-referred names.This can cause confusion as the named frequencies doesn't always match the actual frequency of the clock source. For example, the
MXC_TMR_32M_CLK
represents the ERFO clock which could range from 16-32MHz. We have parts in the MSDK setting the ERFO to 16MHz, 25MHz, and 32MHz. TheMXC_TMR_8K_CLK
represents the INRO clock, and this oscillator's frequency is highly variable. Some parts also have the INRO set to 80KHz.This PR updates the TMR enum names (while leaving the old names in) to make it more readable and consistent with the user guides for the affected parts. Also, I scrubbed through the TMR RevB drivers to ensure the clock source selections are correct and only had what the part actually supports.
Checklist Before Requesting Review