STM32 RTOS 0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Loading...
Searching...
No Matches
flash.h
Go to the documentation of this file.
1
12#ifndef FLASH_H
13#define FLASH_H
14
15#include "driver_status.h"
16#include "flash_reg.h"
17
18#include <stdint.h>
19
24
41
51
53
54#endif /* FLASH_H */
The status every fallible driver function returns.
Flash interface registers: access latency, prefetch and caches (RM0390 section 3.8).
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
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
Flash interface register block.
Definition flash_reg.h:26