summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/moduzlib.c
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2022-02-25 20:18:24 +0100
committerDamien George <damien@micropython.org>2022-03-08 23:11:17 +1100
commite0b97013d0730a70d94922aca168f49b9f456e46 (patch)
tree08251f2780ed7e111a1e77964a515240b2067009 /extmod/moduzlib.c
parent4774501cab372b75ca263be91d5eb0fa3ba9d60d (diff)
downloadmicropython-e0b97013d0730a70d94922aca168f49b9f456e46.tar.gz
micropython-e0b97013d0730a70d94922aca168f49b9f456e46.zip
mimxrt/hal/pwm_backport: Make PWM symmetric, and round division calcs.
Ensure the symmetry of PWM: the duty rate of X and Q channels was not 50%, when it should have been. That is evident at high frequencies, like 15Mhz or 37.5 MHz. At low frequencies the deviation mattered less. The A/B channels were fine. Also round up or down non-integer division factors. Before, always the floor value was used.
Diffstat (limited to 'extmod/moduzlib.c')
0 files changed, 0 insertions, 0 deletions