1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
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
f6dc8a3ea8
tests/periph_pwm: fix not needed cast 2019-09-20 08:59:43 +02:00
Martine Lenders
04b58da249 tests: use literal string instead of format string for interval
`UINT16_MAX` should be the same value on all platforms, so why not use
`puts` instead of `printf` here instead. Also, `llvm` detects an issue
with using the `UINT16_MAX` macro with `PRIu16` here.
2018-07-19 20:35:00 +02:00
Semjon Kerner
014df46e2e tests/periph_pwm: add shellcommands for more detailed testing 2018-04-05 17:12:17 +02:00
smlng
e381317fbf make: fix sign-compare errors
cpu, nrf5x_common: fix sign-compare in periph/flashpage
    drivers, periph_common: fix sign-compare in flashpage
    cpu, sam0_common: fix sign-compare error in periph/gpio
    cpu, cc2538: fix sign-compare in periph/timer
    cpu, sam3: fix sign-compare in periph/gpio
    cpu, stm32_common: fix sign-compare in periph/pwm
    cpu, stm32_common: fix sign-compare in periph/timer
    cpu, stm32_common: fix sign-compare in periph/flashpage
    cpu, nrf5x_common: fix sign-compare in radio/nrfmin
    cpu, samd21: fix sign-compare in periph/pwm
    cpu, ezr32wg: fix sign-compare in periph/gpio
    cpu, ezr32wg: fix sign-compare in periph/timer
    drivers, ethos: fix sign-compare
    sys, net: fix sign-compare
    cpu, atmega_common: fix sign-compare error
    cpu, msp430fxyz: fix sign-compare in periph/gpio
    boards, msb-430-common: fix sign-compare in board_init
    driver, cc2420: fix sign-compared
    sys/net: fix sign-compare in gnrc_tftp
    driver, pcd8544: fix sign-compare
    driver, pn532: fix sign-compare
    driver, sdcard_spi: fix sign-compare
    tests: fix sign_compare
    sys/net, lwmac: fix sign_compare
    pkg, lwip: fix sign-compare
    boards, waspmote: make CORECLOCK unsigned long to fix sign_compare error
    tests, sock_ip: fix sign compare
    tests, msg_avail: fix sign compare
    tests, sock_udp: fix sign compare
    boards: fix sign-compare for calliope and microbit matrix
2017-11-28 11:55:48 +01:00
Oleg Hahm
4f4214235b timex: unambiguous time conversion macros 2017-01-19 13:18:08 +01:00
Joakim Nohlgård
7c48c891a0 xtimer: Update xtimer usage to match API changes 2016-11-29 20:44:31 +01:00
Joakim Nohlgård
c0ad83c167 tests: Update xtimer_usleep_until usage to xtimer_periodic_wakeup 2016-07-29 13:05:02 +02:00
Hauke Petersen
4b4cc5a6b3 tests/periph_pwm: adjusted to interface changes 2016-02-12 15:52:37 +01:00
a4a421cb1d tests: periph_pwm: vtimer -> xtimer 2015-09-16 10:58:55 +02:00
Joakim Gebart
616c272801 tests/periph_pwm: Handle pwm_init return value as actual frequency 2015-05-16 10:00:03 +02:00
Ludwig Ortmann
95884c1a30 tests/periph_pwm: let build fail w/o PWM 2014-10-16 19:35:41 +02:00
Hauke Petersen
b0d3a55989 tests: added test for low-level PWM driver 2014-08-07 16:16:06 +02:00