chti23_grpC_Aittaleb_Barnavon/PjtKEIL_StepDeb_1/Src/principal.c
2023-03-16 12:12:51 +01:00

32 lines
695 B
C

#include "DriverJeuLaser.h"
extern void Delay_100ms(void);
int main(void)
{
// ===========================================================================
// ============= INIT PERIPH (faite qu'une seule fois) =====================
// ===========================================================================
// Après exécution : le coeur CPU est clocké à 72MHz ainsi que tous les timers
CLOCK_Configure();
// configuration de PortB.1 (PB1) en sortie push-pull
GPIO_Configure(GPIOB, 1, OUTPUT, OUTPUT_PPULL);
//============================================================================
while (1)
{
Delay_100ms();
GPIOB_Set(1);
Delay_100ms();
GPIOB_Clear(1);
}
}