Go to the documentation of this file.
39 #ifndef PLATFORM_CONF_H_
40 #define PLATFORM_CONF_H_
47 #define PLATFORM_NAME "Iris"
48 #define PLATFORM_TYPE IRIS
50 #define F_CPU 8000000UL
58 #define CLOCK_CONF_SECOND 128
61 typedef unsigned short clock_time_t;
62 #define CLOCK_LT(a,b) ((signed short)((a)-(b)) < 0)
63 #define INFINITE_TIME 0xffff
64 #define RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
65 #define COLLECT_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME INFINITE_TIME/CLOCK_CONF_SECOND
67 typedef unsigned long clock_time_t;
68 #define CLOCK_LT(a,b) ((signed long)((a)-(b)) < 0)
69 #define INFINITE_TIME 0xffffffff
76 #define LEDS_PxDIR DDRA // port direction register
77 #define LEDS_PxOUT PORTA // port register
78 #define LEDS_CONF_RED 0x04 //red led
79 #define LEDS_CONF_GREEN 0x02 // green led
80 #define LEDS_CONF_YELLOW 0x01 // yellow led
83 #define SLIP_PORT RS232_PORT_0
86 #define MMEM_CONF_SIZE 256
91 #define EEPROMFS_ADDR_CODEPROP 0x8000
93 #define EEPROM_NODE_ID_START 0x00
96 #define NETSTACK_CONF_RADIO rf230_driver
104 #define SPI_TXBUF SPDR
105 #define SPI_RXBUF SPDR
107 #define BV(bitno) _BV(bitno)
109 #define SPI_WAITFOREOTx() do { while (!(SPSR & BV(SPIF))); } while (0)
110 #define SPI_WAITFOREORx() do { while (!(SPSR & BV(SPIF))); } while (0)
126 #define SPI_FLASH_ENABLE() ( P4OUT &= ~BV(FLASH_CS) )
127 #define SPI_FLASH_DISABLE() ( P4OUT |= BV(FLASH_CS) )
129 #define SPI_FLASH_HOLD() ( P4OUT &= ~BV(FLASH_HOLD) )
130 #define SPI_FLASH_UNHOLD() ( P4OUT |= BV(FLASH_HOLD) )