56 AVR2070 8240B-AVR-06/09
#ifndef __AVR_ATmega1281__
#error "Incorrect MCU for Platform! Check Makefile"
#endif
// Set this to the port that the SEL pin is connected to
# define SSPORT B
// Set this to the pin that the SEL pin is connected to
# define SSPIN (0x00)
// Set this to the port that the SPI port is on
# define SPIPORT B
// Set this to the pin that the MOSI signal is on
# define MOSIPIN (0x02)
// Set this to the pin that the MISO signal is on
# define MISOPIN (0x03)
// Set this to the pin that the SCLK signal is on
# define SCKPIN (0x01)
// Set this to the port that the RST pin is connected to
# define RSTPORT B
// Set this to the pin that the RST pin is connected to
# define RSTPIN (0x05)
// Set this to the port that the SLP_TP pin is connected to
# define SLPTRPORT B
// Set this to the pin that the SLP_TP pin is connected to
# define SLPTRPIN (0x04)
// Set this to the UART number (0, 1, 2, etc.) for the
// serial port being used.
# define USART 1
// Define which port of the AVR hosts the ADC converter.
# define ADPORT F
// Define which pin of the ADC port is connected
// to an analog input.
# define ADPIN (0x00)
// Define the DIDR register associated with the ADC pin
// (See AVR datasheet).
# define DIDR DIDR0
// Define which 16-bit timer is to be used for the
// system timer.
# define TICKTIMER 3
// Define which AVR vector handles the radio interrupt.
# define RADIO_VECT INT0_vect
// Define Macros to handle setting up interrupts and
// ADC functionality
#define HAL_ENABLE_RADIO_INTERRUPT( ) EICRA |= 3, EIMSK |= 1
#define HAL_DISABLE_RADIO_INTERRUPT( ) EICRA&=~3, EIMSK &= ~1