1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/periph_pwm
Benjamin Valentin 6ba4225eed tests/periph_pwm: limit OSC_STEPS to 256 to work on all platforms
The ATmega PWM implementation only supports a maximum resolution of 256.
Thus when running `osci` with `OSC_STEPS` = 1000 an assertion will fail and
the test crashes, even though the PWM peripheral works perfectly fine.

Limit OSC_STEPS to 256 so it works on all platforms.
The LED flashing doesn't look any more coarse.
2020-05-16 18:57:06 +02:00
..
main.c tests/periph_pwm: limit OSC_STEPS to 256 to work on all platforms 2020-05-16 18:57:06 +02:00
Makefile tests: BOARD_INSUFFICIENT_MEMORY -> Makefile.ci 2019-10-17 15:11:59 +02:00
Makefile.ci tests: add stm32f030f4-demo to Makefile.ci 2019-10-21 15:33:11 +02:00
README.md tests: added test for low-level PWM driver 2014-08-07 16:16:06 +02:00

Expected result

If everything is running as supposed to, you should see a 1KHz PWM with oscillating duty cycle on each channel of the selected PWM device.

Background

Test for the low-level PWM driver.