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_ACR_LATENCY_000_024MHZ 0 |
#define | FLASH_ACR_LATENCY_024_048MHZ 1 |
#define | FLASH_ACR_LATENCY_048_072MHZ 2 |
#define | FLASH_ACR_LATENCY_0WS 0 |
#define | FLASH_ACR_LATENCY_1WS 1 |
#define | FLASH_ACR_LATENCY_2WS 1 |
#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_CR_OBL_LAUNCH (1 << 13) |
#define | FLASH_OBR_DATA1_SHIFT 24 |
#define | FLASH_OBR_DATA1 (0xFF << FLASH_OBR_DATA1_SHIFT) |
#define | FLASH_OBR_DATA0_SHIFT 16 |
#define | FLASH_OBR_DATA0 (0xFF << FLASH_OBR_DATA0_SHIFT) |
#define | FLASH_OBR_USER_SHIFT 8 |
#define | FLASH_OBR_USER (0xFF << FLASH_OBR_USER_SHIFT) |
#define | FLASH_OBR_RDPRT (3 << FLASH_OBR_RDPRT_SHIFT) |
#define | FLASH_OBR_RDPRT_L0 (0 << FLASH_OBR_RDPRT_SHIFT) |
#define | FLASH_OBR_RDPRT_L1 (1 << FLASH_OBR_RDPRT_SHIFT) |
#define | FLASH_OBR_RDPRT_L2 (3 << FLASH_OBR_RDPRT_SHIFT) |
#define | FLASH_RDP_L0 ((uint8_t)0xa5) |
#define | FLASH_RDP_L1 ((uint8_t)0xf0) /* any value */ |
#define | FLASH_RDP_L2 ((uint8_t)0xcc) |