[riot-notifications] [RIOT-OS/RIOT] cpu/atmega_common: RTT and RTC support (#8842)

ZetaR60 notifications at github.com
Wed Apr 17 20:50:31 CEST 2019


ZetaR60 commented on this pull request.



> +#if MODULE_PERIPH_RTC
+extern void atmega_rtc_incr(void);
+#endif
+
+static inline void _asynch_wait(void);
+
+typedef struct {
+    uint16_t ext_cnt;           /* Counter to make 8-bit timer 24-bit */
+    uint16_t ext_comp;          /* Extend compare to 24-bits */
+    rtt_cb_t alarm_cb;          /* callback called from RTT alarm */
+    void *alarm_arg;            /* argument passed to the callback */
+    rtt_cb_t overflow_cb;       /* callback called when RTT overflows */
+    void *overflow_arg;         /* argument passed to the callback */
+} rtt_state_t;
+
+static volatile rtt_state_t rtt_state;

Comment added. Also, see post below.

-- 
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/8842#discussion_r276384976
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190417/0db74d02/attachment-0001.html>


More information about the notifications mailing list