STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
flash.h File Reference

Flash driver: access latency (wait states), prefetch and caches. More...

#include "driver_status.h"
#include "flash_reg.h"
#include <stdint.h>
Include dependency graph for flash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DRIVER_MUST_CHECK DriverStatus_e flashSetLatency (FlashRegisters_t *flash, uint32_t latency)
 Set the flash access latency and confirm it by reading it back.
void flashEnableCaches (FlashRegisters_t *flash)
 Turn on prefetch and the instruction and data caches.

Detailed Description

Flash driver: access latency (wait states), prefetch and caches.

rccSysclkSwitch() sets the latency as part of a SYSCLK change; callers rarely need flashSetLatency() directly.

if (flashSetLatency(FLASH, 5U) != DRIVER_STATUS_OK) { ... } // 180 MHz at 2.7-3.6 V
@ DRIVER_STATUS_OK
Succeeded.
DRIVER_MUST_CHECK DriverStatus_e flashSetLatency(FlashRegisters_t *flash, uint32_t latency)
Set the flash access latency and confirm it by reading it back.
Definition flash.c:12
void flashEnableCaches(FlashRegisters_t *flash)
Turn on prefetch and the instruction and data caches.
Definition flash.c:40
#define FLASH
The Flash interface instance.
Definition flash_reg.h:36

Definition in file flash.h.