1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 09:32:43 +01:00
RIOT/cpu/native/periph
bors[bot] fae992e82b
Merge #19343 #19349 #19353 #19361 #19363
19343: ztimer: add ztimer_stopwatch convenience functions r=benpicco a=benpicco



19349: cpu/native: Switch to ztimer for gettimeofday r=benpicco a=MrKevinWeiss

### Contribution description

A xtimer is somewhat taken over by ztimer this explicitly uses ztimer instead of relying on the compatibility layer.

### Testing procedure

`make all test -C tests/cpp11_mutex/`

and green murdock I guess.

### Issues/PRs references


19353: doc: add quicklink to boards in navbar r=benpicco a=OlegHahm

### Contribution description

Finding a list of supported boards and how to use them is an essential information. Currently this list is somewhat hidden under "Modules" which is not very intuitive. Hence, I propose to (at least) put a link in the side menu to this overview page.

### Testing procedure

1. Call `make doc`
2. Check the sidebar `${RIOT_BASE}/doc/doxygen/html/index.html` for an entry "Supported Boards"

19361: nanocoap_sock: ensure response address is the same as request address r=benpicco a=benpicco



19363: Fix stm32 timer periodic r=benpicco a=Enoch247

### Contribution description

From the commit msg:

>     cpu/stm32/periph/timer: remove unneeded header
>     
>     I see no reason this header should be included. It does not exist in
>     RIOT's source tree. This patch removes the include.

and 

>     cpu/stm32/periph/timer: fix execution flow
>     
>     The implmentation of `timer_set_absolute()` has The following problems.
>     First, it attempts to restore the auto reload register (ARR) to it's
>     default if the ARR was previosly set by `timer_set_periodic()` by
>     comparing it to the channel's capture compare (CC) register _after_ it
>     has already set the CC register. Secondly, it clears spurious IRQs
>     _after_ the CC register has been set. If the value being set is equal to
>     the timer's current count (or the two become equal before the supurios
>     IRQ clearing happens), this could cause a legitimate IRQ to be cleared.
>     
>     The implmentation of `timer_set()` has the same error in handling the
>     ARR as described above.
>     
>     This patch reorders the operations of both functions to do:
>     
>     1. handle ARR
>     2. clear spurious IRQs
>     3. set channel's CC
>     4. enable IRQ
>     
>     Additionally, the calulation of `value` in `timer_set()` is moved
>     earlier in the function's exec path as a pedantic measure.


### Testing procedure

I tested by doing the following:

1. `make -C tests/periph_timer BOARD=nucleo-f767zi all flash term`
2. press s
3. press [ENTER]
4. observe test passes
5. `make -C tests/periph_timer_periodic BOARD=nucleo-f767zi all flash term`
6. press s
7. press [ENTER]
8. observe test passes
9. `make -C tests/periph_timer_short_relative_set BOARD=nucleo-f767zi all flash term`
10. press s
11. press [ENTER]
12. observe test passes


### Issues/PRs references

- none known


Co-authored-by: Benjamin Valentin <benpicco@beuth-hochschule.de>
Co-authored-by: MrKevinWeiss <weiss.kevin604@gmail.com>
Co-authored-by: Oleg Hahm <oleg@hobbykeller.org>
Co-authored-by: Benjamin Valentin <benjamin.valentin@bht-berlin.de>
Co-authored-by: Joshua DeWeese <jdeweese@primecontrols.com>
2023-03-08 02:09:42 +00:00
..
can.c cpu/native: remove unused can_linux module 2020-11-13 09:11:50 +01:00
cpuid.c doc: fix doxygen grouping of cpu periph drivers 2017-06-26 14:42:11 +02:00
eeprom.c cpu/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:34:12 +01:00
flashpage.c cpu/native: extend flashpage API 2021-10-25 15:07:37 +02:00
gpio_linux.c cpu/native: add Linux GPIO implementation 2020-08-25 13:53:14 +02:00
gpio_mock.c cpu/native: gpio: provide dummy implementations for GPIO IRQ 2020-08-25 13:53:14 +02:00
hwrng.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
Kconfig cpu/native: add periph_spidev module to Kconfig 2020-11-18 10:08:01 +01:00
Kconfig.gpio cpu/native/periph: add Native GPIO modules to Kconfig 2020-11-18 10:07:59 +01:00
Kconfig.rtc cpu/native: migrate periph_rtc to ztimer 2021-11-11 10:54:30 +01:00
Makefile cpu: make use of Makefile.periph 2017-11-06 12:01:19 +01:00
pm.c cpu/native: pm: fix build with pm_layered 2020-12-08 18:24:02 +01:00
pwm.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
qdec.c boards/native: Remove macOS as native target 2022-10-25 19:11:23 +02:00
rtc.c cpu/native: implement periph_rtc_ms 2023-03-05 02:56:28 +01:00
spidev_linux.c drivers/periph_spi: remove duplicated includes introduced in #15902 2021-09-02 09:40:31 +02:00
timer.c cpu/native: Use ztimer instead of xtimer 2023-03-07 13:08:58 +01:00
uart.c cpu/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:34:12 +01:00