mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Add support for RTC driver to the STM32F4-Discovery board
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user