forked from trocache/RefKEIL
IRQHandlers now reset the flag directly
This commit is contained in:
parent
5c8ef23fd2
commit
eff1ffc947
2 changed files with 5 additions and 19 deletions
|
@ -88,23 +88,26 @@ void TIM1_CC_IRQHandler(void)
|
||||||
{
|
{
|
||||||
if (pFnc != 0)
|
if (pFnc != 0)
|
||||||
(*pFnc) (); /* appel indirect de la fonction */
|
(*pFnc) (); /* appel indirect de la fonction */
|
||||||
|
TIM1->SR &= ~(0x1<<UIF);//reset flag
|
||||||
}
|
}
|
||||||
|
|
||||||
void TIM2_IRQHandler(void)
|
void TIM2_IRQHandler(void)
|
||||||
{
|
{
|
||||||
if (pFnc != 0)
|
if (pFnc != 0)
|
||||||
(*pFnc) (); /* appel indirect de la fonction */
|
(*pFnc) (); /* appel indirect de la fonction */
|
||||||
TIM2->SR &= ~(0x1<<UIF);
|
TIM2->SR &= ~(0x1<<UIF);//reset flag
|
||||||
}
|
}
|
||||||
|
|
||||||
void TIM3_IRQHandler(void)
|
void TIM3_IRQHandler(void)
|
||||||
{
|
{
|
||||||
if (pFnc != 0)
|
if (pFnc != 0)
|
||||||
(*pFnc) (); /* appel indirect de la fonction */
|
(*pFnc) (); /* appel indirect de la fonction */
|
||||||
|
TIM3->SR &= ~(0x1<<UIF);//reset flag
|
||||||
}
|
}
|
||||||
|
|
||||||
void TIM4_IRQHandler(void)
|
void TIM4_IRQHandler(void)
|
||||||
{
|
{
|
||||||
if (pFnc != 0)
|
if (pFnc != 0)
|
||||||
(*pFnc) (); /* appel indirect de la fonction */
|
(*pFnc) (); /* appel indirect de la fonction */
|
||||||
|
TIM4->SR &= ~(0x1<<UIF);//reset flag
|
||||||
}
|
}
|
||||||
|
|
|
@ -335,24 +335,7 @@
|
||||||
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_128 -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM))</Name>
|
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_128 -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM))</Name>
|
||||||
</SetRegEntry>
|
</SetRegEntry>
|
||||||
</TargetDriverDllRegistry>
|
</TargetDriverDllRegistry>
|
||||||
<Breakpoint>
|
<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>
|
|
||||||
<WatchWindow1>
|
<WatchWindow1>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>0</count>
|
<count>0</count>
|
||||||
|
|
Loading…
Reference in a new issue