00001 00041 #ifndef CHIP_SPI_H_INCLUDED 00042 #define CHIP_SPI_H_INCLUDED 00043 00044 #include <chip/memory-map.h> 00045 #include <stddef.h> 00046 00055 static inline void *get_spi_regs(unsigned int id) 00056 { 00057 switch (id) { 00058 case 0: 00059 return (void *)SPI0_BASE; 00060 case 1: 00061 return (void *)SPI1_BASE; 00062 default: 00063 return NULL; 00064 } 00065 } 00066 00067 #endif /* CHIP_SPI_H_INCLUDED */
1.5.8