55 #ifndef ti_OSAL__include 56 #define ti_OSAL__include 97 #define osal_FAILURE (-(int32_t)(1)) 103 #define osal_UNSUPPORTED (-(int32_t)(2)) 112 #define osal_NOMEM (-(int32_t)(3)) 119 #define osal_WAIT_FOREVER (~((uint32_t)0U)) 125 #define osal_NO_WAIT ((uint32_t)0U) 135 #define OSAL_NONOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 48U) 144 #define OSAL_NONOS_HWIP_SIZE_BYTES ((uint32_t) 48U) 154 #define OSAL_TIRTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 96U) 163 #define OSAL_TIRTOS_HWIP_SIZE_BYTES (96U) 173 #define OSAL_FREERTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 96U) 183 #define OSAL_FREERTOS_TASKP_SIZE_BYTES ((uint32_t) 128U) 193 #define OSAL_SAFERTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 136U) 203 #define OSAL_SAFERTOS_TASKP_SIZE_BYTES ((uint32_t) 156U) 209 typedef struct Osal_StaticMemoryStatus
228 typedef enum Osal_ThreadType_e {
247 #define OSAL_Assert(expression) (Osal_DebugP_assert((int32_t)((expression)?1:0),\ 285 typedef struct Osal_memRange_s {
294 typedef struct Osal_HwAttrs_s
300 #if defined(gnu_targets_arm_A15F) 302 uint32_t a15TargetProcMask;
306 int32_t ECM_intNum[4];
332 #define OSAL_HWATTR_SET_EXT_CLK (0x00000001U) 337 #define OSAL_HWATTR_SET_ECM_INT (0x00000002U) 342 #define OSAL_HWATTR_SET_HWACCESS_TYPE (0x00000004U) 347 #define OSAL_HWATTR_SET_OSALDELAY_TIMER_BASE (0x00000008U) 352 #define OSAL_HWATTR_SET_SEMP_EXT_BASE (0x00000010U) 357 #define OSAL_HWATTR_SET_HWIP_EXT_BASE (0x00000020U) 362 #define OSAL_HWATTR_SET_CPU_FREQ (0x00000040U) 367 #define OSAL_HWATTR_SET_TARG_PROC_LIST (0x00000080) 450 #define OSAL_COMPILE_TIME_SIZE_CHECK(x,y) \ 453 uint8_t NegativeSizeIfPostulateFalse[(y) + 1U - (x)]; \ Cycle profiler module to measure CPU cycles for the RTOS Porting Interface.
Osal_HwAccessType
Osal hw access type.
Definition: osal.h:276
Event Combiner routines for the RTOS Porting Interface.
Interrupt register routines.
Heap management module for the RTOS Porting Interface.
Osal_memRange extHwiPBlock
Definition: osal.h:321
uint32_t peakTimerObjs
Definition: osal.h:215
int32_t Osal_getCoreId(void)
Function to get the core ID of the running Core.
Osal hw attributes structure.
Definition: osal.h:294
Osal_ThreadType Osal_getThreadType(void)
Function to get the current thread type.
Osal_HwAccessType hwAccessType
Definition: osal.h:309
Cache Handling routines for the RTOS Porting Interface.
void OS_stop(void)
Function to stop OS / scheduler.
uintptr_t base
Definition: osal.h:286
uint32_t numMaxSemObjs
Definition: osal.h:212
Mailbox module for the RTOS Porting Interface.
Queue Handling routines for RTOS.
Event module for the RTOS Porting Interface.
int32_t cpuFreqKHz
Definition: osal.h:297
Mailbox module for the RTOS Porting Interface.
Osal_memRange extSemaphorePBlock
Definition: osal.h:319
uint32_t numMaxTimerObjs
Definition: osal.h:216
Interrupt Controller Mux module for the RTOS Porting Interface.
Memory module for the RTOS Porting Interface.
uintptr_t osalDelayTimerBaseAddr
Definition: osal.h:317
uint32_t numFreeSemObjs
Definition: osal.h:213
uint32_t peakHwiObjs
Definition: osal.h:219
Semaphore module for the RTOS Porting Interface.
This structure holds static memory status parameters of OSAL library.
Definition: osal.h:209
Task module for the RTOS Porting Interface.
void Osal_DebugP_assert(int32_t expression, const char *file, int32_t line)
void OS_init(void)
Function for initializing the OS / scheduler.
int32_t Osal_delay(uint32_t nTicks)
Function to delay/sleep the specified number of ticks.
int32_t extClkKHz
Definition: osal.h:299
uint32_t numFreeHwiObjs
Definition: osal.h:221
Osal_ThreadType
This enum defines the multiple thread types used under OSAL library.
Definition: osal.h:228
uint32_t numFreeTimerObjs
Definition: osal.h:217
uint32_t numMaxHwiObjs
Definition: osal.h:220
Osal_HwAttrs gOsal_HwAttrs
external references for Osal Hw Attribute structure
Clock module for the RTOS Porting Interface. This implements the software timer support....
Osal memory address range.
Definition: osal.h:285
uint32_t size
Definition: osal.h:287
int32_t Osal_getStaticMemStatus(Osal_StaticMemStatus *pMemStat)
Function to get the static memory usage of OSAL library.
int32_t Osal_setHwAttrs(uint32_t ctrlBitMap, const Osal_HwAttrs *hwAttrs)
Function to set the Hw Attributes.
uint32_t peakSemObjs
Definition: osal.h:211
void OS_start(void)
Function to strat OS / scheduler.
int32_t Osal_getHwAttrs(Osal_HwAttrs *hwAttrs)
Function to get the Hw Attributes.
Hardware Interrupt module for the RTOS Porting Interface.
Timer interface for the RTOS Porting Interface.