I suppose this should be best posted to some AVR-specific forum but I'll give it a shot here.
I have a function that requires the use of local variables. In order to prevent the stack from being corrupted it will add cli's into the resultant code. However it seems that gcc never reenables interrupts after finishing with the critical code (??!!) Thus I appear to be losing clock ticks with my timer interrupt.
I'm using gcc-3.4.6 and avr-libc 1.4.6. I'm compiling -Os ...
I have a function that requires the use of local variables. In order to prevent the stack from being corrupted it will add cli's into the resultant code. However it seems that gcc never reenables interrupts after finishing with the critical code (??!!) Thus I appear to be losing clock ticks with my timer interrupt.
I'm using gcc-3.4.6 and avr-libc 1.4.6. I'm compiling -Os ...