UART串口函数定义头文件.doc

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
UART串口函数定义头文件

UART串口函数定义头文件 #ifndef _UART_REGISTERS #define _UART_REGISTERS /*UART 串行接口端口设置*/ ioport unsigned port0008; #define INT1_RD port0008 ioport unsigned port8008; #define UARTA_RHR port8008 ioport unsigned port8008; #define UARTA_THR port8008 ioport unsigned port8009; #define UARTA_IER port8009 ioport unsigned port800A; #define UARTA_FCR port800A ioport unsigned port800A; #define UARTA_IIR port800A ioport unsigned port800B; #define UARTA_LCR port800B ioport unsigned port800C; #define UARTA_MCR port800C ioport unsigned port800D; #define UARTA_LSR port800D ioport unsigned port800E; #define UARTA_MSR port800E ioport unsigned port800F; #define UARTA_SPR port800F ioport unsigned port8008; #define UARTA_DLL port8008 ioport unsigned port8009; #define UARTA_DLH port8009 ioport unsigned port800A; #define UARTA_EFR port800A ioport unsigned port800F; #define UARTA_FIFORDY port800F ioport unsigned port800C; #define UARTA_XON1 port800C ioport unsigned port800D; #define UARTA_XON2 port800D ioport unsigned port8010; #define UARTB_RHR port8010 ioport unsigned port8010; #define UARTB_THR port8010 ioport unsigned port8011; #define UARTB_IER port8011 ioport unsigned port8012; #define UARTB_FCR port8012 ioport unsigned port8012; #define UARTB_IIR port8012 ioport unsigned port8013; #define UARTB_LCR port8013 ioport unsigned port8014; #define UARTB_MCR port8014 ioport unsigned port8015; #define UARTB_LSR port8015 ioport unsigned port8016; #define UARTB_MSR port8016 ioport unsigned port8017; #define UARTB_SPR port8017 ioport unsigned port8010; #define UARTB_DLL port8010 ioport unsigned port8011; #define UARTB_DLH port8011 ioport unsigned port8012; #define UARTB_EFR port8012 ioport unsigned port8017; #define UARTB_FIFORDY port8017 ioport unsigned port8014; #define UARTB_XON1 port8014 ioport unsigned port8015; #define UARTB_XON2 port8015 #endif /*波特率设置*/ #define buad_1k2_10xE2 #define buad_1k2_h 0x04 #define buad_2k4_10x71 #define buad_2k4_10xh 0x02 #define buad_4k8_10x38 #define buad_4k8_h

文档评论(0)

2017ll + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档