/*!
 * @file        readme.txt
 *
 * @brief       This file is routine instruction
 *
 * @version     V1.0.3
 *
 * @date        2022-09-20
 *
 * @attention
 *
 *  Copyright (C) 2020-2022 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 example provides a small application in which system sends and receives data by polling
though using SPI firmware library. All received information will be displayed by serial assistant.

To use this example, you need to load it on two APM32F030 or APM32F072 boards (let's call
them Board master and Board slave). Then connect these two boards through SPI lines and
must master and slave connect to the same GND.
When compare buffer is the same, the LED2 is on.
The phenomenon of data interaction process can be displayed using serial assistant.

                Master      Slave
 CLK            PA5         PA5
 NSS            PA4         PA4
 MISO           PA6         PA6
 MOSI           PA7         PA7

&par Hardware Description

using USART1(TX:PA9, RX:PA10) to Master.
  - USART1 configured as follow:
  - BaudRate    =   115200
  - Word Length =   USART_WordLength_8b
  - Stop Bit    =   USART_StopBits_1
  - Parity      =   USART_Parity_No
  - Hardware flow control disabled (RTS and CTS signals)
  - Receive and transmit enabled

&par Directory contents

  - SPI/SPI_TwoBoards/slave/Source/apm32f0xx_int.c          Slave  Interrupt handlers
  - SPI/SPI_TwoBoards/slave/Source/main.c                   Slave  Main program
  - SPI/SPI_TwoBoards/master/Source/apm32f0xx_int.c         Master Interrupt handlers
  - SPI/SPI_TwoBoards/master/Source/main.c                  Master Main program

&par Hardware and Software environment

  - This example runs on APM32F030 or APM32F072 MINI Devices.
