mirror of
https://github.com/apache/nuttx.git
synced 2025-12-16 01:34:58 +08:00
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>
This commit is contained in:
committed by
Xiang Xiao
parent
94ad260843
commit
70b5aa4df0
@@ -79,7 +79,7 @@ struct spi_bitbang_ops_s
|
||||
|
||||
/* This is the type of the function that can exchange one bit */
|
||||
|
||||
typedef CODE uint8_t (*bitexchange_t)(uint8_t dataout, uint32_t holdtime);
|
||||
typedef CODE uint16_t (*bitexchange_t)(uint16_t dataout, uint32_t holdtime);
|
||||
|
||||
/* This structure provides the state of the SPI bit-bang driver */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user