I'm trying to read the buttons on lm4flaunchpad.
I wrote a code like :
// setup
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
GPIOPinTypeGPIOInput(GPIO_PORTF_BASE, GPIO_PIN_0 | GPIO_PIN_4);
// read
if(GPIOPinRead(GPIO_PORTF_BASE, GPIO_PIN_0))
// do something
and it is not working. In the same manner i have activated leds and they are working. What am i missing here?
Also i want to ask some other questions:
1- I have seen some functions which have ROM_ version? What is that?
2- I think there is peripheral mapping feature within this mcu. Does it required to be configured of this module for simple digital i/o?
3- I have included "rom.h" file but when i try to access a function declared in that header, i got error which says: "function declared implicitly".
IDE has not problem with this statement : #include "driverlib/rom.h" and no question marks beside it and it can be reached. What may be the problem?
Thanks.