Part Number: LAUNCHXL-F28069M
Tool/software: Code Composer Studio
What changes should I make to run the program to blink an LED in LAUNCHXL-F28069M?
This is my main program:
#include "F2806x_Device.h" // F2806x Headerfile Include File
#include "F2806x_Examples.h" // F2806x Examples Include File
int i;
void main()
{
// Configure GPIO34 as a GPIO output pin
EALLOW;
GpioCtrlRegs.GPAMUX2.bit.GPIO22 = 0;
GpioCtrlRegs.GPADIR.bit.GPIO22 = 1;
EDIS;
for(i = 0; i < 50; i++)
{
GpioDataRegs.GPATOGGLE.bit.GPIO22 = 1;
DELAY_US(50000);
}
}
I have connected an external LED to the GPIO pin 22.
The program does not have any compiler errors and can be loaded without any errors. But the LED is not blinking.
