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.

RTOS/CC1352P: Disable Uart in CC1352

Part Number: CC1352P

Tool/software: TI-RTOS

Hi, i am using the CC1352P launchpad and using SDK2.30.

I want to Disable the uart recpetion. So i have tried the 

stats =  UART_control(app_uart0_handle, UART_CMD_RXDISABLE,  NULL);

but result will failed(stat = -02) and retunring undefine command.

I need to disbale the uart reception at any instance in real time.

So how can i do it ?

Any help will be appreciated.

Thanks in advance

  • Hi,

    You should avoid to use UART_control() as this is not portable between the platforms (and I guess this is what you are experiencing here). Try to have a look to the UART driver specific to your device (UARTCC26X2.h) and use UART_readCancel() instead of UART_control().

    I hope this will help,

    Regards,

  • hi ,

    I just want to disable uart that mean it should not go to callback function till enable it again.

    how can i do that..?

  • Hi,

    "I just want to disable uart that mean it should not go to callback function till enable it again." > In this case you can basically "close" the UART driver (to free all the resources previously reserved and save power). For the details, please have a look to the TI drivers’ documentation (in the docs\tidrivers\tidriversAPIs.html folder of your SDK).

    Regards,