From dc8fe7ec38aa0d2f259ccab5e5484ffa1504ac0d Mon Sep 17 00:00:00 2001 From: Jules-Ian Barnavon Date: Fri, 24 Mar 2023 18:19:45 +0100 Subject: [PATCH] debut tp3 --- PjtKEIL_StepSon/Src/principal.c | 13 +++++++-- PjtKEIL_StepSon/StepSon.uvprojx | 52 +++++++++++++++++++++++++++++---- 2 files changed, 57 insertions(+), 8 deletions(-) diff --git a/PjtKEIL_StepSon/Src/principal.c b/PjtKEIL_StepSon/Src/principal.c index d09be75..fed0338 100644 --- a/PjtKEIL_StepSon/Src/principal.c +++ b/PjtKEIL_StepSon/Src/principal.c @@ -1,7 +1,7 @@ #include "DriverJeuLaser.h" - +# define PERIODE 6552 int main(void) @@ -13,7 +13,10 @@ int main(void) // Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers CLOCK_Configure(); - + + +Timer_1234_Init_ff(TIM4,PERIODE); +Active_IT_Debordement_Timer(TIM4, 2, CallbackSon); @@ -26,3 +29,9 @@ while (1) } } +void CallbackSon(void){ + static int i = 0; + + +} + diff --git a/PjtKEIL_StepSon/StepSon.uvprojx b/PjtKEIL_StepSon/StepSon.uvprojx index d0b5c10..aab446b 100644 --- a/PjtKEIL_StepSon/StepSon.uvprojx +++ b/PjtKEIL_StepSon/StepSon.uvprojx @@ -410,6 +410,21 @@ + + Son + + + bruitverre.asm + 2 + .\Src\bruitverre.asm + + + GestionSon.s + 2 + .\Src\GestionSon.s + + + ::CMSIS @@ -819,6 +834,21 @@ + + Son + + + bruitverre.asm + 2 + .\Src\bruitverre.asm + + + GestionSon.s + 2 + .\Src\GestionSon.s + + + ::CMSIS @@ -1297,6 +1327,21 @@ + + Son + + + bruitverre.asm + 2 + .\Src\bruitverre.asm + + + GestionSon.s + 2 + .\Src\GestionSon.s + + + ::CMSIS @@ -1322,12 +1367,7 @@ - <Project Info> - - - - - + StepSon 0 1