diff options
Diffstat (limited to 'os/hal/platforms')
-rw-r--r-- | os/hal/platforms/STM32/rtc_lld.c | 2 | ||||
-rw-r--r-- | os/hal/platforms/STM32/rtc_lld.h | 9 |
2 files changed, 2 insertions, 9 deletions
diff --git a/os/hal/platforms/STM32/rtc_lld.c b/os/hal/platforms/STM32/rtc_lld.c index 3f8468bae..ba89a3c9e 100644 --- a/os/hal/platforms/STM32/rtc_lld.c +++ b/os/hal/platforms/STM32/rtc_lld.c @@ -163,7 +163,6 @@ void rtc_lld_init(void){ * @param[in] rtcp pointer to a @p RTCDriver object
* @param[in] rtccfgp pointer to a @p RTCDriver config object
*/
-#if RTC_SUPPORTS_CALLBACKS
void rtc_lld_start(RTCDriver *rtcp, const RTCConfig *rtccfgp){
uint16_t isr_flags = 0;
@@ -192,7 +191,6 @@ void rtc_lld_stop(void){ NVICDisableVector(RTC_IRQn);
RTC->CRH = 0;
}
-#endif /* RTC_SUPPORTS_CALLBACKS */
/**
diff --git a/os/hal/platforms/STM32/rtc_lld.h b/os/hal/platforms/STM32/rtc_lld.h index a0490b29a..3b4f69665 100644 --- a/os/hal/platforms/STM32/rtc_lld.h +++ b/os/hal/platforms/STM32/rtc_lld.h @@ -112,13 +112,8 @@ 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);
- #else /* RTC_SUPPORTS_CALLBACKS */
- #define rtc_lld_start(rtcp, rtccfgp){;}
- #define rtc_lld_stop(){;}
- #endif /* RTC_SUPPORTS_CALLBACKS */
+ void rtc_lld_start(RTCDriver *rtcp, const RTCConfig *rtccfgp);
+ void rtc_lld_stop(void);
void rtc_lld_set_time(uint32_t tv_sec);
uint32_t rtc_lld_get_sec(void);
uint16_t rtc_lld_get_msec(void);
|