We have COINES which supports our dev kit.
And, there are examples based on make file.
If you are using your own mcu, it can not use directly, but you can check make file.
( In case of bmi160, default path is C:\COINES\v2.4\sensor-api\bmi160\)
Or, you can use it after you modify some interface part.
... View more