This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c11f37e93d include/nuttx/spi/spi_bitbang: Fix incompatible pointer 
type issue
5c11f37e93d is described below

commit 5c11f37e93d4c596defdfcc0cc4d56881efaf6ee
Author: Tiago Medicci Serrano <[email protected]>
AuthorDate: Thu Sep 18 11:25:52 2025 -0300

    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 <[email protected]>
---
 include/nuttx/spi/spi_bitbang.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/nuttx/spi/spi_bitbang.h b/include/nuttx/spi/spi_bitbang.h
index 69483b68299..359c7e329e7 100644
--- a/include/nuttx/spi/spi_bitbang.h
+++ b/include/nuttx/spi/spi_bitbang.h
@@ -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 */
 

Reply via email to