/* global.c * enthält globale Einstellungen und Funktionen. */ #include #include #include "global.h" #include "gui/gui.h" #include "lcd/lcd.h" #include "eeprom/eeprom.h" #include #include // Timer-Counter, der alle 25ms um eins steigt. long global_timer = 0; . . . . // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-= // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= timer -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-= void global_timer_init() { TIMSK0 = (1<244 da GLOBAL_TIMER_DIVISOR =40 ist sei(); } ISR(TIMER0_COMPA_vect) { gui_elements_thread(); // <--- Hier passiert die Keyabfrage aus gui_elements_input.c global_timer++; // hochzählen }