Hello,
We have a CC1310 with the UART working nicely. I can see the RX & TX being set up with the following code:
/* * ============================= UART begin =================================== */ /* Place into subsections to allow the TI linker to remove items properly */ #if defined(__TI_COMPILER_VERSION__) #pragma DATA_SECTION(UART_config, ".const:UART_config") #pragma DATA_SECTION(uartCC26XXHWAttrs, ".const:uartCC26XXHWAttrs") #endif /* Include drivers */ #include <ti/drivers/UART.h> #include <ti/drivers/uart/UARTCC26XX.h> /* UART objects */ UARTCC26XX_Object uartCC26XXObjects[CC1310_LAUNCHXL_UARTCOUNT]; /* UART hardware parameter structure, also used to assign UART pins */ const UARTCC26XX_HWAttrsV1 uartCC26XXHWAttrs[CC1310_LAUNCHXL_UARTCOUNT] = { { .baseAddr = UART0_BASE, .powerMngrId = PowerCC26XX_PERIPH_UART0, .intNum = INT_UART0_COMB, .intPriority = ~0, .swiPriority = 0, .txPin = Board_UART_TX, .rxPin = Board_UART_RX, .ctsPin = PIN_UNASSIGNED, .rtsPin = PIN_UNASSIGNED } }; /* UART configuration structure */ const UART_Config UART_config[] = { { .fxnTablePtr = &UARTCC26XX_fxnTable, .object = &uartCC26XXObjects[0], .hwAttrs = &uartCC26XXHWAttrs[0] }, {NULL, NULL, NULL} };
I understand that the CC1310 only has 1 UART.
My question is it possible to change TX pin on runtime?
For example, once powered on, I need the CC1310 to transmit a few commands on IOID_26. After those commands are sent, I want to change the TX pin to IOID_30. The TX pin will remain on IOID_30 till reset or till power is lost. Is it possible to achieve this operation? Please let me know.
Thanks in advance,
Jayson