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.

how to setup the PORT ID for a PIN in TI RTOS project?

Hi

The technical reference manual for CC26xx and CC13xx says

"The MCU IOC can map a number of peripheral modules such as GPIO, SSI (SPI), UART, I2C, and I2S to any of the available I/Os. The peripherals AUX and JTAG are limited to specific I/O pins. Each type of peripheral signal has a unique PORTID that can be assigned to selected I/O pins (referenced as DIOs).lists of all the available PORTIDs." at setction 11.3 I/O mapping and configuration.

So any one of DIO of my CC26XX/CC13XX chip can be mapping to SPI/UART.

And Table 11-3 shows the GPIO is the default PORT ID for a PIN.

Under tirtos_simplelink_2_14_03_28 folderuartecho sample doesn't shows how to setup the PORT ID for PIN.  But uart->hwAttrs shows the DIO 3 and DIO 2 are for UART TX and RX respectively. 

I think there is default configuration of PORT ID for these PINs. So any body can tell me what a about this default PORT ID configuration?

If I am wrong, please point me where setup PORT ID in uartecho sample?

Thanks

  • I seems like below:
    C:\ti\tirtos_simplelink_2_14_03_28\packages\ti\boards\SRF06EB\CC1310EM_7ID_7793\board.h gives the default PORT ID for the DIOs. And the mapping changes and rebuild the TI RTOS. The default PORT ID for PIN will change.

    HH