[STM32F1] STM32怎么设置MARK校验位

[复制链接]
 楼主| 51arm.net 发表于 2014-4-2 18:36 | 显示全部楼层 |阅读模式
设备的通信协议中规定了MARK校验位,可是头文件中没这个定义啊。
stm32f10x_usart.h
。。。
#define USART_Parity_No                      ((uint16_t)0x0000)
#define USART_Parity_Even                    ((uint16_t)0x0400)
#define USART_Parity_Odd                     ((uint16_t)0x0600)
#define IS_USART_PARITY(PARITY) (((PARITY) == USART_Parity_No) || \
                                 ((PARITY) == USART_Parity_Even) || \
                                 ((PARITY) == USART_Parity_Odd))
。。。
airwill 发表于 2014-4-2 20:25 | 显示全部楼层
找了一下, 我也没有找到.
看来得自己定义一个了.
 楼主| 51arm.net 发表于 2014-4-4 14:56 | 显示全部楼层
自己搞定了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:琉球是中国的

6

主题

123

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部