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.

Compiler/MSP432P401R: Custom #include files not referencing TI DRIVERS that are referenced in main.c

Part Number: MSP432P401R

Tool/software: TI C/C++ Compiler

I am using a temperature sensor (si7021) hooked up to an I2C port on the MSP432P401R launchpad.  I am using TI-RTOS and the TI/CCS compiler.  The code works.

I'd like to make a custom library, with a si7021.h and si7021.c file, to get all of the function declarations and functions themselves out of the main.c.  In other compilers, I would just create a .h file with the declarations, and a .c file of the same name with the functions themselves, then include the header in main.c and call the functions in the program.  This isn't working.

I get compiler errors every time my si7021.c tries to reference any I2C object from the I2C drivers that are referenced in the main.c file.  

What am I missing?

Appreciate any assistance.  I can include code, but figured this is probably something more fundamental.