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) 153 #define OSAL_FREERTOS_HWIP_C7X_SIZE_BYTES ((uint32_t) 56U) 162 #define OSAL_SAFERTOS_HWIP_C7X_SIZE_BYTES ((uint32_t) 56U) 172 #if defined (BUILD_C7X) 173 #define OSAL_FREERTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 176U) 175 #define OSAL_FREERTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 96U) 186 #define OSAL_FREERTOS_TASKP_SIZE_BYTES ((uint32_t) 128U) 196 #if defined (BUILD_C7X) 197 #define OSAL_SAFERTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 304U) 199 #define OSAL_SAFERTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 248U) 210 #if defined (BUILD_C7X) 211 #define OSAL_SAFERTOS_TASKP_SIZE_BYTES ((uint32_t) 320U) 213 #define OSAL_SAFERTOS_TASKP_SIZE_BYTES ((uint32_t) 248U) 220 typedef struct Osal_StaticMemoryStatus
239 typedef enum Osal_ThreadType_e {
259 #define OSAL_Assert(expression) (Osal_DebugP_assert((int32_t)((expression)?1:0),\ 297 typedef struct Osal_memRange_s {
306 typedef struct Osal_HwAttrs_s
312 #if defined(gnu_targets_arm_A15F) 314 uint32_t a15TargetProcMask;
318 uint32_t ECM_intNum[4];
344 #define OSAL_HWATTR_SET_EXT_CLK (0x00000001U) 349 #define OSAL_HWATTR_SET_ECM_INT (0x00000002U) 354 #define OSAL_HWATTR_SET_HWACCESS_TYPE (0x00000004U) 359 #define OSAL_HWATTR_SET_OSALDELAY_TIMER_BASE (0x00000008U) 364 #define OSAL_HWATTR_SET_SEMP_EXT_BASE (0x00000010U) 369 #define OSAL_HWATTR_SET_HWIP_EXT_BASE (0x00000020U) 374 #define OSAL_HWATTR_SET_CPU_FREQ (0x00000040U) 379 #define OSAL_HWATTR_SET_TARG_PROC_LIST (0x00000080) 469 #define OSAL_COMPILE_TIME_SIZE_CHECK(x,y) \ 472 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:288
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:333
uint32_t peakTimerObjs
Definition: osal.h:226
Osal hw attributes structure.
Definition: osal.h:306
int32_t Osal_isInPrivilegeMode(void)
Function to check if the calling task is in privileged mode.
Osal_ThreadType Osal_getThreadType(void)
Function to get the current thread type.
Osal_HwAccessType hwAccessType
Definition: osal.h:321
Cache Handling routines for the RTOS Porting Interface.
void OS_stop(void)
Function to stop OS / scheduler.
uint32_t cpuFreqKHz
Definition: osal.h:309
uintptr_t base
Definition: osal.h:298
uint32_t numMaxSemObjs
Definition: osal.h:223
Mailbox module for the RTOS Porting Interface.
Queue Handling routines for RTOS.
uint32_t Osal_getCoreId(void)
Function to get the core ID of the running Core.
Event module for the RTOS Porting Interface.
Mailbox module for the RTOS Porting Interface.
Osal_memRange extSemaphorePBlock
Definition: osal.h:331
uint32_t numMaxTimerObjs
Definition: osal.h:227
Interrupt Controller Mux module for the RTOS Porting Interface.
Memory module for the RTOS Porting Interface.
uintptr_t osalDelayTimerBaseAddr
Definition: osal.h:329
uint32_t numFreeSemObjs
Definition: osal.h:224
uint32_t peakHwiObjs
Definition: osal.h:230
Semaphore module for the RTOS Porting Interface.
This structure holds static memory status parameters of OSAL library.
Definition: osal.h:220
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.
uint32_t numFreeHwiObjs
Definition: osal.h:232
Osal_ThreadType
This enum defines the multiple thread types used under OSAL library.
Definition: osal.h:239
uint32_t numFreeTimerObjs
Definition: osal.h:228
uint32_t numMaxHwiObjs
Definition: osal.h:231
Osal_HwAttrs gOsal_HwAttrs
external references for Osal Hw Attribute structure
Clock module for the RTOS Porting Interface. This implements the software timer support....
uint32_t extClkKHz
Definition: osal.h:311
Osal memory address range.
Definition: osal.h:297
uint32_t size
Definition: osal.h:299
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:222
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.