-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/ztimer: fix RTT backend #13574
sys/ztimer: fix RTT backend #13574
Conversation
ztimer ist evolving quickly :D Rebased on master ... |
@@ -105,12 +105,12 @@ ztimer_clock_t *const ZTIMER_USEC = &_ztimer_convert_frac_usec.super.super; | |||
#endif | |||
|
|||
#if MODULE_ZTIMER_MSEC | |||
# if MODULE_PERIPH_TIMER_RTT | |||
static ztimer_periph_timer_rtt_t _ztimer_periph_timer_rtt_msec; | |||
# if MODULE_PERIPH_RTT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ups, I thing this happened when renaming ztimer_(periph|rtt|rtc)
to ztimer_periph_(timer|rtt|rtc)
with search&replace.
thanks. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
Contribution description
First of all: congratulations on merging ztimer!
While trying
tests/ztimer_msg
withTIMER_MSEC
I noticed that ztimer ignores the presentperiph_rtt
and converted thepertiph_timer
down to milliseconds.This patch fixes this behavior.
Testing procedure
Enable debugging in
sys/ztimer/auto_init.c
. Compiletests/ztimer_msg
withUSEMODULE="ztimer_msec ztimer_periph_rtt" make BOARD=board_with_rtt flash term
.Boot output with this patch:
Boot output without this patch:
Issues/PRs references
#11874