IRQHandlers now reset the flag directly

This commit is contained in:
Yohan Boujon 2023-03-21 16:27:56 +01:00
parent 5c8ef23fd2
commit eff1ffc947
2 changed files with 5 additions and 19 deletions

View file

@ -88,23 +88,26 @@ void TIM1_CC_IRQHandler(void)
{
if (pFnc != 0)
(*pFnc) (); /* appel indirect de la fonction */
TIM1->SR &= ~(0x1<<UIF);//reset flag
}
void TIM2_IRQHandler(void)
{
if (pFnc != 0)
(*pFnc) (); /* appel indirect de la fonction */
TIM2->SR &= ~(0x1<<UIF);
TIM2->SR &= ~(0x1<<UIF);//reset flag
}
void TIM3_IRQHandler(void)
{
if (pFnc != 0)
(*pFnc) (); /* appel indirect de la fonction */
TIM3->SR &= ~(0x1<<UIF);//reset flag
}
void TIM4_IRQHandler(void)
{
if (pFnc != 0)
(*pFnc) (); /* appel indirect de la fonction */
TIM4->SR &= ~(0x1<<UIF);//reset flag
}

View file

@ -335,24 +335,7 @@
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_128 -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM))</Name>
</SetRegEntry>
</TargetDriverDllRegistry>
<Breakpoint>
<Bp>
<Number>0</Number>
<Type>0</Type>
<LineNumber>6</LineNumber>
<EnabledFlag>1</EnabledFlag>
<Address>0</Address>
<ByteObject>0</ByteObject>
<HtxType>0</HtxType>
<ManyObjects>0</ManyObjects>
<SizeOfObject>0</SizeOfObject>
<BreakByAccess>0</BreakByAccess>
<BreakIfRCount>0</BreakIfRCount>
<Filename>.\Source\Principale.c</Filename>
<ExecCommand></ExecCommand>
<Expression></Expression>
</Bp>
</Breakpoint>
<Breakpoint/>
<WatchWindow1>
<Ww>
<count>0</count>