This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

interrupt lm4f120 PB5

hi, i'm trying to configure interrupt on lm4f120 with PB5 INPUT, so i think i made it right, but it doesn't work, i configured also startup_ccs.c with my function :

#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_memmap.h"
#include "inc/hw_gpio.h"
#include "inc/hw_ints.h"
#include "driverlib/sysctl.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"

int main(void) {

    SysCtlClockSet(
            SYSCTL_SYSDIV_5 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ
                    | SYSCTL_OSC_MAIN);

    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC);


    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
    GPIOPinTypeGPIOOutput(GPIO_PORTC_BASE,GPIO_PIN_5);

    GPIOIntTypeSet(GPIO_PORTB_BASE, GPIO_PIN_5, GPIO_HIGH_LEVEL);
    GPIOPinIntEnable(GPIO_PORTB_BASE, GPIO_PIN_5);
    IntMasterEnable();

    GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_5, GPIO_PIN_5);
    while (1) {

    }
}

void MioInterrupt(void){
    IntEnable(INT_GPIOB);
    GPIOPinIntClear(GPIO_PORTB_BASE, GPIO_PIN_5);
    GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_5,0);
    SysCtlDelay(4000000);


}

externally i use a pulldown resistor on PB5 and a switch to +3.3 to start interrupt

could someone help me? thanks!!!