diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2019-03-19 12:56:52 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <v.eriksen@diinef.com> | 2019-03-19 13:02:30 +0100 |
commit | 6572616a6b4bded686a22377d839cef7506de24d (patch) | |
tree | f2cc96b9eddafdc6dd29c9ae4f7feb54dda8fa9d /rcc/flash.h | |
parent | f1475a7e6cb3077781199981bc3ee74e4ba29b86 (diff) |
Added STM32F042 support.
Diffstat (limited to 'rcc/flash.h')
-rw-r--r-- | rcc/flash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rcc/flash.h b/rcc/flash.h index c1f7c1c..789c090 100644 --- a/rcc/flash.h +++ b/rcc/flash.h @@ -4,7 +4,7 @@ #include <stdint.h> struct FLASH_t { - #if defined(STM32F1) || defined(STM32F3) + #if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) volatile uint32_t ACR; volatile uint32_t KEYR; volatile uint32_t OPTKEYR; @@ -34,7 +34,7 @@ struct FLASH_t { #endif }; -#if defined(STM32F1) || defined(STM32F3) +#if defined(STM32F0) || defined(STM32F1) || defined(STM32F3) static FLASH_t& FLASH = *(FLASH_t*)0x40022000; #elif defined(STM32F4) static FLASH_t& FLASH = *(FLASH_t*)0x40023c00; |