summaryrefslogtreecommitdiff
path: root/ucoo/arch/reg.stm32f4.hh
diff options
context:
space:
mode:
authorNicolas Schodet2017-02-28 10:34:09 +0100
committerNicolas Schodet2019-10-09 23:05:51 +0200
commit969284df3091116caedc39f66fe7833a19d8fbee (patch)
tree9b90d274f9851ce86b3f1ee75abe5d06510cba55 /ucoo/arch/reg.stm32f4.hh
parentea5c86569380f4d09d8bc68c5131620c332d904c (diff)
ucoo/hal/self_programming: program flash 8 by 8 bits on STM32F4HEADmaster
This is a temporary fix for low voltage boards. This should be updated to use the fastest parallelism possible according to actual supply voltage.
Diffstat (limited to 'ucoo/arch/reg.stm32f4.hh')
-rw-r--r--ucoo/arch/reg.stm32f4.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ucoo/arch/reg.stm32f4.hh b/ucoo/arch/reg.stm32f4.hh
index 6cedaba..cd5d8fb 100644
--- a/ucoo/arch/reg.stm32f4.hh
+++ b/ucoo/arch/reg.stm32f4.hh
@@ -70,6 +70,7 @@
#define USB_OTG_DIEPTSIZ_PKTCNT_Pos 19
#define FLASH_CR_PSIZE_x32 FLASH_CR_PSIZE_1
+#define FLASH_CR_PSIZE_x8 0
#define FMC_SDCR_RPIPE_None 0
#define FMC_SDCR_RPIPE_1Clk FMC_SDCR1_RPIPE_0