USART基于hal库stm32f407串口通讯.rar


基于hal库stm32f407串口通讯,采用dma能实现不定长的数据收发
资源截图
代码片段和文件信息
/**
  ******************************************************************************
  * @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.6
  */
#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   (0x06U) /*!< [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

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

     文件       6560  2019-05-26 14:14  USARTUSART.mxproject

     文件    1350860  2019-05-18 17:29  USARTUSARTDriversCMSISDeviceSTSTM32F4xxIncludestm32f407xx.h

     文件      10744  2019-05-18 17:29  USARTUSARTDriversCMSISDeviceSTSTM32F4xxIncludestm32f4xx.h

     文件       3796  2019-05-18 17:29  USARTUSARTDriversCMSISDeviceSTSTM32F4xxIncludesystem_stm32f4xx.h

     文件      28208  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecmsis_armcc.h

     文件      56497  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecmsis_armclang.h

     文件       9014  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecmsis_compiler.h

     文件      62344  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecmsis_gcc.h

     文件      28414  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecmsis_iccarm.h

     文件       1716  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecmsis_version.h

     文件      97995  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_armv8mbl.h

     文件     168914  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_armv8mml.h

     文件      42208  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm0.h

     文件      50464  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm0plus.h

     文件      43456  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm1.h

     文件     104628  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm23.h

     文件     111854  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm3.h

     文件     175600  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm33.h

     文件     123607  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm4.h

     文件     148588  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_cm7.h

     文件      47249  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_sc000.h

     文件     110523  2019-05-18 17:32  USARTUSARTDriversCMSISIncludecore_sc300.h

     文件      11711  2019-05-18 17:32  USARTUSARTDriversCMSISIncludempu_armv7.h

     文件      10958  2019-05-18 17:32  USARTUSARTDriversCMSISIncludempu_armv8.h

     文件       2757  2019-05-18 17:32  USARTUSARTDriversCMSISInclude z_context.h

     文件     193776  2019-05-18 17:45  USARTUSARTDriversSTM32F4xx_HAL_DriverIncLegacystm32_hal_legacy.h

     文件      12898  2019-05-18 17:45  USARTUSARTDriversSTM32F4xx_HAL_DriverIncstm32f4xx_hal.h

     文件      17553  2019-05-18 17:45  USARTUSARTDriversSTM32F4xx_HAL_DriverIncstm32f4xx_hal_cortex.h

     文件       7249  2019-05-18 17:45  USARTUSARTDriversSTM32F4xx_HAL_DriverIncstm32f4xx_hal_def.h

     文件      38849  2019-05-18 17:45  USARTUSARTDriversSTM32F4xx_HAL_DriverIncstm32f4xx_hal_dma.h

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

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

发表评论

评论列表(条)