43 #ifndef BAREMETAL_CASCODA_BM_DRIVER_INCLUDE_CASCODA_BM_CASCODA_OS_H_
44 #define BAREMETAL_CASCODA_BM_DRIVER_INCLUDE_CASCODA_BM_CASCODA_OS_H_
119 #define CA_OS_LOCKED(x) \
ca_mutex CA_OS_MutexInit(void)
Initialise a mutex for inter-thread control in an OS-independent manner.
Definition: cascoda_os.c:73
void CA_OS_LockAPI(void)
Lock the Cascoda API thread, for safely calling Cascoda API functions.
Definition: cascoda_os.c:57
void CA_OS_Yield(void)
Yield the CPU to a different task.
Definition: cascoda_os.c:69
void CA_OS_UnlockAPI(void)
Release the Cascoda API lock.
Definition: cascoda_os.c:63
void CA_OS_MutexLock(ca_mutex *aMutex)
Claim a mutex, blocking until it is taken Mutex must be initialised with CA_OS_MutexInit Counterpart ...
Definition: cascoda_os.c:79
void CA_OS_MutexUnlock(ca_mutex *aMutex)
Unlock a claimed mutex Counterpart is CA_OS_MutexLock.
Definition: cascoda_os.c:85
void * ca_mutex
Generic mutex type.
Definition: cascoda_os.h:53
void CA_OS_Init(void)
Initialise the CA_OS subsystem.
Definition: cascoda_os.c:53
void CA_OS_SchedulerResume(void)
Resume the scheduler so pre-emption begins again.
Definition: cascoda_os.c:97
void CA_OS_SchedulerSuspend(void)
Suspend the scheduler so that it will not pre-emptively context switch to another task.
Definition: cascoda_os.c:91