stm32h7: make cache initialization function public

Change-Id: I460887977f18bfb411d33b6d4efc24ac04cb4050
This commit is contained in:
Aidan MacDonald 2026-01-15 01:27:57 +00:00
parent 62332841cf
commit 9471cec2ab
2 changed files with 5 additions and 2 deletions

View file

@ -52,7 +52,7 @@ static uint32_t systick_interval_in_ms = SYSTICK_INTERVAL_INITIAL;
/* Base address of vector table */
extern char __vectors_arm[];
static void stm_enable_caches(void)
void stm32_enable_caches(void)
{
__discard_idcache();
@ -112,7 +112,7 @@ void system_init(void)
reg_var(CM_SCB_VTOR) = (uint32_t)__vectors_arm;
/* Enable CPU caches */
stm_enable_caches();
stm32_enable_caches();
/* Initialize system clocks */
stm_clock_init();

View file

@ -25,6 +25,9 @@
#include "cpucache-armv7m.h"
#include <stdbool.h>
/* Enable CPU caches. Must be called after a reset. */
void stm32_enable_caches(void) INIT_ATTR;
/* Enables the SysTick timer -- SysTick interrupt won't be enabled */
void stm32_systick_enable(void);