[riot-notifications] [RIOT-OS/RIOT] TI CC3200 SimpleLink RIOT support (#11866)

Wlad Meixner notifications at github.com
Mon Jul 29 16:28:26 CEST 2019


gosticks commented on this pull request.



> +
+#ifndef CC3200_PRCM_H
+#define CC3200_PRCM_H
+
+#include "cc3200.h"
+#include "vendor/hw_memmap.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief convert x usecs to cpu cycles
+ *
+ */
+#define USEC_TO_CPU_CYCLES(x) (80 * x) / 3

I could replace (80 * x)  with ((CLOCK_CORECLOCK / 1000000) * x) but importorting `periph_conf.h` causes some import/definition order troubles for me

-- 
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/11866#discussion_r308261339
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190729/65f1dc31/attachment-0001.htm>


More information about the notifications mailing list