stm32: f4: Add FLASH_OPTCR1 definition

This is required for stm32f42xx and stm32f43xx with second bank options.
This commit is contained in:
Karl Palsson
2014-12-17 17:23:45 +00:00
parent 14ad92015e
commit c09d2583dd

View File

@@ -45,6 +45,7 @@
/* --- FLASH registers ----------------------------------------------------- */
#define FLASH_OPTCR MMIO32(FLASH_MEM_INTERFACE_BASE + 0x14)
#define FLASH_OPTCR1 MMIO32(FLASH_MEM_INTERFACE_BASE + 0x18)
/* --- FLASH_ACR values ---------------------------------------------------- */
@@ -104,6 +105,10 @@
#define FLASH_OPTCR_BOR_LEVEL_1 (0x02 << 2)
#define FLASH_OPTCR_BOR_OFF (0x03 << 2)
/* --- FLASH_OPTCR1 values ------------------------------------------------- */
/* Only on some devices */
/* FLASH_OPTCR1[27:16]: nWRP bank 2 */
/* --- FLASH Keys -----------------------------------------------------------*/
#define FLASH_OPTKEYR_KEY1 ((uint32_t)0x08192a3b)