
6 Apr
2011
6 Apr
'11
7:52 a.m.
Hello,
I am trying to understand the logic behind the implementation of SPI interface, and came across a validity routine (for different baords it is about the same):
for Atmel and Davinci for example:
int spi_cs_is_valid(unsigned int bus, unsigned int cs) { return bus == 0 && cs == 0; }
Althout atmel and davinci can have more then one spi port, it seems that they will fail in configuration if bus is different then 0. I wander if any one can solve this issue for me.
Many Thanks,
Ran