Texas Instruments TMS320C6000 Reference Manual page 53

Chip support library api
Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

4.2.3
CACHE_Flush
Function
Arguments
Return Value
Description
Example
4.2.4
CACHE_GetL2SramSize
Function
Arguments
Return Value
Description
Example
Flushes a region of cache
void CACHE_Flush(
CACHE_REGION Region,
UINT32 Addr,
UINT32 WordCt
);
Specifies which cache region to flush from; must be one
Region
of the following:
CACHE_L2
CACHE_L2ALL
CACHE_L1D
Starting address of memory range to flush
Addr
Beginning address of range to flush; word aligned
WordCt
Number of 4-byte words to flush
none
Flushes a range of L2 cache. All lines within the range defined by
Addr and WordCt are flushed out of L2. If CACHE_L2ALL is specified,
then all of L2 is flushed; Addr and WordCt are ignored. A flush opera-
tion involves writing back all dirty cache lines, but the lines are not in-
validated. This routine waits until the operation completes before re-
turning.
Note: This function does nothing on devices without L2 cache.
If you want to flush a 4K-byte range that starts at 0x80000000 out of
L2, use:
CACHE_Flush(CACHE_L2,0x80000000,0x00000400);
If you want to flush all lines out of L2, use:
CACHE_Flush(CACHE_L2ALL,0x00000000,0x00000000);
Returns current L2 size configured as SRAM
UINT32 CACHE_GetL2SramSize();
none
Returns number of bytes of on-chip SRAM
size
This function returns the current size of L2 that is configured as SRAM.
Note: This function does nothing on devices without L2 cache.
SramSize = CACHE_GetL2SramSize();
CSL API Reference
CACHE
4-5

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C6000 and is the answer not in the manual?

Table of Contents