[riot-notifications] [RIOT-OS/RIOT] cpu/stm32: cleanup timer structure in vendor headers (#14144)

Alexandre Abadie notifications at github.com
Fri May 29 18:23:12 CEST 2020


@aabadie commented on this pull request.



> @@ -83,6 +83,11 @@ extern "C" {
  */
 #define TIMER_CHAN          (4U)
 
+/**
+ * @brief   Define a macro for accessing a timer channel
+ */
+#define TIM_CHAN(tim, chan) *(uint32_t *)(&dev(tim)->CCR1 + chan)

Done

-- 
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/14144#discussion_r432596290
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200529/a4f04e0b/attachment-0001.htm>


More information about the notifications mailing list