Overview
========
The flexio_qspi_master example shows how to use flexio spi master driver in edma way:

In this example, a flexio simulated master connect to a lpspi slave .



Toolchain supported
===================
- IAR embedded Workbench  9.30.1
- Keil MDK  5.37
- GCC ARM Embedded  10.3.1
- MCUXpresso  11.7.0

Hardware requirements
=====================
- Mini/micro USB cable
- MCX-N9XX-EVK Board
- Personal Computer

Board settings
==============
To make the example work, connections needed to be as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MASTER(FlexIO SPI)
Pin Name    Board Location
SCK         J20-23  FXIO_D26
PCS0        J20-24  FXIO_D27
MOSI0       J20-25  FXIO_D28
MOSI1       J20-26  FXIO_D29
MOSI2       J20-27  FXIO_D30
MOSI3       J20-28  FXIO_D31
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SLAVE(LPSPI1) connect to      
Pin Name    Board Location
MOSI        J2-10
MISO        J2-8
SCK         J2-12
PCS0        J2-6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Prepare the Demo
================
1.  Connect a USB cable between the host PC and the EVK board J5.
2.  Open a serial terminal with the following settings:
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.
4.  Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo
================
In the case MOSIx is connected to MOSI0, when the demo runs successfully, the log would be seen on the terminal:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FLEXIO Master edma - LPSPI Slave edma example start.
This example use one flexio spi as master and one lpspi instance as slave on one board.
Master and slave both use edma way.
Please make sure you make the correct line connection. Basically, the connection is:
FLEXIO_QSPI_master -- LPSPI_slave
   SCK      --    SCK
   PCS0     --    PCS0
   MOSI     --    MOSI
This is QSPI Master call back.
This is LPSPI slave call back.
FLEXIO QSPI master[0] <-> SPI slave transfer all data matched!


 Press any key to run again
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
