mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
fae992e82b
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> |
||
---|---|---|
.. | ||
analog_util | ||
app_metadata | ||
arduino | ||
auto_init | ||
base64 | ||
benchmark | ||
bhp | ||
bitfield | ||
bloom | ||
bus | ||
can | ||
cb_mux | ||
checksum | ||
chunked_ringbuffer | ||
clif | ||
coding | ||
color | ||
congure | ||
cpp11-compat | ||
cpp_new_delete | ||
crypto | ||
cxx_ctor_guards | ||
debug_irq_disable | ||
div | ||
ecc | ||
eepreg | ||
embunit | ||
entropy_source | ||
event | ||
evtimer | ||
fido2 | ||
fmt | ||
frac | ||
fs | ||
fuzzing | ||
hashes | ||
include | ||
iolist | ||
isrpipe | ||
libc | ||
log_color | ||
log_printfnoformat | ||
luid | ||
malloc_thread_safe | ||
matstat | ||
memarray | ||
mineplex | ||
net | ||
newlib_syscalls_default | ||
od | ||
oneway-malloc | ||
phydat | ||
picolibc_syscalls_default | ||
pipe | ||
pm_layered | ||
posix | ||
preprocessor | ||
progress_bar | ||
ps | ||
puf_sram | ||
random | ||
riotboot | ||
rtc_utils | ||
rust_riotmodules | ||
rust_riotmodules_standalone | ||
saul_reg | ||
sched_round_robin | ||
schedstatistics | ||
sema | ||
sema_inv | ||
senml | ||
seq | ||
shell | ||
shell_lock | ||
ssp | ||
stdio_nimble | ||
stdio_null | ||
stdio_rtt | ||
stdio_semihosting | ||
stdio_uart | ||
stdio_udp | ||
suit | ||
test_utils | ||
timex | ||
tiny_strerror | ||
trace | ||
trickle | ||
tsrb | ||
universal_address | ||
uri_parser | ||
usb | ||
usb_board_reset | ||
ut_process | ||
uuid | ||
vfs | ||
vfs_util | ||
xtimer | ||
zptr | ||
ztimer | ||
ztimer64 | ||
doc.txt | ||
Kconfig | ||
Kconfig.newlib | ||
Kconfig.picolibc | ||
Kconfig.stdio | ||
Makefile | ||
Makefile.dep | ||
Makefile.include |