#include <stdint.
h>
#include "inc\tm4c1294ncpdt.h"
/**
* main.c
*/
int tiempo;
int retardo;
int main(void)
{
SYSCTL_RCGCGPIO_R = 0x0400; // habilita el bit 10, puerto L
tiempo = 123; //tiempo de estabilización del reloj
//configuración del puerto L
GPIO_PORTL_DIR_R = 0x02; // bit 1 trabaja como salida
GPIO_PORTL_DEN_R = 0x02; //bit1 se habilita
GPIO_PORTL_DATA_R = 0x00; // se apaga el led PL1
while (1)
{
for (retardo=0;retardo <= 100000; retardo ++)
{
}
GPIO_PORTL_DATA_R = GPIO_PORTL_DATA_R ^ 0x2;
}
return 0;
}