• 大小: 4.44M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2025-04-19
  • 语言: C/C++
  • 标签: 获取  GD  ADC  

资源简介

      GD32通过规则组寄存器 DMA获取多组 ADC数据样例

资源截图

代码片段和文件信息

/*!
    \file  gd32f20x_it.c
    \brief interrupt service routines

    \version 2015-07-15 V1.0.0 demo for GD32F20x
    \version 2017-06-05 V2.0.0 demo for GD32F20x
    \version 2019-04-01 V2.1.0 demo for GD32F20x
*/

/*
    Copyright (c) 2019 GigaDevice Semiconductor Inc.

    All rights reserved.

    Redistribution and use in source and binary forms with or without modification 
are permitted provided that the following conditions are met:

    1. Redistributions of source code must retain the above copyright notice this 
       list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright notice 
       this list of conditions and the following disclaimer in the documentation 
       and/or other materials provided with the distribution.
    3. Neither the name of the copyright holder nor the names of its contributors 
       may be used to endorse or promote products derived from this software without 
       specific prior written permission.

    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ 
AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT 
INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT 
NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR 
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY 
WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.
*/

#include “gd32f20x_it.h“
#include “systick.h“

/*!
    \brief      this function handles NMI exception
    \param[in]  none
    \param[out] none
    \retval     none
*/
void NMI_Handler(void)
{
}

/*!
    \brief      this function handles HardFault exception
    \param[in]  none
    \param[out] none
    \retval     none
*/
void HardFault_Handler(void)
{
    /* if Hard Fault exception occurs go to infinite loop */
    while (1);
}

/*!
    \brief      this function handles MemManage exception
    \param[in]  none
    \param[out] none
    \retval     none
*/
void MemManage_Handler(void)
{
    /* if Memory Manage exception occurs go to infinite loop */
    while (1);
}

/*!
    \brief      this function handles BusFault exception
    \param[in]  none
    \param[out] none
    \retval     none
*/
void BusFault_Handler(void)
{
    /* if Bus Fault exception occurs go to infinite loop */
    while (1);
}

/*!
    \brief      this function handles UsageFault exception
    \param[in]  none
    \param[out] none
    \retval     none
*/
void UsageFault_Handler(void)
{
    /* if Usage Fault

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-11-20 16:42  ADC0_Regular_Parallel\
     目录           0  2019-11-20 16:42  ADC0_Regular_Parallel\EWARM\
     文件       37514  2019-04-11 14:16  ADC0_Regular_Parallel\EWARM\GD32207I_EVAL.ewd
     文件       31833  2019-04-11 14:16  ADC0_Regular_Parallel\EWARM\GD32207I_EVAL.ewp
     文件       64038  2019-04-11 14:16  ADC0_Regular_Parallel\EWARM\GD32207I_EVAL.ewt
     文件         167  2019-04-11 14:16  ADC0_Regular_Parallel\EWARM\GD32207I_EVAL.eww
     文件        3750  2019-04-11 14:16  ADC0_Regular_Parallel\gd32f20x_it.c
     文件        2663  2019-04-11 14:16  ADC0_Regular_Parallel\gd32f20x_it.h
     文件        2715  2019-04-11 14:16  ADC0_Regular_Parallel\gd32f20x_libopt.h
     文件        7983  2019-11-20 19:47  ADC0_Regular_Parallel\main.c
     目录           0  2019-11-20 19:54  ADC0_Regular_Parallel\MDK-ARM\
     文件         339  2019-11-20 19:49  ADC0_Regular_Parallel\MDK-ARM\EventRecorderStub.scvd
     文件      179571  2019-11-20 19:54  ADC0_Regular_Parallel\MDK-ARM\GD32207I_EVAL.uvgui.Administrator
     文件       24063  2019-11-20 19:54  ADC0_Regular_Parallel\MDK-ARM\GD32207I_EVAL.uvopt
     文件       25790  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\GD32207I_EVAL.uvproj
     文件       27790  2019-11-20 19:50  ADC0_Regular_Parallel\MDK-ARM\JlinkLog.txt
     文件         755  2019-11-20 16:57  ADC0_Regular_Parallel\MDK-ARM\JlinkSettings.ini
     目录           0  2019-11-20 19:50  ADC0_Regular_Parallel\MDK-ARM\list\
     目录           0  2019-11-20 19:50  ADC0_Regular_Parallel\MDK-ARM\output\
     文件          19  2019-11-20 19:50  ADC0_Regular_Parallel\MDK-ARM\output\ExtDll.iex
     文件      357361  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f207i_eval.crf
     文件      361262  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_adc.crf
     文件      355041  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_bkp.crf
     文件      362190  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_can.crf
     文件      353722  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_cau.crf
     文件      354896  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_cau_aes.crf
     文件      352668  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_cau_des.crf
     文件      352911  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_cau_tdes.crf
     文件      351878  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_crc.crf
     文件      356396  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_dac.crf
     文件      351627  2019-11-20 19:47  ADC0_Regular_Parallel\MDK-ARM\output\gd32f20x_dbg.crf
............此处省略31个文件信息

评论

共有 条评论