00001 /*! \file encoderconf.h \brief Quadrature Encoder driver configuration. */ 00002 //***************************************************************************** 00003 // 00004 // File Name : 'encoderconf.h' 00005 // Title : Quadrature Encoder driver configuration 00006 // Author : Pascal Stang - Copyright (C) 2003 00007 // Created : 2003.01.26 00008 // Revised : 2003.01.27 00009 // Version : 0.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 ENCODERCONF_H 00019 #define ENCODERCONF_H 00020 00021 // constants/macros/typdefs 00022 00023 // total number of encoders you wish to support 00024 #define NUM_ENCODERS 2 00025 00026 // encoder 0 connections 00027 #define ENC0_INTERRUPT SIG_INTERRUPT0 00028 #define ENC0_DIR_PORT PORTC 00029 #define ENC0_DIR_PIN PC0 00030 // encoder 1 connections 00031 #define ENC1_INTERRUPT SIG_INTERRUPT1 00032 #define ENC1_DIR_PORT PORTC 00033 #define ENC1_DIR_PIN PC1 00034 00035 #endif
1.3-rc2