资源简介
在使用串口时,使用dma接收会提高程序的运行效率,所以我写一个串口dma接收程序,使用hal的cubemx配置,实现功能

代码片段和文件信息
/**
******************************************************************************
* @file stm32f4xx_hal.c
* @author MCD Application Team
* @brief HAL module driver.
* This is the common part of the HAL initialization
*
@verbatim
==============================================================================
##### How to use this driver #####
==============================================================================
[..]
The common HAL driver contains a set of generic and common APIs that can be
used by the PPP peripheral drivers and the user to start using the HAL.
[..]
The HAL contains two APIs‘ categories:
(+) Common HAL APIs
(+) Services HAL APIs
@endverbatim
******************************************************************************
* @attention
*
* © Copyright (c) 2017 STMicroelectronics.
* All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license
* the “License“; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “stm32f4xx_hal.h“
/** @addtogroup STM32F4xx_HAL_Driver
* @{
*/
/** @defgroup HAL HAL
* @brief HAL module driver.
* @{
*/
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/** @addtogroup HAL_Private_Constants
* @{
*/
/**
* @brief STM32F4xx HAL Driver version number V1.7.8
*/
#define __STM32F4xx_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define __STM32F4xx_HAL_VERSION_SUB1 (0x07U) /*!< [23:16] sub1 version */
#define __STM32F4xx_HAL_VERSION_SUB2 (0x08U) /*!< [15:8] sub2 version */
#define __STM32F4xx_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */
#define __STM32F4xx_HAL_VERSION ((__STM32F4xx_HAL_VERSION_MAIN << 24U)\
|(__STM32F4xx_HAL_VERSION_SUB1 << 16U)\
|(__STM32F4xx_HAL_VERSION_SUB2 << 8U )\
|(__STM32F4xx_HAL_VERSION_RC))
#define IDCODE_DEVID_MASK 0x00000FFFU
/* ------------ RCC registers bit address in the alias region ----------- */
#define SYSCFG_OFFSET (SYSCFG_base - PERIPH_base)
/* --- MEMRMP Register ---*/
/* Alias word address of UFB_MODE bit */
#define MEMRMP_OFFSET SYSCFG_OFFSET
#define UFB_MODE_BIT_NUMBER SYSCFG_MEMRMP_UFB_MODE_Pos
#define UFB_MODE_BB (uint32_t)(PERIPH_BB_base + (MEMRMP
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6613 2020-08-14 22:43 dma\.mxproject
文件 5732 2020-08-14 22:43 dma\dma.ioc
文件 1349439 2020-05-08 12:44 dma\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f407xx.h
文件 9485 2020-05-08 12:44 dma\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h
文件 3796 2020-05-08 12:44 dma\Drivers\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h
文件 28208 2020-05-08 12:44 dma\Drivers\CMSIS\Include\cmsis_armcc.h
文件 56497 2020-05-08 12:44 dma\Drivers\CMSIS\Include\cmsis_armclang.h
文件 9014 2020-05-08 12:44 dma\Drivers\CMSIS\Include\cmsis_compiler.h
文件 62344 2020-05-08 12:44 dma\Drivers\CMSIS\Include\cmsis_gcc.h
文件 28414 2020-05-08 12:44 dma\Drivers\CMSIS\Include\cmsis_iccarm.h
文件 1716 2020-05-08 12:44 dma\Drivers\CMSIS\Include\cmsis_version.h
文件 97995 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_armv8mbl.h
文件 168914 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_armv8mml.h
文件 42208 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm0.h
文件 50464 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm0plus.h
文件 43456 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm1.h
文件 104628 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm23.h
文件 111854 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm3.h
文件 175600 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm33.h
文件 123607 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm4.h
文件 148588 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_cm7.h
文件 47249 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_sc000.h
文件 110523 2020-05-08 12:44 dma\Drivers\CMSIS\Include\core_sc300.h
文件 11711 2020-05-08 12:44 dma\Drivers\CMSIS\Include\mpu_armv7.h
文件 10958 2020-05-08 12:44 dma\Drivers\CMSIS\Include\mpu_armv8.h
文件 2757 2020-05-08 12:44 dma\Drivers\CMSIS\Include\tz_context.h
文件 213046 2020-05-08 12:44 dma\Drivers\STM32F4xx_HAL_Driver\Inc\Legacy\stm32_hal_legacy.h
文件 13156 2020-05-08 12:44 dma\Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal.h
文件 17553 2020-05-08 12:44 dma\Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_cortex.h
文件 7249 2020-05-08 12:44 dma\Drivers\STM32F4xx_HAL_Driver\Inc\stm32f4xx_hal_def.h
............此处省略162个文件信息
相关资源
- 基于xilinx FPGA的PCIe设计实战
- 一个简单的verilog编写的DMA IP CORE,和
- halcon 测量助手
- stm32通过DMA方式采集ADC数据
- MQTT+串口(usart)透传
- halcon简单实现人脸识别.hdev
- halcon极坐标变换傅里叶变换
- halcon算子速查手册.pdf115507
- halcon-ocr训练及识别
- Halcon车牌识别
- halcon实现创建模板中心可以任意设置
- halcon-标定与精确测量
- labview掉halcon.vi
- 基于HALCON识别指示灯亮灭和OCR识别.
- halcon跟随测量.hdev
- 视觉分拣.hdev
- Halcon之OCR(看完必会)
- stm32的DAC播放音乐文件
- STM32F103 USART+DMA
- DMA+stm32 407.zip
- 4_USART串口通信(空闲中断+DMA.zip
- stm32f105-usart-DMA收发demo
- STM32F042F6P6 Uart12DMA;发送中断接收
- Hall effect of reactive sputtered iron nitride
- HALCON使用手册简体中文版
- Bioleaching of chalcopyrite and marmatite by m
- TD-SCDMA网络测试仪中E1数据采集卡的驱
- TD-SCDMA测试仪中Iub接口CDR的合成方案
- 安捷伦CDMA2000测试解决方案
- FreeModbus_Slave+STM32F407+USART2代码亲测可
评论
共有 条评论