ChbiOS 18 support

This commit is contained in:
Pavel Kirienko
2018-04-19 15:24:26 +03:00
parent da34eae9c4
commit fca62242ba
2 changed files with 7 additions and 1 deletions
@@ -551,7 +551,11 @@ bool CanIface::waitMsrINakBitStateChange(bool target_state)
::usleep(1000);
#endif
#if UAVCAN_STM32_CHIBIOS
#ifdef MS2ST
::chThdSleep(MS2ST(1));
#else
::chThdSleep(TIME_MS2I(1));
#endif
#endif
#if UAVCAN_STM32_FREERTOS
::osDelay(1);