|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] SSelect SPI |
Date: | Mon, 25 Feb 2013 18:54:37 +0100 |
Another question, it is necessary to initialize the spi port with spi_init() function?
When I have done, the AP blocked and I have not seen any code using it.
BR,
Mauro
From: paparazzi-devel-bounces+m.garcia=address@hidden [mailto:paparazzi-devel-bounces+m.garcia=address@hidden] On Behalf Of Felix Ruess
Sent: lunes, 25 de febrero de 2013 14:50
To: address@hidden
Subject: Re: [Paparazzi-devel] SSelect SPI
Hi,
did you enable the gpio slave pin you want to use?
E.g. USE_SPI_SLAVE2Cheers, Felix
Hi,
Is it still with your Yapa or another board ? Can you send your airframe file and tell us which pins you are looking at ?
Thanks
Gautier
Le 25/02/2013 14:36, Mauro Garcia Acero a écrit :Dear all,
I have a problem with the SSelect port, it doesn't change (from high to low, or otherwise) in any of the options specified:
enum SPISlaveSelect {
SPISelectUnselect, ///< slave is selected before transaction and unselected after
SPISelect, ///< slave is selected before transaction but not unselected
SPIUnselect, ///< slave is not selected but unselected after transaction
SPINoSelect ///< slave is not selected nor unselected
};
I have configured the spi_trans struct as follows, using all the possible values in .select and also .slave_idx.
/* configure spi transaction */
adis_trans.select = SPISelect;
adis_trans.slave_idx = SPI_SLAVE2;
But when a use a monitor on the SPI interface, I don't see any change on CS/SSel signal. What am I doing wrong?
Other question, can this value be operational as follows: high when there is no communication, low when a communication begin.
Thanks in advance,
Mauro.
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |