STM32 RTOS
0.2.3
Bare-metal preemptive RTOS for STM32F446RE
Toggle main menu visibility
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
40
DRIVER_MUST_CHECK
DriverStatus_e
flashSetLatency
(
FlashRegisters_t
*flash, uint32_t latency);
41
50
void
flashEnableCaches
(
FlashRegisters_t
*flash);
51
53
54
#endif
/* FLASH_H */
driver_status.h
The status every fallible driver function returns.
flash_reg.h
Flash interface registers: access latency, prefetch and caches (RM0390 section 3.8).
DriverStatus_e
DriverStatus_e
Outcome of a driver call: a category for control flow, not a diagnosis.
Definition
driver_status.h:32
DRIVER_MUST_CHECK
#define DRIVER_MUST_CHECK
Make ignoring a function's result a compile error (with -Werror).
Definition
driver_status.h:22
flashSetLatency
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
flashEnableCaches
void flashEnableCaches(FlashRegisters_t *flash)
Turn on prefetch and the instruction and data caches.
Definition
flash.c:40
FlashRegisters_t
Flash interface register block.
Definition
flash_reg.h:26
drivers
inc
flash.h
Generated by
1.18.0