aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-13 08:18:23 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-13 08:18:23 +0000
commit1e928debb351c32e8f17998552ab4ce453f1a78e (patch)
treedff1d168d8ec958f0329d8f461ce7032a0fffa51 /testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c
parent7e5f127c41b8fb167e6dfb834a4a39bb8cc35bbf (diff)
downloadChibiOS-1e928debb351c32e8f17998552ab4ce453f1a78e.tar.gz
ChibiOS-1e928debb351c32e8f17998552ab4ce453f1a78e.tar.bz2
ChibiOS-1e928debb351c32e8f17998552ab4ce453f1a78e.zip
Fixed bug #533.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7264 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c')
-rw-r--r--testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c
index 7ec769a9c..ad81f8b48 100644
--- a/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c
+++ b/testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c
@@ -147,6 +147,12 @@ static const GPTConfig gpt3cfg = {
/* Generic demo code. */
/*===========================================================================*/
+CH_FAST_IRQ_HANDLER(Vector184) {
+
+ while (1)
+ ;
+}
+
static void print(char *p) {
while (*p) {
@@ -183,6 +189,9 @@ int main(void) {
unsigned i;
gptcnt_t interval, threshold, worst;
+ /* Enables FPU exceptions.*/
+ nvicEnableVector(FPU_IRQn, 1);
+
/*
* System initializations.
* - HAL initialization, this also initializes the configured device drivers