diff options
author | Perry Hung <iperry@alum.mit.edu> | 2010-04-27 18:30:46 -0400 |
---|---|---|
committer | Perry Hung <iperry@alum.mit.edu> | 2010-04-27 18:30:46 -0400 |
commit | 28feb18a8f6d3dd2d0d78a40d4213407fb54e5dd (patch) | |
tree | 9bffb2da20492ceafd83101cbdff817870b92b1b /wirish/comm/HardwareSPI.cpp | |
parent | 434e223114b0398b92f3c027747f82bd7187569a (diff) | |
download | librambutan-28feb18a8f6d3dd2d0d78a40d4213407fb54e5dd.tar.gz librambutan-28feb18a8f6d3dd2d0d78a40d4213407fb54e5dd.zip |
Added a spi send block function
Diffstat (limited to 'wirish/comm/HardwareSPI.cpp')
-rw-r--r-- | wirish/comm/HardwareSPI.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wirish/comm/HardwareSPI.cpp b/wirish/comm/HardwareSPI.cpp index e083ac1..4379a0d 100644 --- a/wirish/comm/HardwareSPI.cpp +++ b/wirish/comm/HardwareSPI.cpp @@ -119,7 +119,11 @@ void HardwareSPI::begin(void) { * @param data byte to send */ void HardwareSPI::send(uint8 data) { - spi_tx(this->spi_num, data); + spi_tx_byte(this->spi_num, data); +} + +void HardwareSPI::send(uint8 *buf, uint32 len) { + spi_tx(this->spi_num, buf, len); } |