hi,
i wan't to set the pin PA7 for an interrupt on falling edge or low_level
I'm using the evaluation baord EK-LM4F120XL and Code Composer Studio v.5.3
but the following code doesn't work to set up the internal pull-up:
SysCtlClockSet(SYSCTL_SYSDIV_2_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
ROM_GPIOPinTypeGPIOInput(GPIO_PORTA_BASE, GPIO_PIN_7);
ROM_GPIODirModeSet(GPIO_PORTA_BASE, GPIO_PIN_7, GPIO_DIR_MODE_IN);
ROM_GPIOPadConfigSet(GPIO_PORTA_BASE, GPIO_PIN_7, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);
ROM_GPIOIntTypeSet(GPIO_PORTA_BASE, GPIO_PIN_7, GPIO_FALLING_EDGE);
i meassure at the pin PA7 0 Volt;
when i hook up an external resistor between 3v3 and PA7 i meassure 0 Volt at the pin PA7, too.
What did i wrong?