* improvements for cross-platform compiling * moved tactility-core to libs/ * splitup improvements * remove git/gitmodules from freertos * better platformbetter platform checks * added build scripts * delete mbedtls * re-add mbedtls * fixes and improvements * added pc build * simplify build scripts * revert build scrpit * updated builds * fix for pc * fix for pc * fix for build
68 lines
1.3 KiB
C
68 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include "core_types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void EventFlag;
|
|
|
|
/** Allocate EventFlag
|
|
*
|
|
* @return pointer to EventFlag
|
|
*/
|
|
EventFlag* tt_event_flag_alloc();
|
|
|
|
/** Deallocate EventFlag
|
|
*
|
|
* @param instance pointer to EventFlag
|
|
*/
|
|
void tt_event_flag_free(EventFlag* instance);
|
|
|
|
/** Set flags
|
|
*
|
|
* @param instance pointer to EventFlag
|
|
* @param[in] flags The flags
|
|
*
|
|
* @return Resulting flags or error (TtStatus)
|
|
*/
|
|
uint32_t tt_event_flag_set(EventFlag* instance, uint32_t flags);
|
|
|
|
/** Clear flags
|
|
*
|
|
* @param instance pointer to EventFlag
|
|
* @param[in] flags The flags
|
|
*
|
|
* @return Resulting flags or error (TtStatus)
|
|
*/
|
|
uint32_t tt_event_flag_clear(EventFlag* instance, uint32_t flags);
|
|
|
|
/** Get flags
|
|
*
|
|
* @param instance pointer to EventFlag
|
|
*
|
|
* @return Resulting flags
|
|
*/
|
|
uint32_t tt_event_flag_get(EventFlag* instance);
|
|
|
|
/** Wait flags
|
|
*
|
|
* @param instance pointer to EventFlag
|
|
* @param[in] flags The flags
|
|
* @param[in] options The option flags
|
|
* @param[in] timeout The timeout
|
|
*
|
|
* @return Resulting flags or error (TtStatus)
|
|
*/
|
|
uint32_t tt_event_flag_wait(
|
|
EventFlag* instance,
|
|
uint32_t flags,
|
|
uint32_t options,
|
|
uint32_t timeout
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|