Go to the documentation of this file.
40 #ifndef __PLATFORM_CONF_H__
41 #define __PLATFORM_CONF_H__
47 #define PLATFORM PLATFORM_AVR
49 #define HARWARE_REVISION IRIS
52 #define CLOCK_CONF_SECOND 128
56 #define LEDS_PxDIR DDRA // port direction register
57 #define LEDS_PxOUT PORTA // port register
58 #define LEDS_CONF_RED 0x04 //red led
59 #define LEDS_CONF_GREEN 0x02 // green led
60 #define LEDS_CONF_YELLOW 0x01 // yellow led
63 #define SLIP_PORT RS232_PORT_0
66 #define MMEM_CONF_SIZE 256
71 #define EEPROMFS_ADDR_CODEPROP 0x8000
73 #define EEPROM_NODE_ID_START 0x00
76 #define NETSTACK_CONF_RADIO rf230_driver
84 #define SPI_TXBUF SPDR
85 #define SPI_RXBUF SPDR
87 #define BV(bitno) _BV(bitno)
89 #define SPI_WAITFOREOTx() do { while (!(SPSR & BV(SPIF))); } while (0)
90 #define SPI_WAITFOREORx() do { while (!(SPSR & BV(SPIF))); } while (0)
106 #define SPI_FLASH_ENABLE() ( P4OUT &= ~BV(FLASH_CS) )
107 #define SPI_FLASH_DISABLE() ( P4OUT |= BV(FLASH_CS) )
109 #define SPI_FLASH_HOLD() ( P4OUT &= ~BV(FLASH_HOLD) )
110 #define SPI_FLASH_UNHOLD() ( P4OUT |= BV(FLASH_HOLD) )