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

Hrtim5 #141

Closed
wants to merge 88 commits into from
Closed

Hrtim5 #141

wants to merge 88 commits into from

Conversation

usbalbin
Copy link
Contributor

@usbalbin usbalbin commented Nov 7, 2024

Rebased over #102

usbalbin and others added 30 commits November 7, 2024 19:20
Co-authored-by: Zgarbul Andrey <[email protected]>
* Rcc enable is now handled for the entire HRTIM peripheral by dp.HRTIM_COMMON.hr_control() instead of by every timer
* HRTIM calibration is now mandatory, also handled by `dp.HRTIM_COMMON.hr_control()` but also by running on that result `_.wait_for_calibration().
* Add `get_state` for `HrOutput` to check what state an output is in: `Idle`, `Running` or `Fault`
* dma - update for new pac
* adc - triggers
* hrtim
usbalbin and others added 28 commits November 7, 2024 23:29
This is quite an ugly hack but it does try to keep the API as unchanged as possible.
This fix only fixes the problem on cat 3 and 4 devices for now.

According to RM0440 under "DMAMUX mapping":

For category 3 and category 4 devices:
* DMAMUX channels 0 to 7 are connected to DMA1 channels 1 to 8
* DMAMUX channels 8 to 15 are connected to DMA2 channels 1 to 8

For category 2 devices:
* DMAMUX channels 0 to 5 are connected to DMA1 channels 1 to 6
* DMAMUX channels 6 to 11 are connected to DMA2 channels 1 to 6
* Allow disabling update of shadow registers
* Add `control` member to HrPwmControl
* HRTIM now has its own `FaultMonitor` trait
… of init

This ensures there is no sporadic output at the pins.

This is a breaking change and does change and clean up quite a lot of things.
Examples will need to be updated.
@usbalbin
Copy link
Contributor Author

usbalbin commented Nov 9, 2024

Closed in favor of #146

@usbalbin usbalbin closed this Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant