Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# i2cswconf.h

Go to the documentation of this file.

    00001 /*! \file i2cswconf.h \brief Software-driven I2C interface configuration. */
    00002 //*****************************************************************************
    00003 //
    00004 // File Name    : 'i2cswconf.h'
    00005 // Title        : software-driven I2C interface using port pins
    00006 // Author       : Pascal Stang - Copyright (C) 2000-2002
    00007 // Created      : 11/22/2000
    00008 // Revised      : 5/2/2002
    00009 // Version      : 1.1
    00010 // Target MCU   : Atmel AVR series
    00011 // Editor Tabs  : 4
    00012 //
    00013 // This code is distributed under the GNU Public License
    00014 //      which can be found at http://www.gnu.org/licenses/gpl.txt
    00015 //
    00016 //*****************************************************************************
    00017
    00018 #ifndef I2CSWCONF_H
    00019 #define I2CSWCONF_H
    00020
    00021 // clock line port
    00022 #define SCLPORT PORTD   // i2c clock port
    00023 #define SCLDDR  DDRD    // i2c clock port direction
    00024 // data line port
    00025 #define SDAPORT PORTD   // i2c data port
    00026 #define SDADDR  DDRD    // i2c data port direction
    00027 #define SDAPIN  PIND    // i2c data port input
    00028 // pin assignments
    00029 #define SCL     PD0     // i2c clock pin
    00030 #define SDA     PD1     // i2c data pin
    00031
    00032 #endif