STM32L073实现DMA方式获取ADC多通道值,和DMA 串口发送


本程序实现了STM32L073用DMA方式获取三通道ADC转换数据,此功能在main函数中没有写出,功能以实现,串口通过DMA方式发送数据。用的是HAL库。
资源截图
代码片段和文件信息
/**
  ******************************************************************************
  * @file    system_stm32l0xx.c
  * @author  MCD Application Team
  * @version V1.7.1
  * @date    25-November-2016
  * @brief   CMSIS Cortex-M0+ Device Peripheral Access layer System Source File.
  *
  *   This file provides two functions and one global variable to be called from 
  *   user application:
  *      - SystemInit(): This function is called at startup just after reset and 
  *                      before branch to main program. This call is made inside
  *                      the “startup_stm32l0xx.s“ file.
  *
  *      - SystemCoreClock variable: Contains the core clock (HCLK) it can be used
  *                                  by the user application to setup the SysTick 
  *                                  timer or configure other parameters.
  *                                     
  *      - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
  *                                 be called whenever the core clock is changed
  *                                 during program execution.
  *
  *
  ******************************************************************************
  * @attention
  *
  * 

© COPYRIGHT(c) 2016 STMicroelectronics


  *
  * 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 STMicroelectronics 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.
  *
  ******************************************************************************
  */

/** @addto

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5460  2018-07-18 13:47  Fire_Cock.mxproject

     文件     490933  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l011xx.h

     文件     502148  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l021xx.h

     文件     503392  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l031xx.h

     文件     514607  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l041xx.h

     文件     518739  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l051xx.h

     文件     616127  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l052xx.h

     文件     629289  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l053xx.h

     文件     529954  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l061xx.h

     文件     627342  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l062xx.h

     文件     640504  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l063xx.h

     文件     539799  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l071xx.h

     文件     646331  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l072xx.h

     文件     659701  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l073xx.h

     文件     551014  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l081xx.h

     文件     657546  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l082xx.h

     文件     670916  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l083xx.h

     文件       8393  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludestm32l0xx.h

     文件       3922  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxIncludesystem_stm32l0xx.h

     文件      10891  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l011xx.s

     文件      11166  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l021xx.s

     文件      10431  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l031xx.s

     文件      10681  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l041xx.s

     文件      11017  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l051xx.s

     文件      11204  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l052xx.s

     文件      11278  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l053xx.s

     文件      11029  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l061xx.s

     文件      11215  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l062xx.s

     文件      11273  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l063xx.s

     文件      11325  2018-07-13 13:16  Fire_CockDriversCMSISDeviceSTSTM32L0xxSourceTemplatesarmstartup_stm32l071xx.s

............此处省略694个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)