dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pios_semaphore.h File Reference
#include <stdint.h>
#include <stdbool.h>

Go to the source code of this file.

Macros

#define PIOS_SEMAPHORE_TIMEOUT_MAX   0xffffffff
 

Functions

struct pios_semaphorePIOS_Semaphore_Create (void)
 Creates a binary semaphore. More...
 
bool PIOS_Semaphore_Take (struct pios_semaphore *sema, uint32_t timeout_ms)
 Takes binary semaphore. More...
 
bool PIOS_Semaphore_Give (struct pios_semaphore *sema)
 Gives binary semaphore. More...
 
bool PIOS_Semaphore_Take_FromISR (struct pios_semaphore *sema, bool *woken)
 
bool PIOS_Semaphore_Give_FromISR (struct pios_semaphore *sema, bool *woken)
 

Detailed Description

Author
Tau Labs, http://taulabs.org, Copyright (C) 2013-2014
dRonin, http://dRonin.org, Copyright (C) 2017

Definition in file pios_semaphore.h.