aboutsummaryrefslogtreecommitdiffstats
path: root/src/cc32/cc32_flcon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cc32/cc32_flcon.c')
-rw-r--r--src/cc32/cc32_flcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cc32/cc32_flcon.c b/src/cc32/cc32_flcon.c
index fc9ff1c..0a82aed 100644
--- a/src/cc32/cc32_flcon.c
+++ b/src/cc32/cc32_flcon.c
@@ -33,7 +33,7 @@ enum cc32_flcon_reg {
FLBUF = 0x10,
};
-#define FLCON_REG(x) (uint32_t *)((uint8_t *)CC32_FLCON_BASE + x)
+#define FLCON_REG(x) (volatile uint32_t *)((uint8_t *)CC32_FLCON_BASE + x)
int cc32_flash_erase(uint32_t offset, uint16_t page_size)