AnsweredAssumed Answered

SPI MQX set delays

Question asked by Cecylia Wati on Apr 30, 2015
Latest reply on May 4, 2015 by Daniel Chen

Hi there,

 

I've been trying to port some SPI code from basic KSDK 1.0.0 to MQX 4.1 (SPI not SPI legacy).

Code works smoothly in KSDK 1.0.0, but I notice some timing issues in MQX 4.1.

 

We use the following set delays in KSDK.  Is there similar set delay functionality in MQX for SPI?

 

  status = DSPI_DRV_MasterSetDelay(instance,

    kDspiPcsToSck,

    500, // delayInNanoSec

    & calculatedPcsToSck);

  if (status != kStatus_DSPI_Success)

  return false;

 

 

    status = DSPI_DRV_MasterSetDelay(instance,

    kDspiLastSckToPcs,

    500, // delayInNanoSec

    & calculatedLastSckToPcs);

  if (status != kStatus_DSPI_Success)

  return false;

 

 

  status = DSPI_DRV_MasterSetDelay(instance,

    kDspiAfterTransfer,

    500, // delayInNanoSec

    & calculatedAfterTransfer);

  if (status != kStatus_DSPI_Success)

  return false;

 

Thanks,
Cecylia

Outcomes