Hello,
i2c_transfer API is in non - task thread. Am calling that fthread from task thread. During execution, program exits in I2C_transfer step. Can anyone point in right direction?
can't post the actual code now. but it looks something like this.
Void TaskFxn()
{
I2C_Read(I2C_Handle handle, uint8_t deviceAddr, uint16_t regAddr, uint8_t *data, size_t length);
}
void I2C_Read(I2C_Handle handle, uint8_t deviceAddr, uint16_t regAddr, uint8_t *data, size_t length)
{
i2c_transfer();
}
main()
{
task_create(TaskFxn);
}