1 #include <AT91SAM7S64.h>
6 #define SPI_SPEED 1000000
12 #define BV(b) (1<<(b))
16 cc2420_arch_init(
void)
20 AT91C_SPI_CSR[CC2420_DEFAULT_DEV] =
21 ((SPI_DLYBCT<<24) | (SPI_DLYBS<<16) | (((MCK+SPI_SPEED/2)/SPI_SPEED)<<8)
22 | AT91C_SPI_NCPHA | AT91C_SPI_BITS_8 | AT91C_SPI_CSAAT);