summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-10-02 22:32:06 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-10-02 22:33:38 +0200
commit018e6617666c322b16359608842907c9b8c3e91c (patch)
treea6924077ff62dad6e99ef920466a3653ba1fbdf9 /src/arch
parentd20e71ac9f652f3684e1dc2b3d0e2f221334d9de (diff)
msp430fr spi: Use 16-bit lengths
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/msp430fr5969lp/driver/spi.cc4
-rw-r--r--src/arch/msp430fr5994lp/driver/spi.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch/msp430fr5969lp/driver/spi.cc b/src/arch/msp430fr5969lp/driver/spi.cc
index 4092e6e..acd6f37 100644
--- a/src/arch/msp430fr5969lp/driver/spi.cc
+++ b/src/arch/msp430fr5969lp/driver/spi.cc
@@ -41,8 +41,8 @@ static inline unsigned char clean_rxbuf()
return UCB0RXBUF;
}
-signed char SPI::xmit(unsigned char tx_len, unsigned char *tx_buf,
- unsigned char rx_len, unsigned char *rx_buf)
+signed char SPI::xmit(unsigned int tx_len, unsigned char *tx_buf,
+ unsigned int rx_len, unsigned char *rx_buf)
{
if (tx_len < 1) {
return -1;
diff --git a/src/arch/msp430fr5994lp/driver/spi.cc b/src/arch/msp430fr5994lp/driver/spi.cc
index e1ad2ad..9659ec0 100644
--- a/src/arch/msp430fr5994lp/driver/spi.cc
+++ b/src/arch/msp430fr5994lp/driver/spi.cc
@@ -41,8 +41,8 @@ static inline unsigned char clean_rxbuf()
return UCB1RXBUF;
}
-signed char SPI::xmit(unsigned char tx_len, unsigned char *tx_buf,
- unsigned char rx_len, unsigned char *rx_buf)
+signed char SPI::xmit(unsigned int tx_len, unsigned char *tx_buf,
+ unsigned int rx_len, unsigned char *rx_buf)
{
if (tx_len < 1) {
return -1;