aboutsummaryrefslogtreecommitdiffstats
path: root/os/io/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/io/spi.c')
-rw-r--r--os/io/spi.c4
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");