Hi All,
Can anybody please help me on configuring the NMI pin in the TM4C123GH6PM pin PD7. Also i couldn't see any API functions in the software driver library for NMI and linking ISR for NMI interrupt. If i configure the GPIO pin as NMI pin and enable the GPIO interrupt on the sam pin, will that GPIO pin be treated as a NMI interrupt?
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = GPIO_LOCK_KEY;
HWREG(GPIO_PORTD_BASE + GPIO_O_CR) |= 0x80;
HWREG(GPIO_PORTD_BASE+ GPIO_O_AFSEL)|=0x80;
GPIO_PORTD_PCTL_R|=0x80000000;
HWREG(GPIO_PORTD_BASE+ GPIO_O_DEN)|=0x80;
HWREG(GPIO_PORTD_BASE + GPIO_O_LOCK) = 0;
Also can i use the below API for configuring the PD7 pin as NMI pin? I hope that will do.
GPIOPinConfigure(GPIO_PD7_NMI);
One more thing, Does GPIOIntTypeSet(GPIO_PORTD_BASE,GPIO_PIN_7,GPIO_FALLING_EDGE ); can help to create a NMI on the falling edge on PD7 pin?
Thanks and Regards
Dilgush