I'm having trouble with HTS221 device driver integration (for a FreeRTOS app). ST provides a platform independent driver (see http://www.st.com/en/mems-and-sensors/hts221.html ). But those drivers have functions which need to be remapped :
// the user must redefine the proper HTS221_WriteReg
#define HTS221_WriteReg(RegAddr, NumByteToWrite, Data) HAL_WriteReg(HTS221_I2C_ADDRESS, RegAddr, NumByteToWrite, Data)
I want to use this driver with I2C but I don't find how, since I'm not use to play with drivers. The two pictures after come from the imx6 freertos bsp.
Did someone already do this ? Or use another similary driver with an imx6 board ?