mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 09:07:35 +08:00
Preprocessor symbol UAVCAN_LPC11C24_NO_WFE to disable WFE in select()
This commit is contained in:
@@ -313,7 +313,9 @@ uavcan::int16_t CanDriver::select(uavcan::CanSelectMasks& inout_masks, uavcan::M
|
||||
* If the user's application requires higher timing precision, an extra dummy IRQ can be added just to
|
||||
* break WFE every once in a while.
|
||||
*/
|
||||
#if !UAVCAN_LPC11C24_NO_WFE
|
||||
asm volatile ("wfe");
|
||||
#endif
|
||||
}
|
||||
|
||||
inout_masks.read = hasReadyRx() ? 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user