I'm using a BME688 sensor with a CC2538. Im using Contiki operating system in my design. When I saw the Bosch-API for this sensor (https://github.com/BoschSensortec/BME68x-Sensor-API) I noticed that common.c/h file used coines.h library. I don't want to use this library, so I have to adapt it to Contiki's way. I have to use the BME688 sensor always with I2C protocol (I don't need SPI parts), so I could adapt the functions "BME68X_INTF_RET_TYPE bme68x_i2c_read()" and "BME68X_INTF_RET_TYPE bme68x_i2c_write", but I didnt know how to do it with "int8_t bme68x_interface_init(struct bme68x_dev *bme, uint8_t intf)" function.
Im having troubles with "coines_config_i2c_bus(COINES_I2C_BUS_0, COINES_I2C_STANDARD_MODE);" part. If anyone knows how I should adapt this function, it would be a great help.
In the photo I show how I think it has to be, except of this function.
Solved! Go to Solution.
Hi, I have the same problem. I'm tring to adapt the common.c file to my microcontroller (I'm using nRF52832 from Nordic) but I have some problems. Where can I fine the example code which contains the implementation of I2C interface function on STM32?
Thanks for helping