// definitionen.h #ifndef DEFINITIONEN_H_ #define DEFINITIONEN_H_ // Eingangspins ansprechen #define Input_PIN_0(zustand) (PING & 0x02) // PG1 #define Input_PIN_1(zustand) (PING & 0x04) // PG2 #define Input_PIN_2(zustand) (PIND & 0x80) // PD7 #define Input_PIN_3(zustand) (PINC & 0x01) // PC0 #define Input_PIN_4(zustand) (PINC & 0x02) // PC1 #define Input_PIN_5(zustand) (PINC & 0x04) // PC2 #define Input_PIN_6(zustand) (PINC & 0x08) // PC3 #define Input_PIN_7(zustand) (PINC & 0x10) // PC4 #define Input_PIN_8(zustand) (PINC & 0x20) // PC5 #define Input_PIN_9(zustand) (PINC & 0x40) // PC6 #define Input_PIN_10(zustand) (PINC & 0x80) // PC7 #define Input_PIN_11(zustand) (PINA & 0x80) // PA7 #define Input_PIN_12(zustand) (PINA & 0x40) // PA6 #define Input_PIN_13(zustand) (PINA & 0x20) // PA5 #define Input_PIN_14(zustand) (PINA & 0x10) // PA4 #define Input_PIN_15(zustand) (PINA & 0x08) // PA3 #define Input_PIN_16(zustand) (PINA & 0x04) // PA2 #define Input_PIN_17(zustand) (PINA & 0x02) // PA1 #define Input_PIN_18(zustand) (PINA & 0x01) // PA0 #define Input_PIN_19(zustand) (PINE & 0x10) // PE4 #define Input_PIN_20(zustand) (PINE & 0x20) // PE5 #define Input_PIN_21(zustand) (PING & 0x20) // PG5 #define Input_PIN_22(zustand) (PINE & 0x04) // PE3 #define Input_PIN_23(zustand) (PINH & 0x04) // PH3 #define Input_PIN_24(zustand) (PINH & 0x10) // PH4 #define Input_PIN_25(zustand) (PINH & 0x20) // PH5 #define Input_PIN_26(zustand) (PINH & 0x40) // PH6 #define Input_PIN_27(zustand) (PINB & 0x10) // PB4 #define Input_PIN_28(zustand) (PINB & 0x20) // PB5 // -------------------------------------------------------------------------------- /* Ausgänge auf LOW Definieren*/ #define Output_low_Pin0 PORTF &= ~(1<