30 #if !defined(__FSL_RTOS_ABSTRACTION_H__) 31 #define __FSL_RTOS_ABSTRACTION_H__ 42 typedef enum _osa_status_t
51 typedef struct Semaphore
75 #if defined(__cplusplus) 259 #if defined(__cplusplus) 263 #endif // __FSL_RTOS_ABSTRACTION_H__ Definition: fsl_rtos_abstraction.h:47
void OSA_TimeDelay(uint32_t delay)
Delays execution for a number of milliseconds.
Definition: fsl_rtos_abstraction.c:199
Constant to pass for the sync_wait() timeout in order to wait indefinitely.
Definition: fsl_rtos_abstraction.h:68
volatile int32_t sync_object_t
Type for an interrupt synchronization object.
Definition: fsl_rtos_abstraction.h:60
volatile uint8_t semCount
Definition: fsl_rtos_abstraction.h:54
Definition: fsl_rtos_abstraction.h:44
Definition: fsl_rtos_abstraction.h:51
Definition: fsl_rtos_abstraction.h:46
sync_timeouts
Definition: fsl_rtos_abstraction.h:65
volatile bool isWaiting
Definition: fsl_rtos_abstraction.h:53
Definition: fsl_rtos_abstraction.h:45
osa_status_t
Definition: fsl_rtos_abstraction.h:42
osa_status_t OSA_SemaDestroy(semaphore_t *pSem)
Destroys a previously created semaphore.
Definition: fsl_rtos_abstraction.c:186
uint64_t tickStart
Definition: fsl_rtos_abstraction.h:55
osa_status_t OSA_SemaWait(semaphore_t *pSem, uint32_t timeout)
Pending a semaphore with timeout.
Definition: fsl_rtos_abstraction.c:106
void lock_init(void)
Initialize the lock object.
Definition: fsl_rtos_abstraction.c:241
osa_status_t OSA_SemaCreate(semaphore_t *pSem, uint8_t initValue)
Creates a semaphore with a given value.
Definition: fsl_rtos_abstraction.c:74
void lock_release(void)
Restore previous state.
Definition: fsl_rtos_abstraction.c:255
void lock_acquire(void)
Disable global irq and store previous state.
Definition: fsl_rtos_abstraction.c:248
osa_status_t OSA_SemaPost(semaphore_t *pSem)
Signals for someone waiting on the semaphore to wake up.
Definition: fsl_rtos_abstraction.c:163
uint32_t timeout
Definition: fsl_rtos_abstraction.h:56
volatile uint32_t lock_object_t
Type for an interrupt lock object.
Definition: fsl_rtos_abstraction.h:63