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:
Neil Armstrong 2017-12-04 14:08:37 +01:00 committed by Kumar Gala
commit 071cff7fb5

View file

@ -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_ */