/***************************************************************************
 *   Copyright (C) 30.4.2004 by                                           *
 *   Matthias Kranz (matthias.kranz@ifi.lmu.de)                            *
 *   Paul Holleis (paul.holleis@ifi.lmu.de)                                *
 *                                                                         *
 *   header file for standard SmartITs definitions.                        *
 *                                                                         *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 **************************************************************************/
/******************************************************************************
 * defines
 *****************************************************************************/
#ifndef __STD
  #define __STD
#endif

#CASE
/// a BYTE is a byte - now it is a byte even when <em>#CASE</em> is used.
#define byte BYTE

#ifndef PIC_RX_PIN
	/// SmartITs standard pin for reading from the serial line
  #define PIC_RX_PIN PIN_C7
#endif

#ifndef PIC_TX_PIN
	/// SmartITs standard pin for writing to the serial line
  #define PIC_TX_PIN PIN_C6
#endif

#ifndef STDSTREAM_SPEED
	/// SmartITs standard speed setting for reading/writing from/to the serial line
  #define STDSTREAM_SPEED 38400
#endif

#ifndef STDOUT_SPEED
	/// SmartITs standard STDOUT speed setting for reading/writing from/to the serial line
  #define STDOUT_SPEED 38400
#endif

#ifndef TRUE
	/// SmartITs standard definition of the boolean value true.
  #define TRUE 1
#endif

#ifndef FALSE
	/// SmartITs standard definition of the boolean value false.
  #define FALSE (!TRUE)
#endif

#ifndef NL
	/// Newline when used with standard rs232 
  	#define NL \n
#endif
/******************************************************************************
 * global variables
 *****************************************************************************/
/// Variables for ADC channel access - const or variables do not work during set_adc_channel(var|const)
enum ADC_CHANNELS 
{
  ADC_CHANNEL_0 = 0,
  ADC_CHANNEL_1 = 1,
  ADC_CHANNEL_2 = 2,
  ADC_CHANNEL_3 = 3, 
  ADC_CHANNEL_4 = 4,
  ADC_CHANNEL_5 = 5,
  ADC_CHANNEL_6 = 6,
  ADC_CHANNEL_7 = 7
};

