Michael Hughes
Michael Hughes
avr_interrupt_reti is called after the interrupt completes by calling reti. the interrupt is set to start just a few lines before... looking at the code I may see a possibility...
As a thought... have you tried this on older versions of simavr to see if this is pre-existing condition or recently introduced? I have been looking at the timer code...
Check out issue #169... similar if not the same here... @messani looks to be on to something.
Not sure of if my tests jive with what you were doing (I think there also may be more to the issue? one thing that comes to mind could be...
This is the closest to the original code and I checked that it passes the tests... I goofed on the last one. https://github.com/bsekisser/simavr/tree/bsekisser-timer-fix2
Not sure if that is the best thing too do... might be better to leave be and marked as in error... I'll take a look at what you just sent....
If I am not mistaken, I think I inadvertently found the issue you are referring to on point three... Check it if you would on the second fix I sent....
Any chance you could fork a branch with this? that is the prefered way to handle it... I like some of the Ideas you have and some comments to make. ...
On Wed, 31 Aug 2016 12:08:07 -0700 messani [email protected] wrote: > Yes, I can branch this. I did not it because I am not C programmer > and as you...
@messani I just tagged you and frej on a posted branch with your patch and put up my tips thus far.