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.

Starterware/TM4C123GH6PM: What is driverlib

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: EK-TM4C123GXL

Tool/software: Starterware

I am following some TI workshop recordings for TivaWare with TM4C microcontrollers, specifically the EK-TM4C123GXL.

The labs instruct me to add (link) driverlib.lib to a project. What is this, and why is it necessary?

The compiler knows the path to TivaWare source files like gpio.h and gpio.c. The labs tell me to use a variable, TIVAWARE_INSTALL, to specify this path. I assume the compiler doesn't need any more information to work. Where does drivelib fit in the system?

  • driverlib.lib is an object file library that contains all of the TivaWare functions. By linking to the library it is not necessary to include the  TivaWare library C files in your project. Nor is it necessary to recompile the library functions. In the image below, I defined a variable "TIVAWARE_INSTALL" as "C:\ti\TivaWare_C_Series-2.1.4.178".