Add support for RTC driver to the STM32F4-Discovery board

This commit is contained in:
Gregory Nutt 2015-02-15 10:11:01 -06:00
parent 68d39b69aa
commit 529bc9626c
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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 */