Skip to content

Commit 5c11f37

Browse files
tmediccianchao
authored andcommitted
include/nuttx/spi/spi_bitbang: Fix incompatible pointer type issue
This commit fixes the incompatible pointer type issue due to incompatible types of the `bitexchange_t` callback. Signed-off-by: Tiago Medicci Serrano <tiago.medicci@espressif.com>
1 parent 10df0c4 commit 5c11f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nuttx/spi/spi_bitbang.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct spi_bitbang_ops_s
7979

8080
/* This is the type of the function that can exchange one bit */
8181

82-
typedef CODE uint8_t (*bitexchange_t)(uint8_t dataout, uint32_t holdtime);
82+
typedef CODE uint16_t (*bitexchange_t)(uint16_t dataout, uint32_t holdtime);
8383

8484
/* This structure provides the state of the SPI bit-bang driver */
8585

0 commit comments

Comments
 (0)