diff --git a/soft/PjtKEIL_StepSon/Src/GestionSon.s b/soft/PjtKEIL_StepSon/Src/GestionSon.s index 9ed1fa5..2ed1833 100644 --- a/soft/PjtKEIL_StepSon/Src/GestionSon.s +++ b/soft/PjtKEIL_StepSon/Src/GestionSon.s @@ -37,15 +37,8 @@ CallBackSon proc ldr r2, [r2] cmp r1, r2 - bne FIN_Son + beq FIN_Son - - mov r0, #0 - ldr r2, =SortieSon - str r0, [r2] - bx lr - -FIN_Son add r1, #1 str r1, [r0] sub r1, #1 @@ -65,6 +58,12 @@ FIN_Son bl PWM_Set_Value_TIM3_Ch3 + bx lr + +FIN_Son + mov r0, #0 + ldr r2, =SortieSon + str r0, [r2] bx lr endp diff --git a/soft/PjtKEIL_StepSon/StepSon.uvoptx b/soft/PjtKEIL_StepSon/StepSon.uvoptx index cea4e8b..282b338 100644 --- a/soft/PjtKEIL_StepSon/StepSon.uvoptx +++ b/soft/PjtKEIL_StepSon/StepSon.uvoptx @@ -173,38 +173,6 @@ 1 0 - 54 - 1 -
0
- 0 - 0 - 0 - 0 - 0 - 0 - .\Src\GestionSon.s - - -
- - 2 - 0 - 55 - 1 -
134220486
- 0 - 0 - 0 - 0 - 0 - 1 - .\Src\GestionSon.s - - \\StepSon\Src/GestionSon.s\55 -
- - 3 - 0 52 1
134220476
@@ -218,6 +186,22 @@ \\StepSon\Src/GestionSon.s\52
+ + 2 + 0 + 67 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\Src\GestionSon.s + + +