[riot-notifications] [RIOT-OS/RIOT] boards/common/nrf5x: add configurable RTT_FREQUENCY (#14025)

Alexandre Abadie notifications at github.com
Tue May 5 17:09:07 CEST 2020


@aabadie commented on this pull request.



> @@ -29,11 +29,21 @@ extern "C" {
  * @name    Real time counter configuration
  * @{
  */
-#define RTT_DEV             (1)             /* NRF_RTC1 */
-#define RTT_MAX_VALUE       (0x00ffffff)
-#define RTT_FREQUENCY       (1024)
+#ifndef RTT_DEV
+#define RTT_DEV             (1)                 /* NRF_RTC1 */
+#endif
+
+#define RTT_MAX_VALUE       (0x00ffffff)         /* 24bit */
+#define RTT_MAX_FREQUENCY   (32768U)             /* in Hz */

> I could add that logic in the .c file if you want

I think that would make sense to fail early if the value is invalid. I won't insist.

-- 
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/14025#discussion_r420184281
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200505/275e8c11/attachment.htm>


More information about the notifications mailing list