grpE_REES_KOUTSODIMA/soft/PjtKEIL_StepSon/Src/principal.c
2023-04-14 15:31:33 +02:00

43 lines
849 B
C

#include "DriverJeuLaser.h"
//extern u32 * PeriodeSonMicroSec;
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();
Timer_1234_Init_ff( TIM4, 1000000/11025); //Calcul de la periode de 91 microsec
Active_IT_Debordement_Timer( TIM4, 2, CallbackSon );
//============================================================================
while (1)
{
}
}
/*
short int SortieSon
int index
Algo CallbackSon
if index<longueur
on stocke son[index] dans r0
mise a l'echelle
sortieson=a*son[index]+b
index ++
}
*/