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.

MSP432P401R: Query regarding rtos and no-rtos driver api's

Part Number: MSP432P401R

Hello All,

I have msp432P401R launchpad.

I have a query regarding the rtos and no-rtos driver api's. I have some code developed already with no-rtos uart driver api's and now for other functionality I need to use rtos uart driver api's.

For example,

1. UART driver with no-rtos has api's like below,

MAP_UART_receiveData

MAP_UART_transmitData

2.  UART driver with rtos has api's like below,

UART_write

UART_read

Is it possible to combine rtos and no-rtos driver api's in a single project so that I can use all the uart api's? so that I can re-use the already built code with no-rtos on top of rtos code?

Please suggest.

  • Hi Tajpeer,

    You can have mixture of both driverlib calls (e.g. MAP_UART_receiveData) and "TI Driver" calls (e.g. UART_write). I would not mix the APIs for the same peripheral though. For example you can pick one style for UART0, another for UART1, etc. 

    If you are using TI-RTOS, do not use the driverlib calls to manage the vector table. You should use the Hwi module for this.

    Please note that SysConfig (which generates code to configure the peripherals) is geared toward the "TI Drivers". 

    Todd

**Attention** This is a public forum