mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
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.
This commit is contained in:
parent
da2230df48
commit
6ba4225eed
@ -39,7 +39,7 @@
|
||||
#define OSC_STEP (10)
|
||||
#define OSC_MODE PWM_LEFT
|
||||
#define OSC_FREQU (1000U)
|
||||
#define OSC_STEPS (1000U)
|
||||
#define OSC_STEPS (256U)
|
||||
#define PWR_SLEEP (1U)
|
||||
|
||||
static uint32_t initiated;
|
||||
|
Loading…
Reference in New Issue
Block a user