/*!
 * @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 shows I2C interrupt communication between two boards.
Each MDK/IAR project has two targets: APM32F105 and APM32F107.

Load the Master project into one board and the Slave project into the other.
Connect PB6 to PB6, PB7 to PB7, and GND. PB6 and PB7 need external pull-ups.

 - At startup both boards wait in slave receiver mode.
 - Press KEY1 on the master to send "Hello slave". The slave prints it on USART1.
   If the received bytes match "Hello slave", LED2 on the slave turns on.
 - Press KEY1 on the slave to send "Hello master". The master prints it on USART1.
   If the received bytes match "Hello master", LED2 on the master turns on.

&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_Interrupt/I2C_TwoBoards_Interrupt_Master/Source/main.c
  - I2C/I2C_TwoBoards_Interrupt/I2C_TwoBoards_Interrupt_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.
