I'm a new user of NXP's MCU. I want to use the SDSPI in MCUXpresso SDK API, but I don't know how to do the initial. The typical use case is written as below:
/* SPI_Init(). */
/* Register the SDSPI driver callback. */
/* Initializes card. */
if (kStatus_Success != SDSPI_Init(card))
and I also check the definition of struct "sdspi_host_t" and "sdspi_card_t".
But I'm confused about how to initialize them, how to use the SPI1 port to use the API.
ps: I'm using FRDM-KL46Z and Xpresso IDE + SDK 2.4.1.
Thank you for your kindly reply!