HPM SDK
HPMicro Software Development Kit
hpm_misc.h File Reference

Go to the source code of this file.

Macros

#define ILM_LOCAL_BASE   (0x0U)
 
#define ILM_SIZE_IN_BYTE   (0x20000U)
 
#define DLM_LOCAL_BASE   (0x80000U)
 
#define DLM_SIZE_IN_BYTE   (0x20000U)
 
#define CORE0_ILM_SYSTEM_BASE   (0x1040000U)
 
#define CORE0_DLM_SYSTEM_BASE   (0x1060000U)
 
#define ADDRESS_IN_ILM(address)
 
#define ADDRESS_IN_DLM(address)
 
#define ADDRESS_IN_CORE0_DLM_SYSTEM(address)
 
#define DLM_TO_SYSTEM(address)    (CORE0_DLM_SYSTEM_BASE + (address) - (DLM_LOCAL_BASE))
 
#define ILM_TO_SYSTEM(address)    (CORE0_ILM_SYSTEM_BASE + (address) - (ILM_LOCAL_BASE))
 
#define SYSTEM_TO_DLM(address)    ((address) - CORE0_DLM_SYSTEM_BASE + (DLM_LOCAL_BASE))
 
#define HPM_CORE0   (0U)
 

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

◆ ADDRESS_IN_CORE0_DLM_SYSTEM

#define ADDRESS_IN_CORE0_DLM_SYSTEM (   address)
Value:
#define DLM_SIZE_IN_BYTE
Definition: hpm_misc.h:14
#define CORE0_DLM_SYSTEM_BASE
Definition: hpm_misc.h:16
uint32_t address
Definition: hpm_l1c_drv.h:270

◆ ADDRESS_IN_DLM

#define ADDRESS_IN_DLM (   address)
Value:
((DLM_LOCAL_BASE) <= (address)) && \
#define DLM_LOCAL_BASE
Definition: hpm_misc.h:13

◆ ADDRESS_IN_ILM

#define ADDRESS_IN_ILM (   address)
Value:
((ILM_LOCAL_BASE) <= (address)) && \
#define ILM_LOCAL_BASE
Definition: hpm_misc.h:11
#define ILM_SIZE_IN_BYTE
Definition: hpm_misc.h:12

◆ CORE0_DLM_SYSTEM_BASE

#define CORE0_DLM_SYSTEM_BASE   (0x1060000U)

◆ CORE0_ILM_SYSTEM_BASE

#define CORE0_ILM_SYSTEM_BASE   (0x1040000U)

◆ DLM_LOCAL_BASE

#define DLM_LOCAL_BASE   (0x80000U)

◆ DLM_SIZE_IN_BYTE

#define DLM_SIZE_IN_BYTE   (0x20000U)

◆ DLM_TO_SYSTEM

#define DLM_TO_SYSTEM (   address)     (CORE0_DLM_SYSTEM_BASE + (address) - (DLM_LOCAL_BASE))

◆ HPM_CORE0

#define HPM_CORE0   (0U)

◆ ILM_LOCAL_BASE

#define ILM_LOCAL_BASE   (0x0U)

◆ ILM_SIZE_IN_BYTE

#define ILM_SIZE_IN_BYTE   (0x20000U)

◆ ILM_TO_SYSTEM

#define ILM_TO_SYSTEM (   address)     (CORE0_ILM_SYSTEM_BASE + (address) - (ILM_LOCAL_BASE))

◆ SYSTEM_TO_DLM

#define SYSTEM_TO_DLM (   address)     ((address) - CORE0_DLM_SYSTEM_BASE + (DLM_LOCAL_BASE))

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