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

benpicco notifications at github.com
Thu May 28 14:00:15 CEST 2020


Test of the periodic timer:

<details><summary>same54-xpro</summary>

```
2020-05-28 13:56:33,601 # main(): This is RIOT! (Version: 2020.07-devel-831-g8b163-periph_timer_periodic)
2020-05-28 13:56:33,601 # 
2020-05-28 13:56:33,604 # Running Timer 0 at 62500 Hz.
2020-05-28 13:56:33,608 # One counter cycle is 15625 ticks or 250 ms
2020-05-28 13:56:33,612 # Will print 'tick' every second / every 4 cycles.
2020-05-28 13:56:33,612 # 
2020-05-28 13:56:33,613 # 0x13e3
2020-05-28 13:56:33,615 # *** RIOT kernel panic:
2020-05-28 13:56:33,616 # FAILED ASSERTION.
2020-05-28 13:56:33,616 # 
2020-05-28 13:56:33,617 # *** halted.
```
</details>

Timer can't be configured to run at 62500 Hz when sourced from a 8 MHz clock - I'll change the test to use `XTIMER_HZ` instead since that should always work.

<details><summary>samr21-xpro</summary>

```
2020-05-28 13:55:59,746 # main(): This is RIOT! (Version: 2020.07-devel-831-g8b163-periph_timer_periodic)
2020-05-28 13:55:59,746 # 
2020-05-28 13:55:59,749 # Running Timer 0 at 62500 Hz.
2020-05-28 13:55:59,752 # One counter cycle is 15625 ticks or 250 ms
2020-05-28 13:55:59,757 # Will print 'tick' every second / every 4 cycles.
2020-05-28 13:55:59,757 # 
2020-05-28 13:55:59,758 # TEST START
2020-05-28 13:55:59,759 # [0] tick
2020-05-28 13:56:00,761 # [0] tick
2020-05-28 13:56:01,763 # [0] tick
2020-05-28 13:56:02,765 # [0] tick
2020-05-28 13:56:03,768 # [0] tick
2020-05-28 13:56:04,770 # [0] tick
2020-05-28 13:56:05,020 # 
2020-05-28 13:56:05,021 # Cycles:
2020-05-28 13:56:05,022 # channel 0 = 22	[OK]
2020-05-28 13:56:05,024 # channel 1 = 00	[OK]
2020-05-28 13:56:05,025 # 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-635295144
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200528/028773c6/attachment.htm>


More information about the notifications mailing list