[spi] added comment about buffer length requirements for stm32

This commit is contained in:
Stephen Dwyer
2013-02-14 15:20:24 -07:00
committed by Felix Ruess
parent 4f9ae2a74b
commit 1a15a4e34c
+3
View File
@@ -135,6 +135,9 @@ typedef void (*SPICallback)( struct spi_transaction *trans );
* of the two specifies the toal number of exchanged bytes,
* - if input_length is larger than output length,
* 0 is sent for the remaining bytes
* WARNING: For STM32 only, the output_buf size MUST be greater than or equal
* to the input_buf size. This is only required in the event any transaction
* has (0 < output_length < input_length).
*/
struct spi_transaction {
volatile uint8_t* input_buf;