Hi Peter,
1) Are nestled interrupts enabled as default, that is, will my ISR routine get interrupted for other interrupts of higher prio?
Yes, the lower interrupt will be preempted by the higher interrupt.
2) Do I need to run PORT_HAL_ClearPinIntFlag after entering the ISR, or is this handled by itself. I have seen many different ideas about this on the internet, and in ARMs documention they state that the flag is cleared after entering the ISR.
You need to use the PORT_HAL_ClearPinIntFlag function to clear the status of the GPIO interrupt.
Hope it helps.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------