diff options
Diffstat (limited to 'os/hal/platforms/STM32/rtc_lld.h')
-rw-r--r-- | os/hal/platforms/STM32/rtc_lld.h | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/os/hal/platforms/STM32/rtc_lld.h b/os/hal/platforms/STM32/rtc_lld.h index f26315784..fe51df254 100644 --- a/os/hal/platforms/STM32/rtc_lld.h +++ b/os/hal/platforms/STM32/rtc_lld.h @@ -1,3 +1,22 @@ +/*
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
+
+ This file is part of ChibiOS/RT.
+
+ ChibiOS/RT is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ ChibiOS/RT is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
/**
* @file STM32/rtc_lld.h
@@ -85,10 +104,13 @@ extern RTCDriver RTCD; extern "C" {
#endif
void rtc_lld_init(void);
-#if RTC_SUPPORTS_CALLBACKS
- void rtc_lld_start(RTCDriver *rtcp, const RTCConfig *rtccfgp);
- void rtc_lld_stop(void);
-#endif /* RTC_SUPPORTS_CALLBACKS */
+ #if RTC_SUPPORTS_CALLBACKS
+ void rtc_lld_start(RTCDriver *rtcp, const RTCConfig *rtccfgp);
+ void rtc_lld_stop(void);
+ #else /* RTC_SUPPORTS_CALLBACKS */
+ #define rtc_lld_start(rtcp, rtccfgp){;}
+ #define rtc_lld_stop(){;}
+ #endif /* RTC_SUPPORTS_CALLBACKS */
void rtc_lld_set_time(uint32_t tv_sec);
uint32_t rtc_lld_get_sec(void);
uint16_t rtc_lld_get_msec(void);
|