ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_cache.h
Go to the documentation of this file.
1
52
53#pragma once
54
55#ifdef __cplusplus
56extern "C" {
57#endif
58
59#include <stdint.h>
60
61#include "ra8_err.h"
62
82[[nodiscard]] uint32_t ra8_cache_dcache_line_bytes(void);
83
108ra8_err_t ra8_cache_dcache_clean_by_addr(const void* addr, uint32_t size);
109
135ra8_err_t ra8_cache_dcache_invalidate_by_addr(const void* addr, uint32_t size);
136
160ra8_err_t ra8_cache_dcache_clean_invalidate_by_addr(const void* addr, uint32_t size);
161
185
208
227void ra8_cache_icache_enable(void);
228
246void ra8_cache_icache_disable(void);
247
269void ra8_cache_dcache_enable(void);
270
291void ra8_cache_dcache_disable(void);
292
315void ra8_cache_enable(void);
316
317#ifdef __cplusplus
318}
319#endif
void ra8_cache_dcache_disable(void)
Disable the Cortex-M85 L1 data cache, cleaning dirty lines (CCR.DC).
Definition ra8_cache.c:299
void ra8_cache_icache_disable(void)
Disable the Cortex-M85 L1 instruction cache and invalidate it (CCR.IC).
Definition ra8_cache.c:272
ra8_err_t ra8_cache_dcache_invalidate_by_addr(const void *addr, uint32_t size)
Invalidate (drop) the D-cache lines covering a byte range.
Definition ra8_cache.c:185
void ra8_cache_icache_invalidate_all(void)
Invalidate the entire Cortex-M85 L1 instruction cache (ICIALLU).
Definition ra8_cache.c:248
uint32_t ra8_cache_dcache_line_bytes(void)
Smallest Cortex-M85 D-cache line size, in bytes.
Definition ra8_cache.c:97
void ra8_cache_icache_enable(void)
Invalidate then enable the Cortex-M85 L1 instruction cache (CCR.IC).
Definition ra8_cache.c:260
void ra8_cache_enable(void)
Enable both Cortex-M85 L1 caches (I-cache then D-cache).
Definition ra8_cache.c:310
ra8_err_t ra8_cache_dcache_clean_by_addr(const void *addr, uint32_t size)
Clean (write back) the D-cache lines covering a byte range.
Definition ra8_cache.c:180
void ra8_cache_dcache_invalidate_all(void)
Invalidate the entire D-cache by set/way.
Definition ra8_cache.c:243
ra8_err_t ra8_cache_dcache_clean_invalidate_by_addr(const void *addr, uint32_t size)
Clean and invalidate the D-cache lines covering a byte range.
Definition ra8_cache.c:190
void ra8_cache_dcache_enable(void)
Invalidate then enable the Cortex-M85 L1 data cache (CCR.DC).
Definition ra8_cache.c:286
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546