hello,
I'm trying to do some I2C communication with nrf 9160 dk. I'm using Zephyr kernal and SEGGER SDK for program development. But when I compile the main.c file the result gives a error an in below noted.
Rebuilding ‘main.c’ from project ‘app/libapp.a’ from solution ‘build’ in configuration ‘Common’
1> Compiling ‘main.c’
1> [01m[K../src/main.c:5:10:[m[K [01;31m[Kfatal error: [m[Ki2c.h: No such file or directory
1> compilation terminated.
Build failed
If I am correct reason for this error is i2c.h header file not in my library. My questions are,
1. Where can I find this i2c.h library file?
I did some internet search so I found source code of i2c.h on this link: https://elixir.bootlin.com/zephyr/v1.14.0-rc3/source/include/i2c.h. But I have no idea how to use this source code and where should I save.
2. But I use syscalls/i2c.h library is it correct library for i2c communication?
If you have any guide for solve this issue please reply.
Thank You.