[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: add ZTIMER_SEC (#15715)

Leandro Lanzieri notifications at github.com
Thu Jan 7 10:46:26 CET 2021


@leandrolanzieri commented on this pull request.



> +static ztimer_periph_rtc_t _ztimer_periph_timer_rtc_sec;
+ztimer_clock_t *const ZTIMER_SEC = &_ztimer_periph_timer_rtc_sec;
+#  elif MODULE_ZTIMER_MSEC
+static ztimer_convert_frac_t _ztimer_convert_frac_sec;
+ztimer_clock_t *const ZTIMER_SEC = &_ztimer_convert_frac_sec.super.super;
+ztimer_clock_t *const ZTIMER_SEC_BASE = &_ztimer_periph_timer_msec.super;
+#    define ZTIMER_SEC_CONVERT_LOWER        (&_ztimer_periph_timer_rtt_msec)
+#    define ZTIMER_SEC_CONVERT_LOWER_FREQ   RTT_FREQUENCY
+#  elif MODULE_ZTIMER_USEC
+static ztimer_convert_frac_t _ztimer_convert_frac_sec;
+ztimer_clock_t *const ZTIMER_SEC = &_ztimer_convert_frac_sec.super.super;
+ztimer_clock_t *const ZTIMER_SEC_BASE = &_ztimer_periph_timer_usec.super;
+#    define ZTIMER_SEC_CONVERT_LOWER        ZTIMER_USEC_BASE
+#    define ZTIMER_SEC_CONVERT_LOWER_FREQ   CONFIG_ZTIMER_USEC_BASE_FREQ
+#  else
+#  error No suitable ZTIMER_MSEC config. Maybe add USEMODULE += ztimer_usec?

```suggestion
#  error No suitable ZTIMER_SEC config. Maybe add USEMODULE += ztimer_usec?
```

-- 
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/15715#pullrequestreview-563341701
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210107/97c2b8b8/attachment.htm>


More information about the notifications mailing list