Files
CITISE1/IUT/Info2/TP/Chap2/chapitre2/Sources/main.c
2026-04-08 20:11:20 +02:00

23 lines
432 B
C

#include <hidef.h> /* for EnableInterrupts macro */
#include "derivative.h" /* include peripheral declarations */
void main(void)
{
unsigned i;
/* Internal clock of 8MHz selected. */
ICSC2 = 0b01000000;
ICSC1 = 0x04;
SOPT1_COPE = 0; /* Disable Watchdog */
/* PTB configured as an output */
PTBDD = 0xFF;
for (;;)
{
i = 0;
{
while (i < 6513)
i++;
} // Boucle complète
PTBD = ~PTBD;
} /* loop forever */
}