diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-11-19 19:11:57 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-11-19 19:11:57 +0100 |
commit | ac17bb052b9056122dbae6867d4c5252c8eafb47 (patch) | |
tree | 147c586118903f9df3a4df98f880cc14045ad3f1 /rcc/flash.h | |
parent | 2abe655e4b7b49377c6cb43d6959c897866ed4c2 (diff) |
Added support for F3.
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 30d30a5..abb3484 100644 --- a/rcc/flash.h +++ b/rcc/flash.h @@ -9,7 +9,7 @@ struct FLASH_t { volatile uint32_t OPTKEYR; volatile uint32_t SR; volatile uint32_t CR; - #if defined(STM32F1) + #if defined(STM32F1) || defined(STM32F3) volatile uint32_t AR; volatile uint32_t RESERVED; volatile uint32_t OBR; @@ -19,7 +19,7 @@ struct FLASH_t { #endif }; -#if defined(STM32F1) +#if defined(STM32F1) || defined(STM32F3) static FLASH_t& FLASH = *(FLASH_t*)0x40022000; #elif defined(STM32F4) static FLASH_t& FLASH = *(FLASH_t*)0x40023c00; |