I2C compatibility with nrf52


Nicolas Perrenoud <nicolas.perrenoud@...>
 

Hello,



I tried to use the I2C driver for nRF52. When I compile I have the
followings errors :



/home/nicolas/Desktop/zephyr/drivers/i2c/i2c_nrf5.c:295:5: error:
'NRF_TWI_Type {aka volatile struct <anonymous>}' has no member named 'POWER'

twi->POWER = 0;



/home/nicolas/Desktop/zephyr/drivers/i2c/i2c_nrf5.c:296:5: error:
'NRF_TWI_Type {aka volatile struct <anonymous>}' has no member named 'POWER'

twi->POWER = 1;



The reason is NRF52 TWI module don't have POWER register.



Is there some thinks special to do to compile for NRF52 or is it ok to just
comment these two lines ?



Thanks,



Nicolas

Join devel@lists.zephyrproject.org to automatically receive all group messages.