embassy-stm32

Crates

git

Versions

stm32n645i0

Flavors

Skip to main content

mcu_invalidate_range

Function mcu_invalidate_range 

Source
pub fn mcu_invalidate_range(start: u32, len: u32)
Expand description

Invalidate the CPU data cache for [start, start + len). Equivalent of LL_ATON_Cache_MCU_Invalidate_Range. Call after the NPU writes an output buffer and before the CPU reads it.

start/len should be 32-byte aligned; unaligned edges are cleaned and invalidated to avoid corrupting neighbouring data.