Add support for RTC driver to the STM32F4-Discovery board
This commit is contained in:
parent
68d39b69aa
commit
529bc9626c
@ -180,8 +180,8 @@ int stm32_rtc_cancelalarm(void);
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_RTC_DRIVER
|
||||
struct rtc_lower_half_s;
|
||||
FAR struct rtc_lower_half_s *stm32_rtc_lowerhalf(void);
|
||||
struct rtc_lowerhalf_s;
|
||||
FAR struct rtc_lowerhalf_s *stm32_rtc_lowerhalf(void);
|
||||
#endif
|
||||
|
||||
#undef EXTERN
|
||||
|
@ -273,9 +273,9 @@ static int stm32_settime(FAR struct rtc_lowerhalf_s *lower,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct rtc_lower_half_s *stm32_rtc_lowerhalf(void)
|
||||
FAR struct rtc_lowerhalf_s *stm32_rtc_lowerhalf(void)
|
||||
{
|
||||
return (FAR struct rtc_lower_half_s *)&g_rtc_lowerhalf;
|
||||
return (FAR struct rtc_lowerhalf_s *)&g_rtc_lowerhalf;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_RTC_DRIVER */
|
||||
|
Loading…
x
Reference in New Issue
Block a user