mbed library sources
Dependents:
Encrypted
my_mbed
lklk
CyaSSL_DTLS_Cellular
... more
4 comments:
Hello David G,
are you familiar with github? Because the most of a development is happening there, so you can ask for a pull request with the fix already in place. Based on a review, it will get accepted or declined with comments.
I just glanced at files, looks like more targets has this problem. Not 13XX, which seems to be doing it correctly.
Thanks for reporting the bug.
Regards,
0xc0170
It probably also needs to do it for all MRs, and not just the current one.
That or decide to not keep the duty cycle constant with changing periods, less code :D, and imo there is also something to say for that.
Erik,
You are correct that all the PWM MR's would need to be changed in order to account for a change in PWM period on any of the channels. I was just going to make an edit to my issue above, but noticed that you already pointed out that fact. Thanks. The problem fix is quite a bit more involved for that reason.
It might make sense to maintain an array of duty cycles, one per PWM channel. An element in this array could be updated whenever a PWM channel pulse width or duty cycle is changed. When period is changed, use the duty cycles to update the MR's of all PWM channels based on the new period.
Hello David G,
are you familiar with github? Because the most of a development is happening there, so you can ask for a pull request with the fix already in place. Based on a review, it will get accepted or declined with comments.
I just glanced at files, looks like more targets has this problem. Not 13XX, which seems to be doing it correctly.
Thanks for reporting the bug.
Regards, 0xc0170