diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-07 07:06:49 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2012-01-07 07:06:49 +0000 |
commit | 618b341a054bb067c81fbf94343c28c021ae9665 (patch) | |
tree | 235bdc5839f97a27d0036deb682e52006e4530ad /os/hal/platforms/STM32/RTCv1/rtc_lld.c | |
parent | 9923c1663e9d5d7643833dde674ca912e82a1b26 (diff) | |
download | ChibiOS-618b341a054bb067c81fbf94343c28c021ae9665.tar.gz ChibiOS-618b341a054bb067c81fbf94343c28c021ae9665.tar.bz2 ChibiOS-618b341a054bb067c81fbf94343c28c021ae9665.zip |
Removed unused stuff from RTCv1.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3753 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/RTCv1/rtc_lld.c')
-rw-r--r-- | os/hal/platforms/STM32/RTCv1/rtc_lld.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/os/hal/platforms/STM32/RTCv1/rtc_lld.c b/os/hal/platforms/STM32/RTCv1/rtc_lld.c index 1e9b6b9da..1249b7554 100644 --- a/os/hal/platforms/STM32/RTCv1/rtc_lld.c +++ b/os/hal/platforms/STM32/RTCv1/rtc_lld.c @@ -64,15 +64,15 @@ static void rtc_lld_serve_interrupt(RTCDriver *rtcp) { chSysLockFromIsr();
if ((RTC->CRH & RTC_CRH_SECIE) && (RTC->CRL & RTC_CRL_SECF)) {
- rtcp->rtc_cb(rtcp, RTC_EVENT_SECOND);
+ rtcp->callback(rtcp, RTC_EVENT_SECOND);
RTC->CRL &= ~RTC_CRL_SECF;
}
if ((RTC->CRH & RTC_CRH_ALRIE) && (RTC->CRL & RTC_CRL_ALRF)) {
- rtcp->rtc_cb(rtcp, RTC_EVENT_ALARM);
+ rtcp->callback(rtcp, RTC_EVENT_ALARM);
RTC->CRL &= ~RTC_CRL_ALRF;
}
if ((RTC->CRH & RTC_CRH_OWIE) && (RTC->CRL & RTC_CRL_OWF)) {
- rtcp->rtc_cb(rtcp, RTC_EVENT_OVERFLOW);
+ rtcp->callback(rtcp, RTC_EVENT_OVERFLOW);
RTC->CRL &= ~RTC_CRL_OWF;
}
@@ -191,7 +191,7 @@ void rtc_lld_init(void){ RTC->CRH = 0;
/* Callback initially disabled.*/
- RTCD1.rtc_cb = NULL;
+ RTCD1.callback = NULL;
}
/**
@@ -312,7 +312,7 @@ void rtc_lld_get_alarm(RTCDriver *rtcp, void rtc_lld_set_callback(RTCDriver *rtcp, rtccb_t callback) {
if (callback != NULL) {
- rtcp->rtc_cb = callback;
+ rtcp->callback = callback;
/* Interrupts are enabled only after setting up the callback, this
way there is no need to check for the NULL callback pointer inside
|