Hi all,
I have a project in Code Compose Studio coded in C language that, among other things, triggers an interrupt when a switch is released. The interrupts are configured and work properly except in one case, when the code is inside a while loop that would end when a button is released after presssing it and, therefore, the interrupt is triggered.
At this moment the only way it works is by polling the state of the switch inside the while loop, but I would like to be able to exit the loop with the interrupt. Is that possible?
Thanks,
Javier
I have a project in Code Compose Studio coded in C language that, among other things, triggers an interrupt when a switch is released. The interrupts are configured and work properly except in one case, when the code is inside a while loop that would end when a button is released after presssing it and, therefore, the interrupt is triggered.
At this moment the only way it works is by polling the state of the switch inside the while loop, but I would like to be able to exit the loop with the interrupt. Is that possible?
Thanks,
Javier