drivers: Optimized periph PWM interfaces [adopted]#4638
drivers: Optimized periph PWM interfaces [adopted]#4638jnohlgard merged 11 commits intoRIOT-OS:masterfrom
Conversation
4b286c1 to
348c1b2
Compare
|
+1 one for the PR, but I can't really ACK it, since most of the changes I did myself... |
|
Can I help to ACK? |
There was a problem hiding this comment.
Any opinions on limiting value to 16 bits?
There was a problem hiding this comment.
yes, I think its good!
|
The trailing underscores in the periph_conf.h's guards are addressed in onother PR right? |
|
@A-Paul There are some PRs open for include guards, but I don't know if these files are fixed there specifically. Regardless, it is better to do a separate PR for the include guards rather than extending the life of this PR.. |
|
Has someone already run the test on any HW? |
|
Test on |
@kYc0o, yes sure. |
348c1b2 to
5cae0e5
Compare
|
Rebased, replaced |
cpu/lpc11u34/periph/pwm.c
Outdated
| /* Check if the frequency and resolution is applicable */ | ||
| if (CLOCK_CORECLOCK/(resolution*frequency) <= 0) { | ||
| if (CLOCK_CORECLOCK / (res * freq) <= 0) { | ||
| return -2; |
5cae0e5 to
8cb4995
Compare
|
Rebased. Fixed the return values and added a missing OK to squash? |
|
yes and ACK |
|
@gebart, have you time to rebase/squash? I could use this PR later today :-) |
|
@haukepetersen will do right now. |
8cb4995 to
c0de4e4
Compare
|
@haukepetersen I got no conflicts but a 3-way merge in kinetis_common that was automatically resolved by git, I'll re-test with a servo on mulle. Did you test any other platforms? |
c0de4e4 to
f4564d6
Compare
|
Works on mulle. |
f4564d6 to
f6bd9ca
Compare
|
nice, thanks, ACK holds |
|
Travis is green -> GO! |
drivers: Optimized periph PWM interfaces
This is @haukepetersen's #3644, rebased on latest master, squashed and additionally updated the servo API to return void on servo_set in order to match the API change for pwm_set.
There was a merge conflict in the STM32F4 driver stemming from #4454. The change in #4454 was copied with only the change rename the
frequencyvariablefreq