RTEMS 6.1-rc5
|
Data Structures | |
struct | _flexram_allocate_ram |
FLEXRAM allocate ocram, itcm, dtcm size. More... | |
Variables | |
const uint8_t | _flexram_allocate_ram::ocramBankNum |
const uint8_t | _flexram_allocate_ram::dtcmBankNum |
const uint8_t | _flexram_allocate_ram::itcmBankNum |
Driver version | |
enum | { kFLEXRAM_BankNotUsed = 0U , kFLEXRAM_BankOCRAM = 1U , kFLEXRAM_BankDTCM = 2U , kFLEXRAM_BankITCM = 3U } |
FLEXRAM bank type. More... | |
enum | _flexram_bank_allocate_src { kFLEXRAM_BankAllocateThroughHardwareFuse = 0U , kFLEXRAM_BankAllocateThroughBankCfg = 1U , kFLEXRAM_BankAllocateThroughHardwareFuse = 0U , kFLEXRAM_BankAllocateThroughBankCfg = 1U } |
FLEXRAM bank allocate source. More... | |
typedef enum _flexram_bank_allocate_src | flexram_bank_allocate_src_t |
FLEXRAM bank allocate source. | |
typedef struct _flexram_allocate_ram | flexram_allocate_ram_t |
FLEXRAM allocate ocram, itcm, dtcm size. | |
status_t | FLEXRAM_AllocateRam (flexram_allocate_ram_t *config) |
FLEXRAM allocate on-chip ram for OCRAM,ITCM,DTCM This function is independent of FLEXRAM_Init, it can be called directly if ram re-allocate is needed. | |
#define | FSL_SOC_FLEXRAM_ALLOCATE_DRIVER_VERSION (MAKE_VERSION(2, 0, 2)) |
SOC_FLEXRAM_ALLOCATE driver version 2.0.2. | |
Driver version | |
enum | { kFLEXRAM_BankNotUsed = 0U , kFLEXRAM_BankOCRAM = 1U , kFLEXRAM_BankDTCM = 2U , kFLEXRAM_BankITCM = 3U } |
FLEXRAM bank type. More... | |
enum | _flexram_bank_allocate_src { kFLEXRAM_BankAllocateThroughHardwareFuse = 0U , kFLEXRAM_BankAllocateThroughBankCfg = 1U , kFLEXRAM_BankAllocateThroughHardwareFuse = 0U , kFLEXRAM_BankAllocateThroughBankCfg = 1U } |
FLEXRAM bank allocate source. More... | |
typedef enum _flexram_bank_allocate_src | flexram_bank_allocate_src_t |
FLEXRAM bank allocate source. | |
typedef struct _flexram_allocate_ram | flexram_allocate_ram_t |
FLEXRAM allocates OCRAM, ITCM, DTCM size. | |
#define | FSL_SOC_FLEXRAM_ALLOCATE_DRIVER_VERSION (MAKE_VERSION(2, 0, 2)) |
SOC_FLEXRAM_ALLOCATE driver version 2.0.2. | |
Driver version | |
enum | { kFLEXRAM_Read = 0U , kFLEXRAM_Write = 1U } |
Flexram write/read selection. More... | |
enum | { kFLEXRAM_OCRAMAccessError = FLEXRAM_INT_STATUS_OCRAM_ERR_STATUS_MASK , kFLEXRAM_DTCMAccessError = FLEXRAM_INT_STATUS_DTCM_ERR_STATUS_MASK , kFLEXRAM_ITCMAccessError = FLEXRAM_INT_STATUS_ITCM_ERR_STATUS_MASK , kFLEXRAM_InterruptStatusAll } |
Interrupt status flag mask. More... | |
enum | _flexram_tcm_access_mode { kFLEXRAM_TCMAccessFastMode = 0U , kFLEXRAM_TCMAccessWaitMode = 1U } |
FLEXRAM TCM access mode. Fast access mode expected to be finished in 1-cycle; Wait access mode expected to be finished in 2-cycle. Wait access mode is a feature of the flexram and it should be used when the CPU clock is too fast to finish TCM access in 1-cycle. Normally, fast mode is the default mode, the efficiency of the TCM access will better. More... | |
enum | { kFLEXRAM_TCMSize32KB = 32 * 1024U , kFLEXRAM_TCMSize64KB = 64 * 1024U , kFLEXRAM_TCMSize128KB = 128 * 1024U , kFLEXRAM_TCMSize256KB = 256 * 1024U , kFLEXRAM_TCMSize512KB = 512 * 1024U } |
FLEXRAM TCM support size. More... | |
typedef enum _flexram_tcm_access_mode | flexram_tcm_access_mode_t |
FLEXRAM TCM access mode. Fast access mode expected to be finished in 1-cycle; Wait access mode expected to be finished in 2-cycle. Wait access mode is a feature of the flexram and it should be used when the CPU clock is too fast to finish TCM access in 1-cycle. Normally, fast mode is the default mode, the efficiency of the TCM access will better. | |
#define | FSL_FLEXRAM_DRIVER_VERSION (MAKE_VERSION(2U, 2U, 0U)) |
Driver version. | |
#define | FLEXRAM_ECC_ERROR_DETAILED_INFO 0U /* Define to zero means get raw ECC error information, which needs parse it by user. */ |
Get ECC error detailed information. | |
Initialization and de-initialization | |
void | FLEXRAM_Init (FLEXRAM_Type *base) |
FLEXRAM module initialization function. | |
void | FLEXRAM_Deinit (FLEXRAM_Type *base) |
De-initializes the FLEXRAM. | |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
FLEXRAM bank allocate source.
FLEXRAM bank allocate source.
FLEXRAM TCM access mode. Fast access mode expected to be finished in 1-cycle; Wait access mode expected to be finished in 2-cycle. Wait access mode is a feature of the flexram and it should be used when the CPU clock is too fast to finish TCM access in 1-cycle. Normally, fast mode is the default mode, the efficiency of the TCM access will better.
Enumerator | |
---|---|
kFLEXRAM_TCMAccessFastMode | fast access mode |
kFLEXRAM_TCMAccessWaitMode | wait access mode |
status_t FLEXRAM_AllocateRam | ( | flexram_allocate_ram_t * | config | ) |
FLEXRAM allocate on-chip ram for OCRAM,ITCM,DTCM This function is independent of FLEXRAM_Init, it can be called directly if ram re-allocate is needed.
FLEXRAM allocates an on-chip ram for OCRAM, ITCM and DTCM. This function is independent from FLEXRAM_Init, and can be called directly if ram re-allocate is needed.
config | allocate configuration. |
kStatus_InvalidArgument | the argument is invalid kStatus_Success allocate success |
config | Allocate configuration. |
kStatus_InvalidArgument | When the argument is invalid. |
kStatus_Success | Upon allocate success. |
FLEXRAM allocate on-chip ram for OCRAM,ITCM,DTCM This function is independent of FLEXRAM_Init, it can be called directly if ram re-allocate is needed.
brief FLEXRAM allocate on-chip ram for OCRAM,ITCM,DTCM This function is independent of FLEXRAM_Init, it can be called directly if ram re-allocate is needed. param config allocate configuration. retval kStatus_InvalidArgument the argument is invalid kStatus_Success allocate success
config | Allocate configuration. |
kStatus_InvalidArgument | When the argument is invalid. |
kStatus_Success | Upon allocate success. |
brief FLEXRAM allocate on-chip ram for OCRAM,ITCM,DTCM This function is independent of FLEXRAM_Init, it can be called directly if ram re-allocate is needed. param config allocate configuration. retval kStatus_InvalidArgument the argument is invalid kStatus_Success allocate success
void FLEXRAM_Deinit | ( | FLEXRAM_Type * | base | ) |
De-initializes the FLEXRAM.
brief Deinitializes the FLEXRAM.
void FLEXRAM_Init | ( | FLEXRAM_Type * | base | ) |
FLEXRAM module initialization function.
base | FLEXRAM base address. |
brief FLEXRAM module initialization function.
param base FLEXRAM base address.
const uint8_t _flexram_allocate_ram::dtcmBankNum |
dtcm bank number to allocate, the number should be power of 2
DTCM bank number to allocate, the number should be power of 2.
const uint8_t _flexram_allocate_ram::itcmBankNum |
itcm bank number to allocate, the number should be power of 2
ITCM bank number to allocate, the number should be power of 2.
const uint8_t _flexram_allocate_ram::ocramBankNum |
ocram banknumber which the SOC support
OCRAM banknumber which the SOC support.