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.

CCS/CC2640R2F: easier ways including libraries

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hello all iam having a bit of a problem trying to find a easier way including libraries.So far my steps are finding a header file in tirtos documentation for example ti/drivers/spi/SPICC26XXDMA.h then putting a

#include <ti/drivers/spi/SPICC26XXDMA.h> then i compile the code and if there is a error where it cant find the source file SPICC26XXDMA.h i find the correct folder were the header file is and add it in the Include Options under the C/C++ Build.Is there a way i can add all the libraries in my project without having to go one by one,or any other way to do it is welcomed.Thanks

  • For TI-Drivers, reference their TI-Driver examples. By design, the application should not #include any <Driver>CC26XX.h file. This is however only true for standard TI drivers such as SPI, UART, etc..where there is a header file in the ti/drivers directory. In this case, your application should only do #include <ti/drivers/SPI.h> and use the SPI APIs (See the TI drivers doxygen).

    The only file that should be including the ti/drivers/SPICC26XXDMA.h is the "board" file where the driver gets plugged into the SPI_config[] array.

    To add the libraries themselves, see what libraries are available in ti/drivers/lib. Those are the driver libraries you want to link with. (*.aem3 for CCS)

    Hope this helps.
  • Yes that does thank you