ARM: stm32f0: switch flash registers to volatile
Like other STM SoCs (L4 and F0), switch the flash registers struct to volatile. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
11c020ebf7
commit
071cff7fb5
1 changed files with 10 additions and 9 deletions
|
@ -37,15 +37,16 @@ union ef_acr {
|
|||
};
|
||||
|
||||
/* 3.3.5 Embedded flash registers */
|
||||
struct stm32_flash {
|
||||
union ef_acr acr;
|
||||
u32_t keyr;
|
||||
u32_t optkeyr;
|
||||
u32_t sr;
|
||||
u32_t cr;
|
||||
u32_t ar;
|
||||
u32_t obr;
|
||||
u32_t wrpr;
|
||||
struct stm32f0x_flash {
|
||||
volatile union ef_acr acr;
|
||||
volatile u32_t keyr;
|
||||
volatile u32_t optkeyr;
|
||||
volatile u32_t sr;
|
||||
volatile u32_t cr;
|
||||
volatile u32_t ar;
|
||||
volatile u32_t rsvd;
|
||||
volatile u32_t obr;
|
||||
volatile u32_t wrpr;
|
||||
};
|
||||
|
||||
#endif /* _STM32F0X_FLASH_REGISTERS_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue