forked from acco/chti23
24 lines
697 B
C
24 lines
697 B
C
#include "DriverJeuLaser.h"
|
|
|
|
extern void Delay_100ms(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();
|
|
|
|
// configuration de PortB.1 (PB1) en sortie push-pull
|
|
GPIO_Configure(GPIOC, 12, OUTPUT, OUTPUT_PPULL);
|
|
|
|
//============================================================================
|
|
while (1) {
|
|
Delay_100ms();
|
|
GPIOC_Set(12);
|
|
Delay_100ms();
|
|
GPIOC_Clear(12);
|
|
}
|
|
}
|