在线时间514 小时
UID2025756
注册时间2013-7-16
NXP金币0
该用户从未签到
金牌会员
 
- 积分
- 9267
- 最后登录
- 1970-1-1
|
发表于 2015-10-8 14:52:35
|
显示全部楼层
typedef struct UART0_MemMap {
uint8_t BDH; /**< UART Baud Rate Register High, offset: 0x0 */
uint8_t BDL; /**< UART Baud Rate Register Low, offset: 0x1 */
uint8_t C1; /**< UART Control Register 1, offset: 0x2 */
uint8_t C2; /**< UART Control Register 2, offset: 0x3 */
uint8_t S1; /**< UART Status Register 1, offset: 0x4 */
uint8_t S2; /**< UART Status Register 2, offset: 0x5 */
uint8_t C3; /**< UART Control Register 3, offset: 0x6 */
uint8_t D; /**< UART Data Register, offset: 0x7 */
uint8_t MA1; /**< UART Match Address Registers 1, offset: 0x8 */
uint8_t MA2; /**< UART Match Address Registers 2, offset: 0x9 */
uint8_t C4; /**< UART Control Register 4, offset: 0xA */
uint8_t C5; /**< UART Control Register 5, offset: 0xB */
} volatile *UART0_MemMapPtr;
看这个结构体,对应的其中的C2,也就是UART的C2寄存器。 |
|