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.

TI drivers or driverlib. Which one should I use?

Other Parts Discussed in Thread: MSP-EXP430F5529LP, MSP-EXP430FR6989, MSP-EXP430FR5994, MSP-EXP430FR5969

Hi, I found that for handling peripherals (ADC, RTC, UART, etc) there are these 2 options. I would like to know what are the similarities and differences between them, What are the pros and cons of each one and when should I use one or another.

Thanks in advance.

Gustavo.

  • Of the two options, I prefer the first where someone does it for me . When I have to go down the 2nd option, I tend to struggle. I find my job much easier if it is done by somebody else

    My experience anyway.
  • Gustavo,
    The TI Drivers are for the SimpleLink platform devices, like the MSP432, and not the MSP430. If you want to take your application across the SimpleLink platform, then the TI Drivers will provide that portability. Please refer to the SimpleLink Academy for more information: dev.ti.com/.../ .

    As Danny F points out, there is a fair amount of work done to abstract you from having to know the driver library calls or the register level programming. Today, I believe that the driverLib gives you almost complete access to the device functionality. We are continuing to work and develop the TIDrivers to reach that same level of access. A list of the current TIDrivers can be found here:

    dev.ti.com/.../

    Regards,
    Chris
  • Hi Chris, thanks for your response. I asked this because in http://dev.ti.com/tirex/content/tirtos_msp43x_2_20_00_06/products/tidrivers_msp43x_2_20_00_08/release_notes_tidrivers_2_20_00_08.html  says that TI drivers "can be used as a stand-alone library in non-TI-RTOS environments". Also, as is packed with TI-RTOS and TI-RTOS supports some MSP430 boards (MSP-EXP430FR5969, MSP-EXP430FR5994, MSP-EXP430FR6989, MSP-EXP430F5529LP), I supposed that TI drivers could be used with MSP430 devices.

    In the other hand, I found that, for example, TI driver for UART allows, a callback mode, something that I can not found in driverlib. Am I right? If so, what could be a good approach to achieve this with driverlib? Originally, my question was more intended on this kind of features or capabilities for both libraries.

  • No, the TI Drivers are not written to be used with MSP430 devices.

    In the context of MSP432 driverLib, you can create a callback but through the APIs you are enabling the interrupt and coding the ISR. Please see this UART example:
    dev.ti.com/.../

    Regards,
    Chris

**Attention** This is a public forum