diff options
author | px4dev <px4@purgatory.org> | 2012-08-13 23:50:55 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-08-13 23:50:55 -0700 |
commit | edfdb8f47e9023e8226db36ae74a229b6f190b5e (patch) | |
tree | 9175b0156458e0ec330d09a56c205030e8671fd3 /apps/drivers | |
parent | a9d8a324bc412d2731908700f3cf7384577eaa72 (diff) | |
download | px4-firmware-edfdb8f47e9023e8226db36ae74a229b6f190b5e.tar.gz px4-firmware-edfdb8f47e9023e8226db36ae74a229b6f190b5e.tar.bz2 px4-firmware-edfdb8f47e9023e8226db36ae74a229b6f190b5e.zip |
force 8-bit SPI transactions for device::SPI drivers.
Diffstat (limited to 'apps/drivers')
-rw-r--r-- | apps/drivers/device/spi.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/drivers/device/spi.cpp b/apps/drivers/device/spi.cpp index d0647bef6..3ccdaae36 100644 --- a/apps/drivers/device/spi.cpp +++ b/apps/drivers/device/spi.cpp @@ -127,6 +127,7 @@ SPI::transfer(uint8_t *send, uint8_t *recv, unsigned len) SPI_LOCK(_dev, true); SPI_SETFREQUENCY(_dev, _frequency); SPI_SETMODE(_dev, _mode); + SPI_SETBITS(_dev, 8); SPI_SELECT(_dev, _device, true); /* do the transfer */ @@ -139,4 +140,4 @@ SPI::transfer(uint8_t *send, uint8_t *recv, unsigned len) return OK; } -} // namespace device
\ No newline at end of file +} // namespace device |