diff --git a/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx b/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx
index f1315bb..db3e892 100644
--- a/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx
+++ b/soft/PjtKEIL_StepDeb_2/BacASable.uvoptx
@@ -10,7 +10,7 @@
*.s*; *.src; *.a*
*.obj; *.o
*.lib
- *.txt; *.h; *.inc
+ *.txt; *.h; *.inc; *.md
*.plm
*.cpp
0
@@ -75,7 +75,7 @@
1
0
- 1
+ 0
18
@@ -267,7 +267,7 @@
1
0
- 0
+ 1
18
diff --git a/soft/PjtKEIL_StepDeb_2/BacASable.uvprojx b/soft/PjtKEIL_StepDeb_2/BacASable.uvprojx
index d99d0f0..f01d9e2 100644
--- a/soft/PjtKEIL_StepDeb_2/BacASable.uvprojx
+++ b/soft/PjtKEIL_StepDeb_2/BacASable.uvprojx
@@ -10,7 +10,7 @@
Simu
0x4
ARM-ADS
- 5060750::V5.06 update 6 (build 750)::.\ARMCC
+ 5060960::V5.06 update 7 (build 960)::.\ARMCC
0
@@ -424,7 +424,7 @@
CibleSondeKEIL
0x4
ARM-ADS
- 5060750::V5.06 update 6 (build 750)::.\ARMCC
+ 5060960::V5.06 update 7 (build 960)::.\ARMCC
0
@@ -1338,11 +1338,6 @@
<Project Info>
-
-
-
-
-
0
1
diff --git a/soft/PjtKEIL_StepDeb_2/Src/Cligno.s b/soft/PjtKEIL_StepDeb_2/Src/Cligno.s
index 8a75b7a..785a6a1 100644
--- a/soft/PjtKEIL_StepDeb_2/Src/Cligno.s
+++ b/soft/PjtKEIL_StepDeb_2/Src/Cligno.s
@@ -1,6 +1,6 @@
PRESERVE8
THUMB
-
+ include Driver/DriverJeuLaser.inc
; ====================== zone de réservation de données, ======================================
;Section RAM (read only) :
@@ -10,7 +10,7 @@
;Section RAM (read write):
area maram,data,readwrite
-
+FlagCligno dcb 1
; ===============================================================================================
@@ -20,11 +20,32 @@
;Section ROM code (read only) :
area moncode,code,readonly
; écrire le code ici
+ EXPORT timer_callback
+
+timer_callback proc
+
+ push {lr}
+ ldr r0,=FlagCligno
+ ldr r1,[r0]
+ cbz r1, zero
+ mov r1,#0
+ str r1,[r0]
+ mov r0,#1
+ bl GPIOB_Set
+
+ pop {pc}
+
+
+zero
+ mov r1,#1
+ str r1,[r0]
+ mov r0,#1
+ bl GPIOB_Clear
+
+ pop {pc}
+
+
+ endp
-
-
-
-
-
END
\ No newline at end of file
diff --git a/soft/PjtKEIL_StepDeb_2/Src/principal.c b/soft/PjtKEIL_StepDeb_2/Src/principal.c
index 4d726a1..4bc2e06 100644
--- a/soft/PjtKEIL_StepDeb_2/Src/principal.c
+++ b/soft/PjtKEIL_StepDeb_2/Src/principal.c
@@ -2,7 +2,7 @@
#include "DriverJeuLaser.h"
-void timer_callback(void);
+extern void timer_callback(void);
int main(void)
{
@@ -17,8 +17,8 @@ CLOCK_Configure();
// configuration du Timer 4 en débordement 100ms
//** Placez votre code là ** //
-
-
+Timer_1234_Init_ff(TIM4, 7200000);
+Active_IT_Debordement_Timer(TIM4, 2, timer_callback);
// Activation des interruptions issues du Timer 4
// Association de la fonction à exécuter lors de l'interruption : timer_callback
@@ -30,7 +30,7 @@ CLOCK_Configure();
// configuration de PortB.1 (PB1) en sortie push-pull
GPIO_Configure(GPIOB, 1, OUTPUT, OUTPUT_PPULL);
-
+
@@ -42,7 +42,8 @@ while (1)
}
}
-char FlagCligno;
+
+/*char FlagCligno;
void timer_callback(void)
{
@@ -58,4 +59,4 @@ void timer_callback(void)
}
}
-
+*/