The_Meter413 0 Posted January 18, 2015 Share Posted January 18, 2015 I'm playing with interrupts using my Tiva C series launchpad (chip is the TM4C123GH6PM), and the latest TivaWare version. I'm reading through the API for registering interrupt handlers on a GPIO port, but I can't find some info: the function GPIOIntRegister takes as inputs a GPIO port base address, and a pointer to the interrupt handling functions. Prototype is: voidGPIOIntRegister(uint32_t ui32Port,void (*pfnIntHandler)(void)) Where can I find valid values for pfnIntHandler? The example code uses PortEIntHandler, so I'm pretty sure I can deduce what I would need to do to use, say, Port F, but it's bugging me that I can't find it when I dig through the documentation or the code. Can anyone point me in the right direction? Thx! Quote Link to post Share on other sites
L.R.A 78 Posted January 18, 2015 Share Posted January 18, 2015 The value needs to be a pointer to a void function.Check this example, it uses the interrupt handler register function:https://sites.google.com/site/luiselectronicprojects/tutorials/tiva-tutorials/tiva-gpio/digital-input-with-interrupt Quote Link to post Share on other sites
The_Meter413 0 Posted January 19, 2015 Author Share Posted January 19, 2015 Thanks for the clarification, and the link to the very handy/informative tutorial. Quote Link to post Share on other sites
L.R.A 78 Posted January 20, 2015 Share Posted January 20, 2015 Check the rest if you are starting I made them who is starting programming with Tiva. I have some updates I want to make but the time isn't enough for that.Trying to get what's already there and adding more that's it's missing (like a more dedicated part to interrupts programming basis) more organized in a workshop stile. abecedarian 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.