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/CC1310: SPI_Params: transferTimeout

Part Number: CC1310

Tool/software: TI-RTOS

Hi, all.

SPI_Params.transferTimeout : Transfer timeout in system ticks (Not supported with all implementations). 

Could anyone tell me which implementations support this param "transferTimeout" ?

Best Regards,

Gilbert

  • Hi, the transferTimeout is the parameter which is fed into the semaphore that the driver pends on in blocking mode.
    Due to TI's generic approach to drivers, some devices such as MSP (I think) does not suppot this feature. But the CC13xx/26xx does.

    In SPI master mode you probably want to set the timeout to BIOS_WAIT_FOREVER, since you typically never want to abort your ongoing SPI transfer.

    However in slave mode you might want to set an actual timeout, even though you call SPI_transfer(…) the master might never actually send anything, and then you’d be waiting forever if you don’t have a timeout…