Hi,

I am trying to implement a master-slave SPI configuration with multiple slave 
devices on a single SPI bus.

For this purpose I wanted to play with apps/system/spi/ SPI Tool to experiment 
and understand how multiple slave devices can be configured on a single bus in 
Nuttx, and a question occured:  In SPI configurations I have seen in Nuttx so 
far, there is only a single CS pin number defined and this corresponds to a 
single device. How, multiple slave devices can be used in this situation? 

In SPI Tool the default value of uint32_t CSn is 0,  today I will make some 
experiments and research to find-out my own answer but I'll also appreciate 
having your comments about what happens if I chose CSn = 1,2,3.. , what is the 
relation between this parameter and the actual hardware? I also wander the 
effect of SPI devtype parameter.

Thanks and best regards,
Murat

Reply via email to