[riot-notifications] [RIOT-OS/RIOT] periph/timer: add timer_set_periodic() (#13902)

Marian Buschsieweke notifications at github.com
Thu May 28 11:54:27 CEST 2020


Regression test of the one-shot timer also passed:

<details><summary>Arduino Mega2560</summary>

```
Help: Press s to start test, r to print it is ready
READY
s
START
main(): This is RIOT! (Version: 2020.07-devel-621-g99bd1-atmega-timer)

Test for peripheral TIMERs

Available timers: 2

Testing TIMER_0:
TIMER_0: initialization successful
TIMER_0: stopped
TIMER_0: set channel 0 to 5000
TIMER_0: set channel 1 to 10000
TIMER_0: set channel 2 to 15000
TIMER_0: starting
TIMER_0: channel 0 fired at SW count    11425 - init:    11425
TIMER_0: channel 1 fired at SW count    22845 - diff:    11420
TIMER_0: channel 2 fired at SW count    34266 - diff:    11421

Testing TIMER_1:
TIMER_1: initialization successful
TIMER_1: stopped
TIMER_1: set channel 0 to 5000
TIMER_1: set channel 1 to 10000
TIMER_1: set channel 2 to 15000
TIMER_1: starting
TIMER_1: channel 0 fired at SW count    11425 - init:    11425
TIMER_1: channel 1 fired at SW count    22845 - diff:    11420
TIMER_1: channel 2 fired at SW count    34266 - diff:    11421

TEST SUCCEEDED
```

</details>

<details><summary>MSB-A2</summary>

```
Help: Press s to start test, r to print it is ready
READY
s
START
main(): This is RIOT! (Version: 2020.07-devel-621-g99bd1-atmega-timer)

Test for peripheral TIMERs

Available timers: 1

Testing TIMER_0:
TIMER_0: initialization successful
TIMER_0: stopped
TIMER_0: set channel 0 to 5000
TIMER_0: set channel 1 to 10000
TIMER_0: set channel 2 to 15000
TIMER_0: set channel 3 to 20000
TIMER_0: starting
TIMER_0: channel 0 fired at SW count    21173 - init:    21173
TIMER_0: channel 1 fired at SW count    42322 - diff:    21149
TIMER_0: channel 2 fired at SW count    63472 - diff:    21150
TIMER_0: channel 3 fired at SW count    84622 - diff:    21150

TEST SUCCEEDED
```

</details>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13902#issuecomment-635241162
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200528/a9bff1e6/attachment.htm>


More information about the notifications mailing list