/*!
 * @file        main.c
 *
 * @brief       This file contains all the functions for the ADC peripheral
 *
 * @version     V1.0.0
 *
 * @date        2025-05-31
 *
 * @attention
 *
 *  Copyright (C) 2023 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 uses the Update event of TMR1 to periodically trigger ADC1 acquisition.


&par Software Description

After the ADC is initialized, the update event of TMR1 is used to trigger the ADC acquisition.
In Debug mode, set a breakpoint at the entry of the ADC_Isr function and click Run at Full
Speed, and the program will stop there.
Or you can run it directly and see LED2 switching back and forth between on and off.


&par Hardware Description

J2 and J3 should be shorted.
using ADC_CHANNEL_4(PD3)
using ADC_CHANNEL_5(PD5).
using LED2(PB5).


&par Directory contents

  - ADC/TMR1_ADC_Trigger_Sampling/Source/apm32f00x_int.c    Interrupt handlers
  - ADC/TMR1_ADC_Trigger_Sampling/Source/main.c             Main program


&par Hardware and Software environment

  - This example runs on APM32F003 MINI Devices.


&par IDE environment

MDK-ARM V5.36
EWARM V8.50.5.26295
Eclipse V2022-06（4.24.0）
