This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Difference between I2C.h in driver lib and I2C.h in drivers

Bit a newbie to Ti controllers. I am using TM4C1294NPDT controller.

Currently working with I2C drivers for application of RTC. I found 2 I2C.h files in the locations

C:\ti\tirtos_tivac_2_01_00_03\products\TivaWare_C_Series-2.1.0.12573c\driverlib\I2C.h

C:\ti\tirtos_tivac_2_01_00_03\packages\ti\drivers\I2C.h

After observing both the library files, I found the I2C.h in products, does contain more pre-defined functions.

I need the following details:

  1. What are the scenarios, that I should consider using the libraries.
  2. If I am using the library from the location C:\ti\tirtos_tivac_2_01_00_03\products\TivaWare_C_Series-2.1.0.12573c\driverlib\I2C.h, is there a valid to initialize parameters like

params.transferMode = I2C_MODE_CALLBACK

params.transferCallbackFxn = someI2CCallbackFunction.

Kindly pardon me, if there are any mistakes in the question asked.

Thanks in advance.

  • Hello Chaitanya

    The one under products is the TivaWare driver files which is required when using TivaWare API's to handle the I2C function

    The one under packages is the RTOS drivers. I would consider asking the question on TI-RTOS Forum if details on latter are required.

    Regards
    Amit