野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 17795|回复: 1

库和寄存器手册相反

[复制链接]
发表于 2019-5-19 23:18:06 | 显示全部楼层 |阅读模式
各位大哥,不知道是我理解错了,还是其他原因为什么DMA_Init(DMA_Stream_TypeDef* DMAy_Streamx, DMA_InitTypeDef* DMA_InitStruct);里的结构体定义里的DMA_FIFOMode 的枚举手册里的不配套
/** @defgroup DMA_fifo_direct_mode
  * @{
  */
#define DMA_FIFOMode_Disable              ((uint32_t)0x00000000)
#define DMA_FIFOMode_Enable               ((uint32_t)0x00000004)
}
这是库里的
Bit 2 DMDIS: Direct mode disable
This bit is set and cleared by software. It can be set by hardware.
0: Direct mode enabled
1: Direct mode disabled
This bit is protected and can be written only if EN is ‘0’.
This bit is set by hardware if the memory-to-memory mode is selected (DIR bit in
DMA_SxCR are “10”) and the EN bit in the DMA_SxCR register is ‘1’ because the direct
mode is not allowed in the memory-to-memory configuration.
手册里的
回复

使用道具 举报

 楼主| 发表于 2019-5-19 23:18:57 | 显示全部楼层
救救孩子,是不是我理解错误或手册查的不对应
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2025-12-6 11:55 , Processed in 0.059419 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表