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


Marcus Shawcroft <marcus.shawcroft@...>
 

On 26 January 2017 at 08:56, Nicolas Perrenoud
<nicolas.perrenoud(a)geo-satis.com> wrote:

Is there some thinks special to do to compile for NRF52 or is it ok to just
comment these two lines ?
Hi, Short term, just remove the two lines in question. I'll talk to
Carlesc and the Nordic guys to figure out what the proper solution
should be.

Cheers
/Marcus


Nicolas Perrenoud <nicolas.perrenoud@...>
 

Hi, Short term, just remove the two lines in question. I'll talk to
Carlesc and the Nordic guys to figure out what the proper solution
should be.
Ok Thanks

Nicolas