From 4e472ed1b4ed3099838216d30b4a7e3c45c07fbe Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Thu, 24 Jul 2014 19:07:40 +0400 Subject: [PATCH] LPC11C24: WFE disabled by default --- libuavcan_drivers/lpc11c24/driver/src/can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libuavcan_drivers/lpc11c24/driver/src/can.cpp b/libuavcan_drivers/lpc11c24/driver/src/can.cpp index 9e655a066a..dd73cbcfd7 100644 --- a/libuavcan_drivers/lpc11c24/driver/src/can.cpp +++ b/libuavcan_drivers/lpc11c24/driver/src/can.cpp @@ -298,6 +298,7 @@ uavcan::int16_t CanDriver::select(uavcan::CanSelectMasks& inout_masks, uavcan::M if (!noblock && (clock::getMonotonic() > blocking_deadline)) { +#if UAVCAN_LPC11C24_USE_WFE /* * It's not cool (literally) to burn cycles in a busyloop, and we have no OS to pass control to other * tasks, thus solution is to halt the core until a hardware event occurs - e.g. clock timer overflow. @@ -314,7 +315,6 @@ 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 __WFE(); #endif }