diff options
Diffstat (limited to 'testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c')
-rw-r--r-- | testhal/STM32/STM32F4xx/IRQ_STORM_FPU/main.c | 9 |
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
|