/* * Copyright (C) 2018 Gunar Schorcht * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. * * FreeRTOS to RIOT-OS adaption module for source code compatibility */ #ifndef FREERTOS_EVENT_GROUPS_H #define FREERTOS_EVENT_GROUPS_H #ifndef DOXYGEN #include "freertos/FreeRTOS.h" #ifdef __cplusplus extern "C" { #endif typedef void * EventGroupHandle_t; typedef TickType_t EventBits_t; EventGroupHandle_t xEventGroupCreate (void); void vEventGroupDelete (EventGroupHandle_t xEventGroup); EventBits_t xEventGroupSetBits (EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet); EventBits_t xEventGroupClearBits (EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ); EventBits_t xEventGroupWaitBits (const EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait); #ifdef __cplusplus } #endif #endif /* DOXYGEN */ #endif /* FREERTOS_EVENT_GROUPS_H */