diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-10 22:13:59 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-11-10 22:13:59 +0000 |
commit | 176444320c3c32bd35180ffcdbbda7be0cfd23bc (patch) | |
tree | abdbcd42f2a02eff714fb0fbd3224e0cb6cc17dd /os/io/spi.c | |
parent | e48e822aa8ec66fc9daac05e387ffb77d8f5c452 (diff) | |
download | ChibiOS-176444320c3c32bd35180ffcdbbda7be0cfd23bc.tar.gz ChibiOS-176444320c3c32bd35180ffcdbbda7be0cfd23bc.tar.bz2 ChibiOS-176444320c3c32bd35180ffcdbbda7be0cfd23bc.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1281 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/io/spi.c')
-rw-r--r-- | os/io/spi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/io/spi.c b/os/io/spi.c index 226751ddb..4d45d217d 100644 --- a/os/io/spi.c +++ b/os/io/spi.c @@ -159,7 +159,7 @@ void spiIgnore(SPIDriver *spip, size_t n) { * @note The buffers are organized as uint8_t arrays for data sizes below or
* equal to 8 bits else it is organized as uint16_t arrays.
*/
-void spiExchange(SPIDriver *spip, size_t n, void *txbuf, void *rxbuf) {
+void spiExchange(SPIDriver *spip, size_t n, const void *txbuf, void *rxbuf) {
chDbgCheck((spip != NULL) && (n > 0) && (rxbuf != NULL) && (txbuf != NULL),
"spiExchange");
@@ -180,7 +180,7 @@ void spiExchange(SPIDriver *spip, size_t n, void *txbuf, void *rxbuf) { * @note The buffers are organized as uint8_t arrays for data sizes below or
* equal to 8 bits else it is organized as uint16_t arrays.
*/
-void spiSend(SPIDriver *spip, size_t n, void *txbuf) {
+void spiSend(SPIDriver *spip, size_t n, const void *txbuf) {
chDbgCheck((spip != NULL) && (n > 0) && (txbuf != NULL),
"spiSend");
|