cancel
Showing results for 
Search instead for 
Did you mean: 

ARM based microcontroles intrerrupt implementation

sakowski
Associate
Posted on May 10, 2015 at 01:05

I have a question regarding good practices.

Shall we code interrupt handling like that 

http://wklej.to/k4oVO

 or shall we code interrupt handling like that 

http://wklej.to/f1TTq

 .

Best Regards

#stm32
1 REPLY 1
Posted on May 10, 2015 at 03:31

A)

Always assume that more that one source can be signalling upon entry, if you fail to clear all the sources the routine will tail-chain back into itself. In the worse case scenario it will never leave the interrupt cycle. This usually occurs if you enable an interrupt source that you don't have service code for.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..