Safe "task switching" on ATmega chips
I started implementing something similar to task switching in my app on atmega8. The main idea is that there's a pointer to a "current screen" structure. The "current screen" contains handlers for refreshing the screen, handling buttons and interrupts. Unfortunately I discovered that changing a function pointer is done in done in 2 oper...