aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/comm
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2010-09-28 19:21:16 -0400
committerPerry Hung <iperry@gmail.com>2010-09-28 19:21:16 -0400
commitadde11b099ff5dad176e410279d21feac39d2c7e (patch)
tree2d59382beb624bb62f91707a30e65c144de925ce /wirish/comm
parent7b72956308b7793defc6bf708ea4dc830573c0a6 (diff)
downloadlibrambutan-adde11b099ff5dad176e410279d21feac39d2c7e.tar.gz
librambutan-adde11b099ff5dad176e410279d21feac39d2c7e.zip
Fix HardwareSPI to pass SPI modes for CPOL and CPHA
Diffstat (limited to 'wirish/comm')
-rw-r--r--wirish/comm/HardwareSPI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wirish/comm/HardwareSPI.cpp b/wirish/comm/HardwareSPI.cpp
index 5d04ddf..20090f5 100644
--- a/wirish/comm/HardwareSPI.cpp
+++ b/wirish/comm/HardwareSPI.cpp
@@ -104,7 +104,7 @@ void HardwareSPI::begin(SPIFrequency freq, uint32 endianness, uint32 mode) {
prescaleFactors[freq + 1] :
prescaleFactors[freq];
- spi_init(spi_num, prescale, endianness, 0);
+ spi_init(spi_num, prescale, endianness, mode);
}
/**