diff options
author | Perry Hung <iperry@gmail.com> | 2010-09-28 19:21:16 -0400 |
---|---|---|
committer | Perry Hung <iperry@gmail.com> | 2010-09-28 19:21:16 -0400 |
commit | adde11b099ff5dad176e410279d21feac39d2c7e (patch) | |
tree | 2d59382beb624bb62f91707a30e65c144de925ce /wirish | |
parent | 7b72956308b7793defc6bf708ea4dc830573c0a6 (diff) | |
download | librambutan-adde11b099ff5dad176e410279d21feac39d2c7e.tar.gz librambutan-adde11b099ff5dad176e410279d21feac39d2c7e.zip |
Fix HardwareSPI to pass SPI modes for CPOL and CPHA
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/comm/HardwareSPI.cpp | 2 |
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); } /** |