Loading...
Searching...
No Matches
event_groups.h
1/*
2 * SPDX-FileCopyrightText: 2019 Gunar Schorcht
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6/*
7 * FreeRTOS to RIOT-OS adaption module for source code compatibility
8 */
9
10#pragma once
11
12#ifndef DOXYGEN
13
14#include "freertos/FreeRTOS.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20typedef void * EventGroupHandle_t;
21typedef TickType_t EventBits_t;
22
23EventGroupHandle_t xEventGroupCreate (void);
24
25void vEventGroupDelete (EventGroupHandle_t xEventGroup);
26
27EventBits_t xEventGroupSetBits (EventGroupHandle_t xEventGroup,
28 const EventBits_t uxBitsToSet);
29
30EventBits_t xEventGroupClearBits (EventGroupHandle_t xEventGroup,
31 const EventBits_t uxBitsToClear );
32
33EventBits_t xEventGroupWaitBits (const EventGroupHandle_t xEventGroup,
34 const EventBits_t uxBitsToWaitFor,
35 const BaseType_t xClearOnExit,
36 const BaseType_t xWaitForAllBits,
37 TickType_t xTicksToWait);
38
39#ifdef __cplusplus
40}
41#endif
42
43#endif /* DOXYGEN */