/*!
 * @file        readme.txt
 *
 * @brief       Description for the example
 *
 * @version     V1.0.0
 *
 * @date        2024-03-20
 *
 * @attention
 *
 *  Copyright (C) 2024 Geehy Semiconductor
 *
 *  You may not use this file except in compliance with the
 *  GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE).
 *
 *  The program is only for reference, which is distributed in the hope
 *  that it will be useful and instructional for customers to develop
 *  their software. Unless required by applicable law or agreed to in
 *  writing, the program is distributed on an "AS IS" BASIS, WITHOUT
 *  ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions
 *  and limitations under the License.
 */

&par Example Description

This use case uses the cfgio module to simulate SPI communication, using the following pin configuration:
master:
CFGIO_D0 ==> PTD9 ==> MOSI
CFGIO_D1 ==> PTA11 ==>MISO
CFGIO_D2 ==> PTA0 ==> SCK
CFGIO_D3 ==> PTA1 ==> SS
slave:
CFGIO_D4 ==> PTA2 ==> MOSI
CFGIO_D5 ==> PTA3 ==> MISO
CFGIO_D6 ==> PTA8 ==> SCK
CFGIO_D7 ==> PTA9 ==> SS
You only need one development board,The wiring is as follows:
PTD9 ==> PTA2
PTA11 ==> PTA3
PTA0 ==> PTA8
PTA1 ==> PTA9
If the communication is successful, the green LED will be lit, and if it fails, the red LED will be lit.
The corresponding data will be output through the serial port.

&par Hardware Description

LPUART1 is configured as follows:
  - TX:PC7, RX:PC6
  - BaudRate = 115200 baud
  - Word Length = 8 Bits
  - One Stop Bit
  - No parity
  - Hardware flow control disabled (RTS and CTS signals)
  - Transmit enabled

&par Directory contents

&par IDE environment

  - MDK-ARM V5.36.0.0
  - EWARM V8.50.5.26295
  - Eclipse V2022-06(4.24.0)

&par Hardware and Software environment

  - This example runs on APM32F446 EVAL Devices.
