forked from acco/chti23
33 lines
649 B
C
33 lines
649 B
C
|
|
|
|
#include "DriverJeuLaser.h"
|
|
#include<math.h>
|
|
|
|
extern void CallbackSon(void);
|
|
|
|
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();
|
|
|
|
double tick=91*72;
|
|
Timer_1234_Init_ff(TIM4,tick);
|
|
|
|
Active_IT_Debordement_Timer( TIM4, 2, CallbackSon );
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
|
|
while (1)
|
|
{
|
|
}
|
|
}
|
|
|