Driverlib FRI API
Module: Driverlib (AM13E230X) APIs
Functions
Name |
|
|---|---|
__STATIC_INLINE void |
DL_FRI_setCacheConfig(uint32_t dataLineBuffer, uint32_t Cache) |
__STATIC_INLINE uint32_t |
DL_FRI_getCacheConfig(void ) |
__STATIC_INLINE void |
DL_FRI_enableECC(void ) |
__STATIC_INLINE void |
DL_FRI_disableECC(void ) |
__STATIC_INLINE void |
DL_FRI_setECCTestMode(uint32_t mode) |
void |
DL_FRI_enableDLB(void ) |
void |
DL_FRI_disableDLB(void ) |
void |
DL_FRI_enableCache(void ) |
void |
DL_FRI_disableCache(void ) |
void |
DL_FRI_setZeroReadWaitStates(void ) |
void |
DL_FRI_setReadWaitStates(uint32_t states) |
__STATIC_INLINE uint32_t |
DL_FRI_getReadWaitStates(void ) |
Defines
Name |
|
|---|---|
DL_FRI_DLB_ENABLED |
|
DL_FRI_DLB_DISABLED |
|
DL_FRI_CACHE_ENABLED |
|
DL_FRI_CACHE_DISABLED |
|
DL_FRI_ECC_TEST_MODE_DISABLE |
|
DL_FRI_ECC_TEST_MODE_ENABLE_1_BIT |
|
DL_FRI_ECC_TEST_MODE_ENABLE_2_BIT |
|
DL_FRI_ZERO_WAIT_STATES |
|
DL_FRI_ECC_ENABLE |
|
DL_FRI_ECC_DISABLE |
Detailed Description
The FRI module manage the Flash read interface.
Functions Documentation
function DL_FRI_setCacheConfig
__STATIC_INLINE void DL_FRI_setCacheConfig(
uint32_t dataLineBuffer,
uint32_t Cache
)
Configures caching in flash accesses and the data line buffer on the DMA data read access path.
Parameters:
dataLineBuffer [in] data line buffer option [DL_FRI_DLB]
Cache [in] cache option [DL_FRI_CACHE]
function DL_FRI_getCacheConfig
__STATIC_INLINE uint32_t DL_FRI_getCacheConfig(
void
)
Returns data line buffer and cache configuration.
Return: Bitwise OR of [DL_FRI_DLB] and [DL_FRI_CACHE]
function DL_FRI_enableECC
__STATIC_INLINE void DL_FRI_enableECC(
void
)
Enable Flash ECC.
function DL_FRI_disableECC
__STATIC_INLINE void DL_FRI_disableECC(
void
)
Disable Flash ECC.
function DL_FRI_setECCTestMode
__STATIC_INLINE void DL_FRI_setECCTestMode(
uint32_t mode
)
Set Flash ECC Test Mode.
Parameters:
mode One of [DL_FRI_ECC_TEST_MODE]
function DL_FRI_enableDLB
void DL_FRI_enableDLB(
void
)
Enable the data line buffer on the DMA data read access path.
function DL_FRI_disableDLB
void DL_FRI_disableDLB(
void
)
Disable the data line buffer on the DMA data read access path.
function DL_FRI_enableCache
void DL_FRI_enableCache(
void
)
Enable Flash Cache on the CPU access path, applicable for both code fetches as well as data reads.
function DL_FRI_disableCache
void DL_FRI_disableCache(
void
)
Disable Flash Cache on the CPU access path, applicable for both code fetches as well as data reads.
function DL_FRI_setZeroReadWaitStates
void DL_FRI_setZeroReadWaitStates(
void
)
Set the number of wait states to zero for a flash read/fetch access.
Changes the number of wait states used by the Flash controller to zero
function DL_FRI_setReadWaitStates
void DL_FRI_setReadWaitStates(
uint32_t states
)
Set the number of wait states added to a flash read/fetch access.
Parameters:
states Number of wait states to set. Recommended values are based on the system clock speed:
< 50MHZ : 0 wait state
50MHz - 100MHz: 1 wait state
100MHz - 150MHz: 2 wait states
150MHz - 200MHz: 3 wait states
Changes the number of wait states used by the Flash controller. When changing the frequency of the clock, the number of wait states may need to be updated. The RWAIT(states) value can be set anywhere from 0 to 0xF. For a flash access, data is returned in RWAIT+1 SYSCLK cycles.
function DL_FRI_getReadWaitStates
__STATIC_INLINE uint32_t DL_FRI_getReadWaitStates(
void
)
Get the number of wait states used by the Flash.
Return: The number of wait states used by the Flash
Macros Documentation
define DL_FRI_DLB_ENABLED
#define DL_FRI_DLB_ENABLED ((uint32_t)0x00000002U)
Enables DATA line buffer on the DMA data read access path.
define DL_FRI_DLB_DISABLED
#define DL_FRI_DLB_DISABLED ((uint32_t)0x00000000U)
Disables DATA line buffer on the DMA data read access path.
define DL_FRI_CACHE_ENABLED
#define DL_FRI_CACHE_ENABLED ((uint32_t)0x00000004U)
Enables cache on the CPU access path.
define DL_FRI_CACHE_DISABLED
#define DL_FRI_CACHE_DISABLED ((uint32_t)0x00000000U)
Disables cache on the CPU access path.
define DL_FRI_ECC_TEST_MODE_DISABLE
#define DL_FRI_ECC_TEST_MODE_DISABLE ((uint32_t)0x00000000U)
Disables TEST MODE FOR ECC.
define DL_FRI_ECC_TEST_MODE_ENABLE_1_BIT
#define DL_FRI_ECC_TEST_MODE_ENABLE_1_BIT ((uint32_t)0x00000001U)
Enables TEST MODE FOR ECC with 1 bit error.
define DL_FRI_ECC_TEST_MODE_ENABLE_2_BIT
#define DL_FRI_ECC_TEST_MODE_ENABLE_2_BIT ((uint32_t)0x00000003U)
Enables TEST MODE FOR ECC with 2 bits error.
define DL_FRI_ZERO_WAIT_STATES
#define DL_FRI_ZERO_WAIT_STATES ((uint32_t)0x0U)
Set zero Wait State.
define DL_FRI_ECC_ENABLE
#define DL_FRI_ECC_ENABLE ((uint32_t)0x0000000AU)
Enables ECC.
define DL_FRI_ECC_DISABLE
#define DL_FRI_ECC_DISABLE ((uint32_t)0x00000000U)
Disables ECC.