Compiler error - undefined reference to `DRV_I2C_TransferEventHandlerSet'
I get the following error :-
undefined reference to `DRV_I2C_TransferEventHandlerSet'
whilst trying to compile my code as shown :-
app_systemData.i2cHandle = DRV_I2C_Open( DRV_I2C_INDEX_1, DRV_IO_INTENT_READWRITE );
if (app_systemData.i2cHandle != DRV_HANDLE_INVALID)
/* Register the I2C Driver client event callback */
DRV_I2C_TransferEventHandlerSet(app_systemData.i2cHandle, APP_I2C_IoExpander_EventHandler, 0);
The odd thing is that it manages to find the DRV_I2C_Open function but errors on the DRV_I2C_TransferEventHandlerSet function.
I have included the file #include "driver/i2c/drv_i2c.h" and I can see the function there!
Anyone else experienced this issue?