65 #ifndef ti_osal_SemaphoreP__include 66 #define ti_osal_SemaphoreP__include 85 #define SemaphoreP_OK (0) 87 #define SemaphoreP_FAILURE (-(int32_t)1) 89 #define SemaphoreP_TIMEOUT (-(int32_t)2) 91 #define SemaphoreP_UNSUPPORTED (-(int32_t)3) 98 #define SemaphoreP_WAIT_FOREVER (~((uint32_t)0U)) 103 #define SemaphoreP_NO_WAIT ((uint32_t)0U) 123 #define SemaphoreP_Mode_COUNTING (0x0U) 124 #define SemaphoreP_Mode_BINARY (0x1U) 136 typedef struct SemaphoreP_Params_s {
SemaphoreP_Status SemaphoreP_delete(SemaphoreP_Handle semPhandle)
Function to delete a semaphore.
SemaphoreP_Status SemaphoreP_post(SemaphoreP_Handle semPhandle)
Function to post (signal) a semaphore.
uint32_t count
Definition: tisci_rm_ra.h:166
uint32_t maxCount
Definition: SemaphoreP.h:140
SemaphoreP_Status SemaphoreP_reset(SemaphoreP_Handle semPhandle)
Function to clear a semaphore for reuse.
Basic SemaphoreP Parameters.
Definition: SemaphoreP.h:136
void * SemaphoreP_Handle
Opaque client reference to an instance of a SemaphoreP.
Definition: SemaphoreP.h:112
char * name
Definition: SemaphoreP.h:137
uint32_t SemaphoreP_Mode
Mode of the semaphore.
Definition: SemaphoreP.h:122
SemaphoreP_Status SemaphoreP_postFromISR(SemaphoreP_Handle semPhandle)
Function to post (signal) a semaphore from an ISR.
SemaphoreP_Handle SemaphoreP_create(uint32_t count, const SemaphoreP_Params *semParams)
Function to create a semaphore.
SemaphoreP_Status SemaphoreP_postFromClock(SemaphoreP_Handle semPhandle)
Function to post (signal) a semaphore from an ClockP function.
void SemaphoreP_Params_init(SemaphoreP_Params *semParams)
Initialize params structure to default values.
int32_t SemaphoreP_getCount(SemaphoreP_Handle semPhandle)
Function to return the count of a semaphore.
int32_t SemaphoreP_Status
Status codes for SemaphoreP APIs.
Definition: SemaphoreP.h:84
SemaphoreP_Status SemaphoreP_pend(SemaphoreP_Handle semPhandle, uint32_t timeout)
Function to pend (wait) on a semaphore.
SemaphoreP_Mode mode
Definition: SemaphoreP.h:139