/*!
 * @file        readme.txt
 *
 * @brief       This file is routine instruction
 *
 * @version     V1.0.5
 *
 * @date        2026-10-09
 *
 * @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 describes how to use USART1 with DMA to send and receive data.
DMA1 Channel5 receives data in circular mode. The USART1 idle interrupt queues
received data, and the main loop echoes it through DMA1 Channel4.
The board sends "Hello UART1!\r\n" every second and toggles LED2.
LED2 also toggles when an echo block is sent.

Connect a 3.3 V USB-to-UART adapter as follows:
Adapter RX   to USART1 TX (PA9)
Adapter TX   to USART1 RX (PA10)
Adapter GND  to board GND

Configure the serial terminal for 115200 baud, 8 data bits, no parity,
1 stop bit and no hardware flow control. Send a burst of fewer than 64 bytes,
then wait for its echo before sending the next burst.

&par Directory contents

  - USART/USART_DMA/Source/apm32f10x_int.c     Interrupt handlers
  - USART/USART_DMA/Source/main.c              Main program
  - USART/USART_DMA/Source/system_apm32f10x.c  System clock configuration

&par IDE environment

  - MDK-ARM V5.36
  - EWARM V8.50.5.26295
  - Eclipse project: Project/Eclipse

&par Hardware and Software environment

  - This example runs on APM32F103 MINI Devices.
