fixes for the posix port

This commit is contained in:
Kevin Hester
2020-10-11 09:18:47 +08:00
parent 8330c3270e
commit 999b292717
12 changed files with 165 additions and 11 deletions

View File

@@ -2,6 +2,15 @@
#include "../freertosinc.h"
#ifdef HAS_FREE_RTOS
#include "concurrency/BinarySemaphoreFreeRTOS.h"
#define BinarySemaphore BinarySemaphoreFreeRTOS
#else
#include "concurrency/BinarySemaphorePosix.h"
#define BinarySemaphore BinarySemaphorePosix
#endif
namespace concurrency
{
@@ -14,7 +23,7 @@ namespace concurrency
*/
class InterruptableDelay
{
SemaphoreHandle_t semaphore;
BinarySemaphore semaphore;
public:
InterruptableDelay();