/* DEFINITIONEN */ #ifndef MCU #define MCU atmega328 #endif #ifndef F_CPU #define F_CPU 20000000UL // 20 MHz externer Takt #endif #include #include #include #include #include #include #include /* INITIALISIERUNGEN */ // Initialisierung der Ports void port_init(void) { PORTB = 0x00; DDRB = (1 << DDB0) | (1 << DDB1) | (1 << DDB2); PORTC = 0x00; DDRC = (1 << DDC1) | (1 << DDC3) | (1 << DDC4) | (1 << DDC5) | (1<