Hi there,
I have got the following interrupt routine:
ISR(TWI_vect) { /* DO NOTHING, INTERRUPT FLAG IS NOT CLEARED VIA HARDWARE, SOFTWARE IS MONITORING INTERRUPT FLAG */ }
which generates the following code:
ISR(TWI_vect) { fd2: 1f 92 push r1 fd4: 0f 92 push r0 fd6: 0f b6 in r0, 0x3f ; 63 fd8: 0f 92 push r0 fda: 11 24 eor r1, r1 /* DO NOTHING, INTERRUPT FLAG IS NOT CLEARED VIA HARDWARE, SOFTWARE IS MONITORING INTERRUPT FLAG */ } fdc: 0f 90 pop r0 fde: 0f be out 0x3f, r0 ; 63 fe0: 0f 90 pop r0 fe2: 1f 90 pop r1 fe4: 18 95 reti
Isn't this unnecessary code? Is there a way to tell gcc to not generate the code?
Any help will be appreciated?
Thanks
Jacques