12 lines
279 B
C
12 lines
279 B
C
|
#pragma once
|
||
|
|
||
|
#include "FreeRTOS.h"
|
||
|
#include "queue.h"
|
||
|
|
||
|
typedef QueueHandle_t SemaphoreHandle_t;
|
||
|
|
||
|
QueueHandle_t xSemaphoreCreateMutex();
|
||
|
|
||
|
BaseType_t xSemaphoreTake( SemaphoreHandle_t xSemaphore, TickType_t xTicksToWait);
|
||
|
BaseType_t xSemaphoreGive( SemaphoreHandle_t xSemaphore);
|