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

Francisco notifications at github.com
Tue May 5 16:59:14 CEST 2020


@fjmolinas 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 was planning on adding that in `periph/rtt.h` once all arch define these variables (#13874 ). For now they are just documenting. I could add that logic in the `.c` file if you want

-- 
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_r420176846
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200505/15f56ba0/attachment-0001.htm>


More information about the notifications mailing list