Go to the documentation of this file. 29 #ifndef PORT_DEFINITIONS_H_INCLUDED 30 #define PORT_DEFINITIONS_H_INCLUDED 55 #define LCD_PORT PORTD //Controller Port for LCD Output 56 #define LCD_DDR DDRD //DDR Register of Controller Port for LCD Output 57 #define LCD_RS PD0 //Pin for RS (Register Select) 58 #define LCD_RW PD6 //Pin for R/W (Read/Write) 59 #define LCD_EN PD1 //Pin for E (Enable) 62 #define LCD_DB4 PD2 //Pin for D4 (Data, Bit 4) 63 #define LCD_DB5 PD3 //Pin for D5 (Data, Bit 5) 64 #define LCD_DB6 PD4 //Pin for D6 (Data, Bit 6) 65 #define LCD_DB7 PD5 //Pin for D7 (Data, Bit 7) 67 #define LCDBL_PORT PORTD 68 #define LCDBL_DDR DDRD 69 #define LCDBL_CTRL PD7 73 #define LED_PORT PORTB 79 #define ADC_PORT PORTC //PORTx of Port which is connected to A/D converter (e.g. Port A of ATmega16) 80 #define ADC_DDR DDRC //DDR of Port which is connected to A/D converter (e.g. Port A of ATmega16) 81 #define ADC_PIN PC2 //used input pin for A/D conversion 85 #define BAT_PORT PORTC 90 #define SEN1_DRV_PORT PORTC 91 #define SEN1_DRV_DDR DDRC 92 #define SEN1_DRV_PIN PC3 95 #define SEN2_DRV_PORT PORTC 96 #define SEN2_DRV_DDR DDRC 97 #define SEN2_DRV_PIN PC4 100 #define SEN1_IN_PORT PORTC 101 #define SEN1_IN_INPORT PINC 102 #define SEN1_IN_DDR DDRC 103 #define SEN1_IN_PIN PC0 106 #define SEN2_IN_PORT PORTC 107 #define SEN2_IN_INPORT PINC 108 #define SEN2_IN_DDR DDRC 109 #define SEN2_IN_PIN PC1 113 #define RFM12_PORT PORTB //Port for RFM12 Module 114 #define RFM12_PIN PINB //PIN for RFM12 Module 115 #define RFM12_DDR DDRB //DDR Register of Port for RFM12 Module 116 #define RFM12_LEDG PB7 //LED (green) for receiving messages indication 117 #define RFM12_LEDY PB6 //LED (yellow) for sending messages indication 118 #define RFM12_nIRQ PB0 //Interrupt Signal from RFM12 (low active) 119 #define RFM12_nRES PB1 //Reset Signal to RFM12 (low active) 120 #define RFM12_nSEL PB2 //Slave Select Signal to RFM12 (low active) 121 #define RFM12_SDI PB3 //Slave Data Input Signal (MOSI) to RFM12 122 #define RFM12_SDO PB4 //Slave Data Output Signal (MISO) from RFM12 123 #define RFM12_SCK PB5 //Clock Signal to RFM12 128 #endif // PORT_DEFINITIONS_H_INCLUDED