port set problem when using twi_sw_master.c

 Hello,

It is being developed using nrf52833, SOFTDEVICE-s140, SDK-17.1.0.

There is no problem in port-0 during I2C communication using twi_sw_master.c

,but when port-1 is used, the following warning is shown.

 

- in twi_master_config.h

#define   TWI_MASTER_CONFIG_CLOCK_PIN_NUMBER      NRF_GPIO_PIN_MAP(1,0)   // or 32

 

- warinig when build

compiling twi_sw_master.c...
..\..\components\drivers_nrf\twi_master\deprecated\twi_sw_master.c(89): warning: #175-D: subscript out of range

WI_SCL_STANDARD0_NODRIVE1(); /*lint !e416 "Creation of out of bounds pointer" */
..\..\components\drivers_nrf\twi_master\deprecated\twi_sw_master.c(92): warning: #63-D: shift count is too large

WI_SCL_HIGH();
..\..\components\drivers_nrf\twi_master\deprecated\twi_sw_master.c(93): warning: #63-D: shift count is too large

I want to ask which part needs to be modified.

 thanks.

Parents Reply Children
No Data
Related