Browse Source

fix i2c bug

master
zhaohe 1 year ago
parent
commit
891e025a95
  1. 8
      integration/nrfx/legacy/nrf_drv_twi.h

8
integration/nrfx/legacy/nrf_drv_twi.h

@ -335,7 +335,7 @@ __STATIC_INLINE
ret_code_t nrf_drv_twi_tx(nrf_drv_twi_t const * p_instance,
uint8_t address,
uint8_t const * p_data,
uint8_t length,
uint16_t length,
bool no_stop);
/**
@ -360,7 +360,7 @@ __STATIC_INLINE
ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance,
uint8_t address,
uint8_t * p_data,
uint8_t length);
uint16_t length);
/**
* @brief Function for preparing a TWI transfer.
@ -535,7 +535,7 @@ __STATIC_INLINE
ret_code_t nrf_drv_twi_tx(nrf_drv_twi_t const * p_instance,
uint8_t address,
uint8_t const * p_data,
uint8_t length,
uint16_t length,
bool no_stop)
{
ret_code_t result = 0;
@ -556,7 +556,7 @@ __STATIC_INLINE
ret_code_t nrf_drv_twi_rx(nrf_drv_twi_t const * p_instance,
uint8_t address,
uint8_t * p_data,
uint8_t length)
uint16_t length)
{
ret_code_t result = 0;
if (NRF_DRV_TWI_USE_TWIM)

Loading…
Cancel
Save