Skip to content

Commit

Permalink
Merge pull request #13924 from benpicco/backport/2020.04/cpu/lpc2387-…
Browse files Browse the repository at this point in the history
…fix_rtc

cpu/lpc2387: fix RTC leap year calculation [backport 2020.04]
  • Loading branch information
benpicco committed Apr 22, 2020
2 parents d16f2f8 + 0d3c1fd commit b6cfd53
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpu/lpc2387/include/periph_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,16 @@ typedef struct {
#define PERIPH_I2C_NEED_WRITE_REG
/** @} */

/**
* Enable yday and wday calculation in rtc_normalize().
* Those fields are used by the RTC.
* @{
*/
#if defined(MODULE_PERIPH_RTC) && !defined(RTC_NORMALIZE_COMPAT)
#define RTC_NORMALIZE_COMPAT (1)
#endif
/* @} */

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit b6cfd53

Please sign in to comment.