• TI Thinks Resolved

RTOS/CC1352P: Disable Uart in CC1352

Prodigy 160 points

Replies: 3

Views: 48

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,

    __________

    Clément

  • In reply to Clément:

    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..?

  • In reply to Gaurav Choubey:

    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,

    __________

    Clément