PDK API Guide for J721E
j721e/osal_soc.h File Reference

Introduction

SOC specific includes for Osal.

============================================================================


Go to the source code of this file.

Macros

#define OSAL_MPU1_0   (0U)
 
#define OSAL_MCU1_0   (1U)
 
#define OSAL_MCU1_1   (2U)
 
#define OSAL_MCU2_0   (3U)
 
#define OSAL_MCU2_1   (4U)
 
#define OSAL_MCU3_0   (5U)
 
#define OSAL_MCU3_1   (6U)
 
#define OSAL_C66_1   (7U)
 
#define OSAL_C66_2   (8U)
 
#define OSAL_C7X_1   (9U)
 
#define OSAL_INVALID_CORE_ID   (10U)
 
#define EXTERNAL_CLOCK_KHZ_DEFAULT   (24000U)
 
#define PMU_CLOCK_KHZ_DEFAULT   (1000000U)
 
#define OSAL_CPU_FREQ_KHZ_DEFAULT   (1000000U)
 
#define TIMERP_TIMER_FREQ_LO   (19200000U)
 
#define TIMERP_TIMER_FREQ_HI   (0U)
 
#define TimerP_numTimerDevices   ((uint32_t) 20U )
 
#define TIMERP_ANY_MASK   ((uint32_t) 0x0FFF)
 
#define TIMERP_AVAILABLE_MASK   ((uint32_t) 0x0FFF)
 
#define OSAL_DELAY_TIMER_ADDR_DEFAULT   (CSL_MCU_TIMER1_CFG_BASE)
 
#define TIMER_INITIAL_COUNT   (0xFFF00000U)
 
#define TIMER_RLD_COUNT   (0xFFF00000U)
 
#define OSAL_SOC_MPU_GTC_CLK   (200000U)
 
#define OSAL_NONOS_MAX_SEMAPHOREP_PER_SOC   ((uint32_t) 80U)
 
#define OSAL_NONOS_MAX_HWIP_PER_SOC   ((uint32_t) 40U)
 
#define OSAL_NONOS_MAX_TIMERP_PER_SOC   (TimerP_numTimerDevices)
 
#define OSAL_FREERTOS_MAX_SEMAPHOREP_PER_SOC   ((uint32_t) 360U)
 
#define OSAL_FREERTOS_MAX_HWIP_PER_SOC   ((uint32_t) 40U)
 
#define OSAL_FREERTOS_MAX_TIMERP_PER_SOC   (TimerP_numTimerDevices)
 
#define OSAL_FREERTOS_MAX_TASKP_PER_SOC   ((uint32_t) 160U)
 
#define OSAL_FREERTOS_MAX_CLOCKP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_FREERTOS_MAX_MUTEXP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_FREERTOS_MAX_MAILBOXP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_FREERTOS_MAX_QUEUEP_PER_SOC   ((uint32_t) 40U)
 
#define OSAL_FREERTOS_MAX_HEAPP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_FREERTOS_MAX_EVENTP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_SAFERTOS_MAX_HWIP_PER_SOC   ((uint32_t) 40U)
 
#define OSAL_SAFERTOS_MAX_SEMAPHOREP_PER_SOC   ((uint32_t) 360U)
 
#define OSAL_SAFERTOS_MAX_TASKP_PER_SOC   ((uint32_t) 160U)
 
#define OSAL_SAFERTOS_MAX_TIMERP_PER_SOC   (TimerP_numTimerDevices)
 
#define OSAL_SAFERTOS_MAX_CLOCKP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_SAFERTOS_MAX_MUTEXP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_SAFERTOS_MAX_MAILBOXP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_SAFERTOS_MAX_EVENTP_PER_SOC   ((uint32_t) 20U)
 
#define OSAL_ARCH_TIMER_INST_FOR_TS   (TimerP_ANY)
 
#define OSAL_SAFERTOS_OS_TIMER_ID_MCU1_0   ( 1U ) /* MCU DM Timer 1 */
 
#define OSAL_SAFERTOS_OS_TIMER_ID_MCU1_1   ( 2U ) /* MCU DM Timer 2 */
 
#define OSAL_SAFERTOS_OS_TIMER_ID_MCU2_0   ( 0U ) /* DM Timer 12 */
 
#define OSAL_SAFERTOS_OS_TIMER_ID_MCU2_1   ( 1U ) /* DM Timer 13 */
 
#define OSAL_SAFERTOS_OS_TIMER_ID_MCU3_0   ( 2U ) /* DM Timer 14 */
 
#define OSAL_SAFERTOS_OS_TIMER_ID_MCU3_1   ( 3U ) /* DM Timer 15 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_MCU1_0   ( 1U ) /* MCU DM Timer 1 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_MCU1_1   ( 2U ) /* MCU DM Timer 2 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_MCU2_0   ( 0U ) /* DM Timer 12 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_MCU2_1   ( 1U ) /* DM Timer 13 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_MCU3_0   ( 2U ) /* DM Timer 14 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_MCU3_1   ( 3U ) /* DM Timer 15 */
 
#define OSAL_SAFERTOS_OS_TIMER_ID_C66X_1   ( 0U ) /* DM Timer 0 */
 
#define OSAL_SAFERTOS_OS_TIMER_ID_C66X_2   ( 1U ) /* DM Timer 1 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_C66X_1   ( 0U ) /* DM Timer 0 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_C66X_2   ( 1U ) /* DM Timer 1 */
 
#define OSAL_SAFERTOS_OS_TIMER_INT_NUM_C66X_1   ( 14U )
 
#define OSAL_SAFERTOS_OS_TIMER_INT_NUM_C66X_2   ( 15U )
 
#define OSAL_SAFERTOS_OS_TIMER_EVENT_ID_C66X_1   ( 21U )
 
#define OSAL_SAFERTOS_OS_TIMER_EVENT_ID_C66X_2   ( 20U )
 
#define OSAL_SAFERTOS_OS_TIMER_ID_C7X_1   ( 2U ) /* DM Timer 2 */
 
#define OSAL_FREERTOS_OS_TIMER_ID_C7X_1   ( 2U ) /* DM Timer 2 */
 
#define OSAL_SAFERTOS_OS_TIMER_INT_NUM_C7X_1   ( 16U )
 
#define OSAL_SAFERTOS_OS_YEILD_INT_NUM_C7X   ( 13U )
 

Variables

Osal_HwAttrs gOsal_HwAttrs