Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | /*! \file i2cswconf.h \brief Software-driven I2C interface configuration. */ |
2 | //***************************************************************************** |
||
3 | // |
||
4 | // File Name : 'i2cswconf.h' |
||
5 | // Title : software-driven I2C interface using port pins |
||
6 | // Author : Pascal Stang - Copyright (C) 2000-2002 |
||
7 | // Created : 11/22/2000 |
||
8 | // Revised : 5/2/2002 |
||
9 | // Version : 1.1 |
||
10 | // Target MCU : Atmel AVR series |
||
11 | // Editor Tabs : 4 |
||
12 | // |
||
13 | // This code is distributed under the GNU Public License |
||
14 | // which can be found at http://www.gnu.org/licenses/gpl.txt |
||
15 | // |
||
16 | //***************************************************************************** |
||
17 | |||
18 | #ifndef I2CSWCONF_H |
||
19 | #define I2CSWCONF_H |
||
20 | |||
21 | // clock line port |
||
22 | #define SCLPORT PORTD // i2c clock port |
||
23 | #define SCLDDR DDRD // i2c clock port direction |
||
24 | // data line port |
||
25 | #define SDAPORT PORTD // i2c data port |
||
26 | #define SDADDR DDRD // i2c data port direction |
||
27 | #define SDAPIN PIND // i2c data port input |
||
28 | // pin assignments |
||
29 | #define SCL PD0 // i2c clock pin |
||
30 | #define SDA PD1 // i2c data pin |
||
31 | |||
32 | #endif |
Powered by WebSVN v2.8.3