#define SCK 7 // SPI clock #define SDO 5 // SPI Data output (RFM12B side) #define SDI 6 // SPI Data input (RFM12B side) #define CS 4 // SPI SS (chip select) #define NIRQ 2 // (PORTD) #define HI(x) PORTB |= (1<<(x)) #define LO(x) PORTB &= ~(1<<(x)) #define WAIT_NIRQ_LOW() while(PIND&(1< void rsInit(unsigned char baud) { UBRRL = baud; UCSRC = (1<