#include "DriverJeuLaser.h" #include "GestionSon.h" 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(); GPIO_Configure(GPIOB, 0, OUTPUT, ALT_PPULL); Timer_1234_Init_ff( TIM3, 91*72); PWM_Init_ff( TIM3, 3, 720); Systick_Period_ff(15000000); Active_IT_Debordement_Timer( TIM3, 2, CallbackSon ); Systick_Prio_IT(1,StartSon); SysTick_On; SysTick_Enable_IT; //============================================================================ while (1) { } }