/*
 * $Id: cc1000_pins.h 198 2005-10-01 14:20:12Z anders $
 * 
 * Copyright (C) 2005 Anders Dubgaard <anders@dubgaard.net>
 *
 * 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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _PINSETUP_H
#define _PINSETUP_H

/**************************************************************
 * CC1000 PORT setup
 * ==========
 * use these defines to setup your MCU connection to the CC1000
 *************************************************************/
#define CC1000_PINS PIND
#define CC1000_PORT PORTD
#define CC1000_PDIR DDRD

#if defined (__AVR_ATmega8__)
	#define PALE        PD7
	#define PDATA       PD6
	#define PCLK        PD5
	#define DCLK        PD2 /* INT0 */
	#define DIO         PD4
#elif defined (__AVR_ATmega128__)
	#define PALE        PD7
	#define PDATA       PD6
	#define PCLK        PD5
	#define DCLK        PD2 /* INT2 */
	#define DIO         PD4
#else
#  error "You know, I don't know what I'm looking for..."
#endif

#endif /* _PINSETUP_H */
