diff options
-rw-r--r-- | include/arch/msp430fr5969lp/driver/spi.h | 4 | ||||
-rw-r--r-- | include/arch/msp430fr5994lp/driver/spi.h | 4 | ||||
-rw-r--r-- | src/arch/msp430fr5969lp/driver/spi.cc | 4 | ||||
-rw-r--r-- | src/arch/msp430fr5994lp/driver/spi.cc | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/include/arch/msp430fr5969lp/driver/spi.h b/include/arch/msp430fr5969lp/driver/spi.h index 32b9f94..7e95105 100644 --- a/include/arch/msp430fr5969lp/driver/spi.h +++ b/include/arch/msp430fr5969lp/driver/spi.h @@ -14,8 +14,8 @@ class SPI { SPI () {} void setup(); signed char xmit( - unsigned char tx_len, unsigned char *tx_buf, - unsigned char rx_len, unsigned char *rx_buf); + unsigned int tx_len, unsigned char *tx_buf, + unsigned int rx_len, unsigned char *rx_buf); }; extern SPI spi; diff --git a/include/arch/msp430fr5994lp/driver/spi.h b/include/arch/msp430fr5994lp/driver/spi.h index 32b9f94..7e95105 100644 --- a/include/arch/msp430fr5994lp/driver/spi.h +++ b/include/arch/msp430fr5994lp/driver/spi.h @@ -14,8 +14,8 @@ class SPI { SPI () {} void setup(); signed char xmit( - unsigned char tx_len, unsigned char *tx_buf, - unsigned char rx_len, unsigned char *rx_buf); + unsigned int tx_len, unsigned char *tx_buf, + unsigned int rx_len, unsigned char *rx_buf); }; extern SPI spi; 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; |