diff --git a/os/halnew/osal/chibios/osal.h b/os/halnew/osal/chibios/osal.h index ca3c3f8b5..726782d8b 100644 --- a/os/halnew/osal/chibios/osal.h +++ b/os/halnew/osal/chibios/osal.h @@ -316,6 +316,7 @@ static inline void osalSysUnlockFromISR(void) { chSysUnlockFromISR(); } +#if CH_PORT_SUPPORTS_RT || defined(__DOXYGEN__) /** * @brief Polled delay. * @note The real delay is always few cycles in excess of the specified @@ -329,6 +330,7 @@ static inline void osalSysPolledDelayX(rtcnt_t cycles) { chSysPolledDelayX(cycles); } +#endif /** * @brief Systick callback for the underlying OS. diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c index 7057a7e01..cd4832831 100644 --- a/os/kernel/src/chsys.c +++ b/os/kernel/src/chsys.c @@ -246,7 +246,6 @@ void chSysRestoreLockX(syssts_t sts) { } } - #if CH_PORT_SUPPORTS_RT || defined(__DOXYGEN__) /** * @brief Realtime window test.