diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-11 00:01:52 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-07 20:15:45 -0700 |
commit | 56a7cbbf51f5c9ebbfe17d1cc30ed807572af3cc (patch) | |
tree | 2538f7c91b590034910b87e570843af4c4b851f7 /src/stm/stm32l.h | |
parent | c9c35b100c3fcae661501d2bf89eedc7fceb2e1c (diff) |
altos: Add program flash function
And get it loaded to RAM so it can execute correctly.
Nothing calls it yet...
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/stm32l.h')
-rw-r--r-- | src/stm/stm32l.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm/stm32l.h b/src/stm/stm32l.h index 5c0748a6..63bde0f8 100644 --- a/src/stm/stm32l.h +++ b/src/stm/stm32l.h @@ -435,6 +435,9 @@ extern struct stm_flash stm_flash; #define STM_FLASH_PEKEYR_PEKEY1 0x89ABCDEF #define STM_FLASH_PEKEYR_PEKEY2 0x02030405 +#define STM_FLASH_PRGKEYR_PRGKEY1 0x8C9DAEBF +#define STM_FLASH_PRGKEYR_PRGKEY2 0x13141516 + struct stm_rcc { vuint32_t cr; vuint32_t icscr; |