Update some comments

This commit is contained in:
Gregory Nutt 2016-05-31 17:31:15 -06:00
parent 15810946b1
commit 6eac8bf28d
1 changed files with 5 additions and 1 deletions

View File

@ -108,7 +108,11 @@
# define RCC_XXX_RTCSEL_LSI RCC_BDCR_RTCSEL_LSI
# define RCC_XXX_RTCSEL_HSE RCC_BDCR_RTCSEL_HSE
/* BCD conversions */
/* BCD conversions.
* FIXME: rtc_reg_alrmr_bin2bcd() sets only the hour, minute, seconds
* field. It does not set the month or year fields. This breaks the
* alarm for times > 24 hours. THIS NEEDS TO BE FIXED!!!
*/
#define rtc_reg_tr_bin2bcd(tp) \
((rtc_bin2bcd((tp)->tm_sec) << RTC_TR_SU_SHIFT) | \