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.

LP-AM243: Adding Interrupt

Part Number: LP-AM243
Other Parts Discussed in Thread: SYSCONFIG

Hi, 

I a bit confused of how to set up a new interupt on the LP243, and what is auto-generated by Sysconfig and what should I write manually.

For example, when I add a GPIO in sysconfig, I set its trigger to Falling Edge, and I want it to execute an ISR that I will write on Falling Edge. What is the process I should follow in order to register an interrupt and so on.

If I look at the gpio_interrupt example, I see they register it that way:

pinNum = GPIO_PUSH_BUTTON_PIN;
intrNum = Board_getGpioButtonIntrNum();
bankNum = GPIO_GET_BANK_INDEX(pinNum);

/* Address translate */
gGpioBaseAddr = (uint32_t) AddrTranslateP_getLocalAddr(gGpioBaseAddr);

/* Setup GPIO for interrupt generation */
GPIO_setDirMode(gGpioBaseAddr, pinNum, GPIO_PUSH_BUTTON_DIR);
GPIO_setTrigType(gGpioBaseAddr, pinNum, GPIO_PUSH_BUTTON_TRIG_TYPE);
GPIO_bankIntrEnable(gGpioBaseAddr, bankNum);

Is Board_getGpioButtonIntrNum() auto-generated?