This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to Switch from spi0 to i2c0

Hi

i am using NRf51822 custom board. In that i have NOR(spi0) and LED(i2c0).

But switching from spi0 to i2c0 is not possible so that i am not able to switch

off led. But once i comment the spi_master_init(), led is going to off.

I know both uses same id means have same base address.

Kindly suggest how to switch from spi0 to i2c0.

i am not going to change spi and i2c bus for NOR and LED , because i have some other peripherals,

which is connected to i2c1 and spi1 bus.

Regards Balaji

Parents Reply Children
No Data
Related