From eff1ffc9473aecd3d03b76222b747a2d9097a497 Mon Sep 17 00:00:00 2001 From: Yohan Boujon Date: Tue, 21 Mar 2023 16:27:56 +0100 Subject: [PATCH] IRQHandlers now reset the flag directly --- ProjetsKEIL/Drivers/timerdriver.c | 5 ++++- .../timer_interruption.uvoptx | 19 +------------------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/ProjetsKEIL/Drivers/timerdriver.c b/ProjetsKEIL/Drivers/timerdriver.c index c87aa10..75a8721 100644 --- a/ProjetsKEIL/Drivers/timerdriver.c +++ b/ProjetsKEIL/Drivers/timerdriver.c @@ -88,23 +88,26 @@ void TIM1_CC_IRQHandler(void) { if (pFnc != 0) (*pFnc) (); /* appel indirect de la fonction */ + TIM1->SR &= ~(0x1<SR &= ~(0x1<SR &= ~(0x1<SR &= ~(0x1<SR &= ~(0x1<UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_128 -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM)) - - - 0 - 0 - 6 - 1 -
0
- 0 - 0 - 0 - 0 - 0 - 0 - .\Source\Principale.c - - -
-
+ 0