libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/common/flash_common_all.h>
#include <libopencm3/stm32/common/flash_common_f.h>
#include <libopencm3/stm32/common/flash_common_f01.h>
Go to the source code of this file.
Macros | |
#define | FLASH_OPTION_BYTE_0 FLASH_OPTION_BYTE(0) |
#define | FLASH_OPTION_BYTE_1 FLASH_OPTION_BYTE(1) |
#define | FLASH_OPTION_BYTE_2 FLASH_OPTION_BYTE(2) |
#define | FLASH_OPTION_BYTE_3 FLASH_OPTION_BYTE(3) |
#define | FLASH_OPTION_BYTE_4 FLASH_OPTION_BYTE(4) |
#define | FLASH_OPTION_BYTE_5 FLASH_OPTION_BYTE(5) |
#define | FLASH_OPTION_BYTE_6 FLASH_OPTION_BYTE(6) |
#define | FLASH_OPTION_BYTE_7 FLASH_OPTION_BYTE(7) |
#define | FLASH_ACR_LATENCY_0WS 0x00 |
#define | FLASH_ACR_LATENCY_1WS 0x01 |
#define | FLASH_ACR_LATENCY_2WS 0x02 |
#define | FLASH_ACR_HLFCYA (1 << 3) |
#define | FLASH_SR_EOP (1 << 5) |
#define | FLASH_SR_WRPRTERR (1 << 4) |
#define | FLASH_SR_PGERR (1 << 2) |
#define | FLASH_SR_BSY (1 << 0) |
#define | FLASH_OBR_NRST_STDBY (1 << 4) |
#define | FLASH_OBR_NRST_STOP (1 << 3) |
#define | FLASH_OBR_WDG_SW (1 << 2) |
#define | FLASH_OBR_RDPRT_EN (1 << FLASH_OBR_RDPRT_SHIFT) |
#define | FLASH_RDP_KEY ((uint16_t)0x00a5) |
Functions | |
void | flash_halfcycle_enable (void) |
Enable the FLASH Half Cycle Mode. More... | |
void | flash_halfcycle_disable (void) |
Disable the FLASH Half Cycle Mode. More... | |
void | flash_unlock_upper (void) |
Unlock the Flash Program and Erase Controller, upper Bank. More... | |
void | flash_lock_upper (void) |
Lock the Flash Program and Erase Controller, upper Bank. More... | |
void | flash_clear_pgerr_flag_upper (void) |
Clear the Programming Error Status Flag, upper Bank. More... | |
void | flash_clear_eop_flag_upper (void) |
Clear the End of Operation Status Flag, upper Bank. More... | |
void | flash_clear_wrprterr_flag_upper (void) |
Clear the Write Protect Error Status Flag, upper Bank. More... | |