aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/STM32F4xx
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-02-23 09:56:01 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-02-23 09:56:01 +0000
commit13f3a2a253cd06673f5ec3fcdafaaad753cb35cf (patch)
treed0c19976dddad0ab471ee74641f3f7fa97adb393 /os/hal/ports/STM32/STM32F4xx
parentc716b58ebcd26e3d96d6d339449b7dfe0fefb090 (diff)
downloadChibiOS-13f3a2a253cd06673f5ec3fcdafaaad753cb35cf.tar.gz
ChibiOS-13f3a2a253cd06673f5ec3fcdafaaad753cb35cf.tar.bz2
ChibiOS-13f3a2a253cd06673f5ec3fcdafaaad753cb35cf.zip
Fixed bug #918.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11542 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/STM32/STM32F4xx')
-rw-r--r--os/hal/ports/STM32/STM32F4xx/hal_lld.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/os/hal/ports/STM32/STM32F4xx/hal_lld.h b/os/hal/ports/STM32/STM32F4xx/hal_lld.h
index 2df64083c..6125c9a31 100644
--- a/os/hal/ports/STM32/STM32F4xx/hal_lld.h
+++ b/os/hal/ports/STM32/STM32F4xx/hal_lld.h
@@ -1961,8 +1961,10 @@
#define STM32_FLASHBITS 0x00000006
#elif STM32_HCLK <= STM32_7WS_THRESHOLD
#define STM32_FLASHBITS 0x00000007
-#else
+#elif STM32_HCLK <= STM32_8WS_THRESHOLD
#define STM32_FLASHBITS 0x00000008
+#else
+#error "invalid frequency at specified VDD level"
#endif
/* There are differences in vector names in the various sub-families,