55 #ifndef ti_OSAL__include 56 #define ti_OSAL__include 90 #define osal_FAILURE (-(int32_t)(1)) 96 #define osal_UNSUPPORTED (-(int32_t)(2)) 105 #define osal_NOMEM (-(int32_t)(3)) 116 #define OSAL_NONOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 48U) 125 #define OSAL_NONOS_HWIP_SIZE_BYTES ((uint32_t) 48U) 135 #define OSAL_TIRTOS_SEMAPHOREP_SIZE_BYTES ((uint32_t) 96U) 144 #define OSAL_TIRTOS_HWIP_SIZE_BYTES (96U) 150 typedef struct Osal_StaticMemoryStatus
169 typedef enum Osal_ThreadType_e {
188 #define OSAL_Assert(expression) (Osal_DebugP_assert((int32_t)((expression)?1:0),\ 226 typedef struct Osal_memRange_s {
235 typedef struct Osal_HwAttrs_s
241 #if defined(gnu_targets_arm_A15F) 243 uint32_t a15TargetProcMask;
247 int32_t ECM_intNum[4];
273 #define OSAL_HWATTR_SET_EXT_CLK (0x00000001U) 278 #define OSAL_HWATTR_SET_ECM_INT (0x00000002U) 283 #define OSAL_HWATTR_SET_HWACCESS_TYPE (0x00000004U) 288 #define OSAL_HWATTR_SET_OSALDELAY_TIMER_BASE (0x00000008U) 293 #define OSAL_HWATTR_SET_SEMP_EXT_BASE (0x00000010U) 298 #define OSAL_HWATTR_SET_HWIP_EXT_BASE (0x00000020U) 303 #define OSAL_HWATTR_SET_CPU_FREQ (0x00000040U) 308 #define OSAL_HWATTR_SET_TARG_PROC_LIST (0x00000080) 391 #define OSAL_COMPILE_TIME_SIZE_CHECK(x,y) \ 394 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:217
Event Combiner routines for the RTOS Porting Interface.
Interrupt register routines.
Osal_memRange extHwiPBlock
Definition: osal.h:262
uint32_t peakTimerObjs
Definition: osal.h:156
int32_t Osal_getCoreId(void)
Function to get the core ID of the running Core.
Osal hw attributes structure.
Definition: osal.h:235
Osal_ThreadType Osal_getThreadType(void)
Function to get the current thread type.
Osal_HwAccessType hwAccessType
Definition: osal.h:250
Cache Handling routines for the RTOS Porting Interface.
uintptr_t base
Definition: osal.h:227
uint32_t numMaxSemObjs
Definition: osal.h:153
Queue Handling routines for RTOS.
int32_t cpuFreqKHz
Definition: osal.h:238
Osal_memRange extSemaphorePBlock
Definition: osal.h:260
uint32_t numMaxTimerObjs
Definition: osal.h:157
Interrupt Controller Mux module for the RTOS Porting Interface.
uintptr_t osalDelayTimerBaseAddr
Definition: osal.h:258
uint32_t numFreeSemObjs
Definition: osal.h:154
uint32_t peakHwiObjs
Definition: osal.h:160
Semaphore module for the RTOS Porting Interface.
This structure holds static memory status parameters of OSAL library.
Definition: osal.h:150
void Osal_DebugP_assert(int32_t expression, const char *file, int32_t line)
int32_t Osal_delay(uint32_t nTicks)
Function to delay/sleep the specified number of ticks.
int32_t extClkKHz
Definition: osal.h:240
uint32_t numFreeHwiObjs
Definition: osal.h:162
Osal_ThreadType
This enum defines the multiple thread types used under OSAL library.
Definition: osal.h:169
uint32_t numFreeTimerObjs
Definition: osal.h:158
uint32_t numMaxHwiObjs
Definition: osal.h:161
Osal_HwAttrs gOsal_HwAttrs
external references for Osal Hw Attribute structure
Osal memory address range.
Definition: osal.h:226
uint32_t size
Definition: osal.h:228
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:152
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.