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

STM32: Add PulseOut support #2668

Merged
merged 4 commits into from
Mar 3, 2020
Merged

STM32: Add PulseOut support #2668

merged 4 commits into from
Mar 3, 2020

Conversation

hierophect
Copy link
Collaborator

@hierophect hierophect commented Feb 29, 2020

Broadly matches the implementations of the NRF and Atmel ports. Uses the STM32 TIM7 peripheral, a basic timer that is not tied to any pins - since the HAL support for the basic timers is limited, contains a little more register micromanagement than usual. Tested on STM32F405 Feather.

I used the basic timers for this implementation since I figured it would maximize the exposure of timers for PWM pins, but I missed that they're not available on low end Access Line boards such as the F401 and F411. Since the basic timers have a different register implementation than standard timers I think it's best if I patch in support for those sets of boards later.

Matches the implementations of the NRF and Atmel ports. TIM7 is used as it does not have a tied pin. Contains some register micromanagement since HAL support for the TIM7 timer is limited.
@hierophect hierophect changed the title STM322: Add PulseOut support STM32: Add PulseOut support Feb 29, 2020
@hierophect hierophect added the stm label Feb 29, 2020
@tannewt tannewt self-requested a review March 3, 2020 19:28
tannewt
tannewt previously approved these changes Mar 3, 2020
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me! Totally fine to follow up for the Access line.

@hierophect hierophect requested a review from tannewt March 3, 2020 20:27
@hierophect
Copy link
Collaborator Author

@tannewt could you re-approve after the CI clears? It cancelled some checks for some reason and I dismissed your review trying to get it to restart.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good! Thank you!

@tannewt tannewt merged commit 6468ca0 into adafruit:master Mar 3, 2020
@hierophect hierophect deleted the stm32-pulseout branch March 3, 2020 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants