-
Notifications
You must be signed in to change notification settings - Fork 1k
Timer pull request #447
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
Timer pull request #447
Conversation
Example ino to check function
|
Thanks @Tjeerdie |
When i get home i try to fix the Astyle issue. |
@fpistm Did you already start with a HardwareTimer implementation or is there nothing implemented yet? I was considering using the STM32GERNERIC core implementation as a starting point for this. Because it is also based on the ST HAL. But i do not want to do redundant work if not necessary. |
@Tjeerdie |
@fpistm Any news if this is going to be accepted like it is? Or does it need more work before that? |
@Tjeerdie Sorry I didn't have time to check. |
This would be a great addition. Currently using the The PR allows use of these extra channels without any breakage to current use. The only alternative to getting the equivalent functionality to this PR would be to move the stm32generic HardwareTimer implementation over. |
Pr's are welcome :)
…On Thu, 7 Mar 2019, 10:48 Josh Stewart, ***@***.***> wrote:
This would be a great addition. Currently using the stimer arrangement,
there's no way at all to utilise any compare channel except 1, which makes
the implementation very limited.
The PR allows use of these extra channels without any breakage to current
use.
The only alternative would be to move the stn32generic HardwareTimer
implementation over.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#447 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AX0eXuwCPwDb-kJQfqo2LJscqRgLEZiPks5vUO58gaJpZM4bBk7T>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First review:
- Several commits needs to be squash and commit messages to review following contributing guidelines.
Ex: 2 commits:
[Timer] Add get/set prescaler register function
[Timer] Add channels support
- Rebase on top of the master
- Some enhancement could be performed to avoid lot of return or factorize code
Co-Authored-By: Tjeerdie <[email protected]>
@fpistm i will check this as soon as i have time. Hopefully this will be tomorrow. |
Replace by #473 |
Adding on timer to make channel 1..4 IRQ callbacks possible
The timer.c and timer.h are modified such that you can now attach
interrupt callbacks to all channels of the hardware timers. This feature
should be fully backwards compatible with the previous implementation.
The addition is done to make an arduino core implementation of
HardwareTimers possible (Next step). That would be inline with what other
arduino stm32 cores offer.
This PR starts implementation of the following bugs/features
See issue #146