Hi,
I am newbie to ti .I am using stellaris lm4f232h5qd evaluation kit .i was able to run the example blinky project successful and tried myself to use gpio api function by simply delete blinky .c code line and added the code given below is to turn on the user led (port g ,pin 2 ) is build without error , while debugging i found that GPIOPinTypeGPIOOutput function calls
GPIOPadConfigSet function in this fuction when it enters the code line
HWREG(ulPort + GPIO_O_DR2R) = ((ulStrength & 1) ?
// (HWREG(ulPort + GPIO_O_DR2R) | ucPins) :
// (HWREG(ulPort + GPIO_O_DR2R) & ~(ucPins)));
it calls to fault ISR routine . it will be immense help for me if you guide me on this
my actual code is
#include "driverlib/gpio.h"
#include "driverlib/gpio.c"
void main()
{
GPIOPinTypeGPIOOutput(GPIO_PORTG_BASE, GPIO_PIN_2);
while(1)
{
GPIOPinWrite(GPIO_PORTG_BASE,GPIO_PIN_0,0xFF);
}
}
regards,
Tamil vanan