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.

LAUNCHXL-CC2640R2: Starting from Project Zero, how to add a Hwi on a DIO pin

Part Number: LAUNCHXL-CC2640R2


I am using the launchpad in the title and testing several drivers from TI for my master thesis. The last driver I need to check is the GPIO one to trigger an interrupt on a DIO which is active low (the interrupt is triggered if the pin is low). However, I am really not familiar with TI drivers and I can't find a code template which includes all the changes I have to made on the Project Zero to add this fonctionnality.

So, how can I initialize my DIO pin (let's say the DIO30) to trigger an interrupt calling a certain callback function in my main code (taking care of the fact that the pin is active low)?

Thanks for your help.

FYON Arthur.