diff --git a/ProjetsKEIL/Drivers/Driver_timers.c b/ProjetsKEIL/Drivers/Driver_timers.c
index fef84af..e09ad66 100644
--- a/ProjetsKEIL/Drivers/Driver_timers.c
+++ b/ProjetsKEIL/Drivers/Driver_timers.c
@@ -26,4 +26,13 @@ void MyTimer_Start(MyTimer_Struct_TypeDef *Timer)
void MyTimer_Stop(MyTimer_Struct_TypeDef *Timer)
{
Timer->Timer->CR1 &= ~TIM_CR1_CEN; // Arrête le Timer
+}
+
+void MyTimer_EnableInterrupt(MyTimer_Struct_TypeDef *Timer) {
+ Timer->Timer->DIER |= TIM_DIER_UIE; // Active l'interruption "Update" du Timer
+ NVIC->ISER[Timer->IRQn / 32] = (1 << Timer->IRQn); // Pour que ce soit générique : On divise IRQn par 32 pour avoir le ISER[] correspondant. On fait également le modulo 32 de IRQn pour avoir un nombre entre 0 et 31 correspondant au setting
+}
+
+void MyTimer_PWM( MyTimer_Struct_TypeDef * Timer , char Channel){
+
}
\ No newline at end of file
diff --git a/ProjetsKEIL/Drivers/Driver_timers.h b/ProjetsKEIL/Drivers/Driver_timers.h
index 4e69fbc..6bfeef1 100644
--- a/ProjetsKEIL/Drivers/Driver_timers.h
+++ b/ProjetsKEIL/Drivers/Driver_timers.h
@@ -16,6 +16,8 @@ void MyTimer_Base_Init(MyTimer_Struct_TypeDef * Timer);
void timer_init(MyTimer_Struct_TypeDef * Timer);
void MyTimer_Start(MyTimer_Struct_TypeDef *Timer);
void MyTimer_Stop(MyTimer_Struct_TypeDef *Timer);
+void MyTimer_EnableInterrupt(MyTimer_Struct_TypeDef *Timer);
+void MyTimer_PWM( MyTimer_Struct_TypeDef * Timer , char Channel);
diff --git a/ProjetsKEIL/Projet_1/TP.uvoptx b/ProjetsKEIL/Projet_1/TP.uvoptx
index 4f8d21b..c75a04d 100644
--- a/ProjetsKEIL/Projet_1/TP.uvoptx
+++ b/ProjetsKEIL/Projet_1/TP.uvoptx
@@ -125,7 +125,7 @@
0
DLGDARM
- (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=942,144,1363,571,0)(121=-1,-1,-1,-1,0)(122=-1,-1,-1,-1,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=-1,-1,-1,-1,0)(131=-1,-1,-1,-1,0)(132=-1,-1,-1,-1,0)(133=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(234=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)
+ (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0)(1009=-1,-1,-1,-1,0)(100=-1,-1,-1,-1,0)(110=-1,-1,-1,-1,0)(111=-1,-1,-1,-1,0)(1011=-1,-1,-1,-1,0)(180=-1,-1,-1,-1,0)(120=942,144,1363,571,0)(121=-1,-1,-1,-1,0)(122=-1,-1,-1,-1,0)(123=-1,-1,-1,-1,0)(140=-1,-1,-1,-1,0)(240=-1,-1,-1,-1,0)(190=-1,-1,-1,-1,0)(200=-1,-1,-1,-1,0)(170=-1,-1,-1,-1,0)(130=-1,-1,-1,-1,0)(131=1148,152,1742,903,0)(132=-1,-1,-1,-1,0)(133=-1,-1,-1,-1,0)(160=-1,-1,-1,-1,0)(161=-1,-1,-1,-1,0)(162=-1,-1,-1,-1,0)(210=-1,-1,-1,-1,0)(211=-1,-1,-1,-1,0)(220=-1,-1,-1,-1,0)(221=-1,-1,-1,-1,0)(230=-1,-1,-1,-1,0)(234=-1,-1,-1,-1,0)(231=-1,-1,-1,-1,0)(232=-1,-1,-1,-1,0)(233=-1,-1,-1,-1,0)(150=-1,-1,-1,-1,0)(151=-1,-1,-1,-1,0)
0
@@ -138,7 +138,88 @@
UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F10x_128 -FS08000000 -FL020000 -FP0($$Device:STM32F103RB$Flash\STM32F10x_128.FLM))
-
+
+
+ 0
+ 0
+ 57
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ .\Src\Principal.c
+
+
+
+
+ 1
+ 0
+ 44
+ 1
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ 0
+ .\Src\Principal.c
+
+
+
+
+ 2
+ 0
+ 74
+ 1
+ 134218650
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ U:\INSA\Microcontrôleur\Projet_Voilier\Projet_Voilier\ProjetsKEIL\Projet_1\Src\Principal.c
+
+ \\TP1_Simu\Src/Principal.c\74
+
+
+ 3
+ 0
+ 44
+ 1
+ 134218794
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ U:\INSA\Microcontrôleur\Projet_Voilier\Projet_Voilier\ProjetsKEIL\Projet_1\Src\Principal.c
+
+ \\TP1_Simu\Src/Principal.c\44
+
+
+ 4
+ 0
+ 57
+ 1
+ 134218828
+ 0
+ 0
+ 0
+ 0
+ 0
+ 1
+ U:\INSA\Microcontrôleur\Projet_Voilier\Projet_Voilier\ProjetsKEIL\Projet_1\Src\Principal.c
+
+ \\TP1_Simu\Src/Principal.c\57
+
+
0
@@ -159,7 +240,7 @@
0
0
0
- 1
+ 0
0
0
0
@@ -406,7 +487,7 @@
2
2
1
- 1
+ 0
0
0
..\Drivers\Driver_GPIO.c