[riot-notifications] [RIOT-OS/RIOT] drivers/periph/ptp_clock (#15074)

Marian Buschsieweke notifications at github.com
Wed Nov 18 08:37:45 CET 2020


@maribu commented on this pull request.



> +#include "periph_cpu.h"
+#include "timex.h"
+
+#define ENABLE_DEBUG        (0)
+#include "debug.h"
+
+/* Workaround for typos in vendor files; drop when fixed upstream */
+#ifndef ETH_PTPTSCR_TSSSR
+#define ETH_PTPTSCR_TSSSR ETH_PTPTSSR_TSSSR
+#endif
+#ifndef ETH_PTPTSCR_TSSARFE
+#define ETH_PTPTSCR_TSSARFE ETH_PTPTSSR_TSSARFE
+#endif
+
+/* The PTP uses the same clock domain as the CPU */
+#define HCLK                CLOCK_CORECLOCK

According to the datasheet RM0410 Rev. 4 on page 153 HCLK is the clock driving the AHB. So yes.

-- 
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/15074#discussion_r525868277
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201117/614446de/attachment.htm>


More information about the notifications mailing list