Skip to content

Commit 658a21b

Browse files
authored
Update rtc_set_datetime docs to point out that the written value may not be immediately visible (#832)
1 parent e44d2c0 commit 658a21b

File tree

1 file changed

+4
-0
lines changed
  • src/rp2_common/hardware_rtc/include/hardware

1 file changed

+4
-0
lines changed

src/rp2_common/hardware_rtc/include/hardware/rtc.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ void rtc_init(void);
4747
/*! \brief Set the RTC to the specified time
4848
* \ingroup hardware_rtc
4949
*
50+
* \note Note that after setting the RTC date and time, a subsequent read of the values (e.g. via rtc_get_datetime()) may not
51+
* reflect the new setting until up to three cycles of the potentially-much-slower RTC clock domain have passed. This represents a period
52+
* of 64 microseconds with the default RTC clock configuration.
53+
*
5054
* \param t Pointer to a \ref datetime_t structure contains time to set
5155
* \return true if set, false if the passed in datetime was invalid.
5256
*/

0 commit comments

Comments
 (0)