aboutsummaryrefslogtreecommitdiffstats
path: root/os/halnew/osal/chibios/osal.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/halnew/osal/chibios/osal.h')
-rw-r--r--os/halnew/osal/chibios/osal.h2
1 files changed, 2 insertions, 0 deletions
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.