diff options
Diffstat (limited to 'os/hal/ports/STM32')
-rw-r--r-- | os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h | 2 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/MACv1/mac_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c | 24 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c | 20 |
4 files changed, 24 insertions, 24 deletions
diff --git a/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h b/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h index 0c027b50c..77a039ca3 100644 --- a/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h +++ b/os/hal/ports/STM32/LLD/I2Cv1/i2c_lld.h @@ -139,7 +139,7 @@ * error can only happen because programming errors.
*/
#if !defined(STM32_I2C_DMA_ERROR_HOOK) || defined(__DOXYGEN__)
-#define STM32_I2C_DMA_ERROR_HOOK(i2cp) chSysHalt("DMA failure")
+#define STM32_I2C_DMA_ERROR_HOOK(i2cp) osalSysHalt("DMA failure")
#endif
#if STM32_ADVANCED_DMA || defined(__DOXYGEN__)
diff --git a/os/hal/ports/STM32/LLD/MACv1/mac_lld.c b/os/hal/ports/STM32/LLD/MACv1/mac_lld.c index de3fdba54..7863210bc 100644 --- a/os/hal/ports/STM32/LLD/MACv1/mac_lld.c +++ b/os/hal/ports/STM32/LLD/MACv1/mac_lld.c @@ -266,7 +266,7 @@ void mac_lld_init(void) { /* PHY soft reset procedure.*/
mii_write(ÐD1, MII_BMCR, BMCR_RESET);
#if defined(BOARD_PHY_RESET_DELAY)
- chSysPolledDelayX(BOARD_PHY_RESET_DELAY);
+ osalSysPolledDelayX(BOARD_PHY_RESET_DELAY);
#endif
while (mii_read(ÐD1, MII_BMCR) & BMCR_RESET)
;
diff --git a/os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c index 16cb9b500..8f5193222 100644 --- a/os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv1/rtc_lld.c @@ -196,7 +196,7 @@ void rtc_lld_set_prescaler(void) { syssts_t sts;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
rtc_acquire_access();
RTC->PRLH = (uint16_t)((STM32_RTCCLK - 1) >> 16) & 0x000F;
@@ -204,7 +204,7 @@ void rtc_lld_set_prescaler(void) { rtc_release_access();
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
/**
@@ -290,7 +290,7 @@ void rtc_lld_set_alarm(RTCDriver *rtcp, (void)alarm_number;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
rtc_acquire_access();
if (alarmspec != NULL) {
@@ -304,7 +304,7 @@ void rtc_lld_set_alarm(RTCDriver *rtcp, rtc_release_access();
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
/**
@@ -327,7 +327,7 @@ void rtc_lld_get_alarm(RTCDriver *rtcp, (void)alarm_number;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
/* Required because access to ALR.*/
rtc_apb1_sync();
@@ -335,7 +335,7 @@ void rtc_lld_get_alarm(RTCDriver *rtcp, alarmspec->tv_sec = ((rtcp->rtc->ALRH << 16) + rtcp->rtc->ALRL);
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
/**
@@ -353,7 +353,7 @@ void rtc_lld_set_callback(RTCDriver *rtcp, rtccb_t callback) { syssts_t sts;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
if (callback != NULL) {
@@ -373,7 +373,7 @@ void rtc_lld_set_callback(RTCDriver *rtcp, rtccb_t callback) { }
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
/**
@@ -394,7 +394,7 @@ void rtcSTM32GetSecMsec(RTCDriver *rtcp, uint32_t *tv_sec, uint32_t *tv_msec) { osalDbgCheck((NULL != tv_sec) && (NULL != rtcp));
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
/* Required because access to CNT and DIV.*/
rtc_apb1_sync();
@@ -406,7 +406,7 @@ void rtcSTM32GetSecMsec(RTCDriver *rtcp, uint32_t *tv_sec, uint32_t *tv_msec) { } while ((*tv_sec) != (((uint32_t)(rtcp->rtc->CNTH) << 16) + rtcp->rtc->CNTL));
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
if (NULL != tv_msec)
*tv_msec = (((uint32_t)STM32_RTCCLK - 1 - time_frac) * 1000) / STM32_RTCCLK;
@@ -427,7 +427,7 @@ void rtcSTM32SetSec(RTCDriver *rtcp, uint32_t tv_sec) { osalDbgCheck(NULL != rtcp);
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
rtc_acquire_access();
rtcp->rtc->CNTH = (uint16_t)(tv_sec >> 16);
@@ -435,7 +435,7 @@ void rtcSTM32SetSec(RTCDriver *rtcp, uint32_t tv_sec) { rtc_release_access();
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
#endif /* HAL_USE_RTC */
diff --git a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c index 51ee7c41c..a362d2379 100644 --- a/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv2/rtc_lld.c @@ -339,7 +339,7 @@ void rtc_lld_set_time(RTCDriver *rtcp, const RTCDateTime *timespec) { dr = rtc_encode_date(timespec);
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
/* Writing the registers.*/
rtc_enter_init();
@@ -348,7 +348,7 @@ void rtc_lld_set_time(RTCDriver *rtcp, const RTCDateTime *timespec) { rtc_exit_init();
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
/**
@@ -369,7 +369,7 @@ void rtc_lld_get_time(RTCDriver *rtcp, RTCDateTime *timespec) { syssts_t sts;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
/* Synchronization with the RTC and reading the registers, note
DR must be read last.*/
@@ -383,7 +383,7 @@ void rtc_lld_get_time(RTCDriver *rtcp, RTCDateTime *timespec) { rtcp->rtc->ISR &= ~RTC_ISR_RSF;
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
/* Decoding day time, this starts the atomic read sequence, see "Reading
the calendar" in the RTC documentation.*/
@@ -421,7 +421,7 @@ void rtc_lld_set_alarm(RTCDriver *rtcp, syssts_t sts;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
if (alarm == 0) {
if (alarmspec != NULL) {
@@ -455,7 +455,7 @@ void rtc_lld_set_alarm(RTCDriver *rtcp, #endif /* RTC_ALARMS > 1 */
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
/**
@@ -496,7 +496,7 @@ void rtcSTM32SetPeriodicWakeup(RTCDriver *rtcp, const RTCWakeup *wakeupspec) { syssts_t sts;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
if (wakeupspec != NULL) {
osalDbgCheck(wakeupspec->wutr != 0x30000);
@@ -515,7 +515,7 @@ void rtcSTM32SetPeriodicWakeup(RTCDriver *rtcp, const RTCWakeup *wakeupspec) { }
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
/**
@@ -532,14 +532,14 @@ void rtcSTM32GetPeriodicWakeup(RTCDriver *rtcp, RTCWakeup *wakeupspec) { syssts_t sts;
/* Entering a reentrant critical zone.*/
- sts = chSysGetStatusAndLockX();
+ sts = osalSysGetStatusAndLockX();
wakeupspec->wutr = 0;
wakeupspec->wutr |= rtcp->rtc->WUTR;
wakeupspec->wutr |= (((uint32_t)rtcp->rtc->CR) & 0x7) << 16;
/* Leaving a reentrant critical zone.*/
- chSysRestoreStatusX(sts);
+ osalSysRestoreStatusX(sts);
}
#endif /* STM32_RTC_HAS_PERIODIC_WAKEUPS */
|