chti23/soft/PjtKEIL_StepSon/Src/principal.c
2023-04-07 18:11:56 +02:00

34 lines
723 B
C

#include "DriverJeuLaser.h"
extern int CallbackSon();
int main(void)
{
// ===========================================================================
// ============= INIT PERIPH (faites qu'une seule fois) =====================
// ===========================================================================
// Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers
CLOCK_Configure();
// configuration du Timer 4 en débordement 100ms
u32 duree = 655200; //91*7200
Timer_1234_Init_ff(TIM4, duree);
//** Placez votre code là ** //
Active_IT_Debordement_Timer(TIM4, 2, CallbackSon);
//============================================================================
while (1)
{
}
}