From e006189ce587471a88ca9f3fe404ea6fa34ab086 Mon Sep 17 00:00:00 2001 From: suiauthon Date: Mon, 4 Apr 2016 10:06:59 +0200 Subject: [PATCH] changed counting semaphore to binary --- .../stm32/driver/include/uavcan_stm32/thread.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp index 9902e3e1f1..33ff54f575 100644 --- a/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp +++ b/libuavcan_drivers/stm32/driver/include/uavcan_stm32/thread.hpp @@ -20,9 +20,6 @@ #elif UAVCAN_STM32_FREERTOS # include # include -# ifndef MAX_SEMAPHORE_COUNT -# define MAX_SEMAPHORE_COUNT 50 -#endif #else # error "Unknown OS" #endif @@ -178,7 +175,7 @@ public: BusEvent(CanDriver& can_driver) { (void)can_driver; - sem_ = xSemaphoreCreateCounting( MAX_SEMAPHORE_COUNT, 0 ); + sem_ = xSemaphoreCreateBinary(); } bool wait(uavcan::MonotonicDuration duration);