From b97f1705ce5ab84868b8f6649f82cff07e32e6e1 Mon Sep 17 00:00:00 2001 From: Steve Karg Date: Wed, 6 Nov 2024 08:17:23 -0600 Subject: [PATCH] Systick Interrupt should never be activated using NVIC_EnableIRQ because it's an system exception (#850) --- ports/stm32f10x/mstimer-init.c | 1 - ports/stm32f4xx/mstimer-init.c | 1 - 2 files changed, 2 deletions(-) diff --git a/ports/stm32f10x/mstimer-init.c b/ports/stm32f10x/mstimer-init.c index dad6ae89..a4a4563d 100644 --- a/ports/stm32f10x/mstimer-init.c +++ b/ports/stm32f10x/mstimer-init.c @@ -48,5 +48,4 @@ void mstimer_init(void) /* config error? return 1 = failed, 0 = successful */ } } - NVIC_EnableIRQ(SysTick_IRQn); } diff --git a/ports/stm32f4xx/mstimer-init.c b/ports/stm32f4xx/mstimer-init.c index 045f5f73..660927b0 100644 --- a/ports/stm32f4xx/mstimer-init.c +++ b/ports/stm32f4xx/mstimer-init.c @@ -50,5 +50,4 @@ void mstimer_init(void) /* config error? return 1 = failed, 0 = successful */ } } - NVIC_EnableIRQ(SysTick_IRQn); }