Functions that configure Instruction and Data cache.
More...
Functions that configure Instruction and Data cache.
◆ CCSIDR_SETS
◆ CCSIDR_WAYS
◆ SCB_CleanDCache()
Clean D-Cache.
Cleans D-Cache
Definition at line 2392 of file core_cm7.h.
2394 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2402 ccsidr =
SCB->CCSIDR;
2411 #if defined ( __CC_ARM )
2412 __schedule_barrier();
2414 }
while (ways-- != 0U);
2415 }
while(sets-- != 0U);
◆ SCB_CleanDCache_by_Addr()
__STATIC_INLINE void SCB_CleanDCache_by_Addr |
( |
uint32_t * |
addr, |
|
|
int32_t |
dsize |
|
) |
| |
D-Cache Clean by address.
Cleans D-Cache for the given address
- Parameters
-
[in] | addr | address (aligned to 32-byte boundary) |
[in] | dsize | size of memory block (in number of bytes) |
Definition at line 2491 of file core_cm7.h.
2493 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2494 int32_t op_size = dsize;
2495 uint32_t op_addr = (uint32_t) addr;
2496 int32_t linesize = 32;
2500 while (op_size > 0) {
2501 SCB->DCCMVAC = op_addr;
2502 op_addr += (uint32_t)linesize;
2503 op_size -= linesize;
◆ SCB_CleanInvalidateDCache()
Clean & Invalidate D-Cache.
Cleans and Invalidates D-Cache
Definition at line 2427 of file core_cm7.h.
2429 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2437 ccsidr =
SCB->CCSIDR;
2446 #if defined ( __CC_ARM )
2447 __schedule_barrier();
2449 }
while (ways-- != 0U);
2450 }
while(sets-- != 0U);
◆ SCB_CleanInvalidateDCache_by_Addr()
__STATIC_INLINE void SCB_CleanInvalidateDCache_by_Addr |
( |
uint32_t * |
addr, |
|
|
int32_t |
dsize |
|
) |
| |
D-Cache Clean and Invalidate by address.
Cleans and invalidates D_Cache for the given address
- Parameters
-
[in] | addr | address (aligned to 32-byte boundary) |
[in] | dsize | size of memory block (in number of bytes) |
Definition at line 2518 of file core_cm7.h.
2520 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2521 int32_t op_size = dsize;
2522 uint32_t op_addr = (uint32_t) addr;
2523 int32_t linesize = 32;
2527 while (op_size > 0) {
2528 SCB->DCCIMVAC = op_addr;
2529 op_addr += (uint32_t)linesize;
2530 op_size -= linesize;
◆ SCB_DisableDCache()
Disable D-Cache.
Turns off D-Cache
Definition at line 2319 of file core_cm7.h.
2321 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2332 ccsidr =
SCB->CCSIDR;
2341 #if defined ( __CC_ARM )
2342 __schedule_barrier();
2344 }
while (ways-- != 0U);
2345 }
while(sets-- != 0U);
◆ SCB_DisableICache()
Disable I-Cache.
Turns off I-Cache
Definition at line 2248 of file core_cm7.h.
2250 #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
◆ SCB_EnableDCache()
Enable D-Cache.
Turns on D-Cache
Definition at line 2281 of file core_cm7.h.
2283 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2291 ccsidr =
SCB->CCSIDR;
2300 #if defined ( __CC_ARM )
2301 __schedule_barrier();
2303 }
while (ways-- != 0U);
2304 }
while(sets-- != 0U);
◆ SCB_EnableICache()
Enable I-Cache.
Turns on I-Cache
Definition at line 2229 of file core_cm7.h.
2231 #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
◆ SCB_InvalidateDCache()
Invalidate D-Cache.
Invalidates D-Cache
Definition at line 2357 of file core_cm7.h.
2359 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2367 ccsidr =
SCB->CCSIDR;
2376 #if defined ( __CC_ARM )
2377 __schedule_barrier();
2379 }
while (ways-- != 0U);
2380 }
while(sets-- != 0U);
◆ SCB_InvalidateDCache_by_Addr()
__STATIC_INLINE void SCB_InvalidateDCache_by_Addr |
( |
uint32_t * |
addr, |
|
|
int32_t |
dsize |
|
) |
| |
D-Cache Invalidate by address.
Invalidates D-Cache for the given address
- Parameters
-
[in] | addr | address (aligned to 32-byte boundary) |
[in] | dsize | size of memory block (in number of bytes) |
Definition at line 2464 of file core_cm7.h.
2466 #if defined (__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
2467 int32_t op_size = dsize;
2468 uint32_t op_addr = (uint32_t)addr;
2469 int32_t linesize = 32;
2473 while (op_size > 0) {
2474 SCB->DCIMVAC = op_addr;
2475 op_addr += (uint32_t)linesize;
2476 op_size -= linesize;
◆ SCB_InvalidateICache()
Invalidate I-Cache.
Invalidates I-Cache
Definition at line 2265 of file core_cm7.h.
2267 #if defined (__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)