-
大小: 1.69MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-08-31
- 语言: 其他
- 标签: STM32USART
资源简介
参考论坛的一下文档,写了这个STM32串口DMA收发程序,里面有详细注释,方便查看。
代码片段和文件信息
/**
******************************************************************************
* @file misc.c
* @author MCD Application Team
* @version V3.5.0
* @date 11-March-2011
* @brief This file provides all the miscellaneous firmware functions (add-on
* to CMSIS functions).
******************************************************************************
* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* © COPYRIGHT 2011 STMicroelectronics
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include “misc.h“
/** @addtogroup STM32F10x_StdPeriph_Driver
* @{
*/
/** @defgroup MISC
* @brief MISC driver modules
* @{
*/
/** @defgroup MISC_Private_TypesDefinitions
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Defines
* @{
*/
#define AIRCR_VECTKEY_MASK ((uint32_t)0x05FA0000)
/**
* @}
*/
/** @defgroup MISC_Private_Macros
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Variables
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_FunctionPrototypes
* @{
*/
/**
* @}
*/
/** @defgroup MISC_Private_Functions
* @{
*/
/**
* @brief Configures the priority grouping: pre-emption priority and subpriority.
* @param NVIC_PriorityGroup: specifies the priority grouping bits length.
* This parameter can be one of the following values:
* @arg NVIC_PriorityGroup_0: 0 bits for pre-emption priority
* 4 bits for subpriority
* @arg NVIC_PriorityGroup_1: 1 bits for pre-emption priority
* 3 bits for subpriority
* @arg NVIC_PriorityGroup_2: 2 bits for pre-emption priority
* 2 bits for subpriority
* @arg NVIC_PriorityGroup_3: 3 bits for pre-emption priority
* 1 bits for subpriority
* @arg NVIC_PriorityGroup_4: 4 bits for pre-emption priority
* 0 bits for subpriority
* @retval None
*/
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
{
/* Check the parameters */
assert_param(IS_NVIC_PRIORITY_GROUP(NVIC_PriorityGroup));
/* Set the PRIGROUP[10:8] bits according to NVIC_PriorityGroup value */
SCB->AIRCR = AIRCR_VECTKEY_MASK | NVIC_PriorityGroup;
}
/**
* @brief Initializes the NVIC p
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-12-18 14:47 USART串口DMA通信\
目录 0 2017-11-27 09:19 USART串口DMA通信\ASM\
文件 10308 2008-09-21 13:21 USART串口DMA通信\ASM\cortexm3_macro.s
文件 15761 2010-04-23 10:40 USART串口DMA通信\ASM\startup_stm32f10x_cl.s
文件 15503 2011-03-10 10:52 USART串口DMA通信\ASM\startup_stm32f10x_hd.s
文件 12376 2011-03-10 10:52 USART串口DMA通信\ASM\startup_stm32f10x_ld.s
文件 13651 2010-04-23 10:40 USART串口DMA通信\ASM\startup_stm32f10x_ld_vl.s
文件 12765 2011-03-10 10:52 USART串口DMA通信\ASM\startup_stm32f10x_md.s
文件 14068 2010-04-23 10:40 USART串口DMA通信\ASM\startup_stm32f10x_md_vl.s
文件 15950 2010-04-23 10:40 USART串口DMA通信\ASM\startup_stm32f10x_xl.s
文件 9630 2009-11-21 17:22 USART串口DMA通信\ASM\stm32f10x_startup.s
目录 0 2017-11-27 09:19 USART串口DMA通信\Lib\
目录 0 2017-11-27 09:19 USART串口DMA通信\Lib\SRC\
文件 7046 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\misc.c
文件 47201 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_adc.c
文件 8463 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_bkp.c
文件 45103 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_can.c
文件 11656 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_cec.c
文件 3347 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_crc.c
文件 19087 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_dac.c
文件 5149 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_dbgmcu.c
文件 29607 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_dma.c
文件 6959 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_exti.c
文件 62551 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_flash.c
文件 35484 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_fsmc.c
文件 21953 2013-01-21 16:11 USART串口DMA通信\Lib\SRC\stm32f10x_gpio.c
文件 45781 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_i2c.c
文件 4916 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_iwdg.c
文件 8759 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_pwr.c
文件 51271 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_rcc.c
文件 8598 2011-03-10 10:47 USART串口DMA通信\Lib\SRC\stm32f10x_rtc.c
............此处省略97个文件信息
- 上一篇:组合数学曹汝成课后习题答案+课件
- 下一篇:神州数码交换机培训教程
评论
共有 条评论