Skip to content

Commit 2ec5f9d

Browse files
Merge pull request #2205 from LudwigOrtmann/periph-rtc-doc
periph/rtc: move struct tm note to the top
2 parents 624ef19 + c070afb commit 2ec5f9d

File tree

1 file changed

+5
-3
lines changed
  • drivers/include/periph

1 file changed

+5
-3
lines changed

drivers/include/periph/rtc.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
* @ingroup driver_periph
1212
* @brief Low-level RTC (Real Time Clock) peripheral driver
1313
*
14+
* @note
15+
* The values used for setting and getting the time/alarm should
16+
* conform to the `struct tm` specification.
17+
* Compare: http://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
18+
*
1419
* @{
1520
* @file
1621
* @brief Low-level RTC peripheral driver interface definitions
@@ -68,9 +73,6 @@ int rtc_get_time(struct tm *time);
6873
*
6974
* @note Any already set alarm will be overwritten.
7075
*
71-
* The values in `tm` are expected to conform to the `struct tm` specification.
72-
* Compare: http://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
73-
*
7476
* @param[in] time The value to trigger an alarm when hit.
7577
* @param[in] cb Callback executed when alarm is hit.
7678
* @param[in] arg Argument passed to callback when alarm is hit.

0 commit comments

Comments
 (0)