AnsweredAssumed Answered

LPSPI FreeRTOS Initialization Only for Master?

Question asked by Nick Guzzardo on Jul 29, 2019
Latest reply on Jul 31, 2019 by Daniel Chen

Within the MCUXpresso SDK, the non-RTOS initialization drivers for LPSPI include "LPSPI_MasterInit" and "LPSPI_SlaveInit".  When FreeRTOS is included, the associated RTOS driver is "LPSPI_RTOS_Init" which I initially presumed would have parameters for master or slave, but that doesn't appear to be the case.  Within LPSPI_RTOS_Init, LPSPI_MasterInit is called, but LPSPI_SlaveInit is not.  In fact, in the file "fsl_lpspi_freertos.c" there is no reference to the word "slave" at all!

 

When looking at the LPSPI / FreeRTOS example code (not available in the SDK for the RT1060 and RT1064), the FreeRTOS slave task initializes directly with "LPSPI_SlaveInit".

 

Why is their only a master LPSPI initialization function for FreeRTOS?

Outcomes