/*!
 * @file        readme.txt
 *
 * @brief       This file is routine instruction
 *
 * @version     V1.0.5
 *
 * @date        2026-11-11
 *
 * @attention
 *
 *  Copyright (C) 2020-2026 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 transfers 50 bytes over I2C1 with DMA between two boards.
I2C1 TX uses DMA1 channel 6. I2C1 RX uses DMA1 channel 7.
Each MDK/IAR project has two targets: APM32F105 and APM32F107.

Start the slave first, then reset the master.
The master sends 0,1,2,...,49. The slave receives the buffer by DMA and echoes it.
The master receives the echo by DMA and compares it.
Both boards print the result on USART1. Master LED2 turns on when the echo matches,
and LED3 turns on when a step fails.

Slave 7-bit address is 0x50, programmed as 0xA0.
I2C speed is 100 kHz.

&par Hardware Description

   I2C     BOARD1    BOARD2
   SCL      PB6            PB6     (External Pull up resistance)
   SDA      PB7            PB7     (External Pull up resistance)

USART1 TX is PA9, 115200 8N1.

&par Directory contents

  - I2C/I2C_TwoBoards_DMA/I2C_TwoBoards_DMA_Master/Source/main.c
  - I2C/I2C_TwoBoards_DMA/I2C_TwoBoards_DMA_Slave/Source/main.c

&par IDE environment

  - MDK-ARM V5.36
  - EWARM V8.50.5.26295

&par Hardware and Software environment

  - This example runs on APM32F105 and APM32F107 devices.
