mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-30 14:13:35 +08:00
uncommented osDelay
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user