HPM SDK
HPMicro Software Development Kit
hpm_misc.h File Reference

Go to the source code of this file.

Macros

#define CORE0_ILM_LOCAL_BASE   (0x0U)
 
#define CORE0_ILM_SIZE_IN_BYTE   (0x20000U)
 
#define CORE0_DLM_LOCAL_BASE   (0x200000U)
 
#define CORE0_DLM_SIZE_IN_BYTE   (0x20000U)
 
#define CORE1_ILM_LOCAL_BASE   (0x40000U)
 
#define CORE1_ILM_SIZE_IN_BYTE   (0x20000U)
 
#define CORE1_DLM_LOCAL_BASE   (0x240000U)
 
#define CORE1_DLM_SIZE_IN_BYTE   (0x20000U)
 
#define CORE0_ILM_SYSTEM_BASE   (0x0U)
 
#define CORE0_DLM_SYSTEM_BASE   (0x200000U)
 
#define CORE1_ILM_SYSTEM_BASE   (0x40000U)
 
#define CORE1_DLM_SYSTEM_BASE   (0x240000U)
 
#define HPM_CORE0   (0U)
 
#define HPM_CORE1   (1U)
 

Functions

static uint32_t core_local_mem_to_sys_address (uint8_t core_id, uint32_t addr)
 
static uint32_t sys_address_to_core_local_mem (uint8_t core_id, uint32_t addr)
 

Macro Definition Documentation

◆ CORE0_DLM_LOCAL_BASE

#define CORE0_DLM_LOCAL_BASE   (0x200000U)

◆ CORE0_DLM_SIZE_IN_BYTE

#define CORE0_DLM_SIZE_IN_BYTE   (0x20000U)

◆ CORE0_DLM_SYSTEM_BASE

#define CORE0_DLM_SYSTEM_BASE   (0x200000U)

◆ CORE0_ILM_LOCAL_BASE

#define CORE0_ILM_LOCAL_BASE   (0x0U)

◆ CORE0_ILM_SIZE_IN_BYTE

#define CORE0_ILM_SIZE_IN_BYTE   (0x20000U)

◆ CORE0_ILM_SYSTEM_BASE

#define CORE0_ILM_SYSTEM_BASE   (0x0U)

◆ CORE1_DLM_LOCAL_BASE

#define CORE1_DLM_LOCAL_BASE   (0x240000U)

◆ CORE1_DLM_SIZE_IN_BYTE

#define CORE1_DLM_SIZE_IN_BYTE   (0x20000U)

◆ CORE1_DLM_SYSTEM_BASE

#define CORE1_DLM_SYSTEM_BASE   (0x240000U)

◆ CORE1_ILM_LOCAL_BASE

#define CORE1_ILM_LOCAL_BASE   (0x40000U)

◆ CORE1_ILM_SIZE_IN_BYTE

#define CORE1_ILM_SIZE_IN_BYTE   (0x20000U)

◆ CORE1_ILM_SYSTEM_BASE

#define CORE1_ILM_SYSTEM_BASE   (0x40000U)

◆ HPM_CORE0

#define HPM_CORE0   (0U)

◆ HPM_CORE1

#define HPM_CORE1   (1U)

Function Documentation

◆ core_local_mem_to_sys_address()

static uint32_t core_local_mem_to_sys_address ( uint8_t  core_id,
uint32_t  addr 
)
inlinestatic

◆ sys_address_to_core_local_mem()

static uint32_t sys_address_to_core_local_mem ( uint8_t  core_id,
uint32_t  addr 
)
inlinestatic