31 lines
613 B
C
31 lines
613 B
C
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
#define KEYS_PORT PORTD
|
|
#define KEYS_PIN PIND
|
|
#define KEYS_DDR DDRD
|
|
|
|
#define KEYS_KEY1 PD2 // UP / usw
|
|
#define KEYS_KEY2 PD3 // SELECT / usw
|
|
#define KEYS_KEY3 PD4 // DOWN / usw
|
|
#define KEYS_KEY4 PD5 // SNOOZE / (Taster Oben drauf)
|
|
|
|
|
|
#define LEDS_PORT PORTB
|
|
#define LEDS_PIN PINB
|
|
#define LEDS_DDR DDRB
|
|
|
|
#define LEDS_LED1 PB0 // Rot
|
|
#define LEDS_LED2 PB1 // Blau, Zeigt DCF Signal
|
|
#define LEDS_LED3 PB2 // Rot
|
|
|
|
|
|
#define DCF_PORT PORTD
|
|
#define DCF_PIN PIND
|
|
#define DCF_DDR DDRD
|
|
#define DCF_INPUT PD0 // Input Pin vom DCF Empfaenger
|
|
|
|
|
|
#endif
|
|
// vim:ts=4
|