uncommented osDelay

This commit is contained in:
suiauthon
2016-02-17 09:51:50 +01:00
parent 6b30772353
commit 8abfd18189
@@ -478,7 +478,7 @@ bool CanIface::waitMsrINakBitStateChange(bool target_state)
::chThdSleep(MS2ST(1)); ::chThdSleep(MS2ST(1));
#endif #endif
#if UAVCAN_STM32_FREERTOS #if UAVCAN_STM32_FREERTOS
//::osDelay(1); ::osDelay(1);
#endif #endif
} }
return false; return false;
@@ -625,6 +625,10 @@ void CanIface::handleTxInterrupt(const uavcan::uint64_t utc_usec)
update_event_.signalFromInterrupt(); update_event_.signalFromInterrupt();
pollErrorFlagsFromISR(); pollErrorFlagsFromISR();
#if UAVCAN_STM32_FREERTOS
update_event_.yieldFromISR();
#endif
} }
void CanIface::handleRxInterrupt(uavcan::uint8_t fifo_index, uavcan::uint64_t utc_usec) void CanIface::handleRxInterrupt(uavcan::uint8_t fifo_index, uavcan::uint64_t utc_usec)
@@ -688,6 +692,10 @@ void CanIface::handleRxInterrupt(uavcan::uint8_t fifo_index, uavcan::uint64_t ut
update_event_.signalFromInterrupt(); update_event_.signalFromInterrupt();
pollErrorFlagsFromISR(); pollErrorFlagsFromISR();
#if UAVCAN_STM32_FREERTOS
update_event_.yieldFromISR();
#endif
} }
void CanIface::pollErrorFlagsFromISR() void CanIface::pollErrorFlagsFromISR()