Files
OpenCellular/chip/stm32
Vincent Palatin 23ea0c9fa3 spi: extend spi master API on STM32
Extend the SPI master API to be able to do fancier transactions:
- allow to read the incoming bits while transmitting.
If SPI_READBACK_ALL is set in 'rxlen' when calling spi_transaction(),
then the received data during transmission is recorded in rxdata buffer
and the function assumes that the real 'rxlen' is equal to 'txlen'.
- add spi_transaction_wait() which is similar to spi_transaction_flush()
but without de-asserting the chip select, so we can chain several
transfers in a single transaction.

Implement them for STM32.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BRANCH=none
BUG=b:35648259
TEST=on Eve, use the FP sensor with the passthru.

Change-Id: Iebff617acd3230277d36a4f565766b7748721a1d
Reviewed-on: https://chromium-review.googlesource.com/452898
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Todd Broch <tbroch@chromium.org>
2017-03-13 17:53:58 -07:00
..
2017-02-23 11:36:21 -08:00
2017-01-26 18:43:53 -08:00
2014-10-07 20:58:52 +00:00
2016-04-25 16:49:02 -07:00
2015-06-18 19:07:00 +00:00
2014-10-07 20:58:52 +00:00
2016-08-21 04:11:10 -07:00
2014-10-07 20:58:52 +00:00
2016-04-25 16:49:02 -07:00
2013-07-08 13:53:58 -07:00
2016-04-25 16:49:01 -07:00
2017-02-23 11:36:21 -08:00
2016-11-15 17:41:53 -08:00
2015-08-24 19:08:35 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:30 +00:00
2015-08-24 19:08:35 +00:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2016-09-02 21:17:22 -07:00
2015-06-18 05:07:55 +00:00
2016-03-15 21:49:35 -07:00
2016-09-02 21:17:22 -07:00