#include“absacc.h”
#define c654_a_cs XBYTE[0x2000]
#define c654_a_dll XBYTE[0x2000]
#define c654_a_dlm XBYTE[0x2001]
#define c654_a_ier XBYTE[0x2001]
#define c654_a_rhr XBYTE[0x2000]
#define c654_a_thr XBYTE[0x2000]
#define c654_a_isr XBYTE[0x2002]
#define c654_a_fcr XBYTE[0x2002]
#define c654_a_lcr XBYTE[0x2003]
#define c654_a_mcr XBYTE[0x2004]
#define c654_a_efr XBYTE[0x2002]
#define c654_a_lsr XBYTE[0x2005]
这种定义指针的方法和我下面写的有什么不同?
unsigned int * c654_a_cs= (unsigned * )0x2000;
unsigned int * c654_a_dll=(unsigned * )0x2000;
unsigned int * c654_a_dlm=(unsigned * )0x2001;
unsigned int * c654_a_ier=(unsigned * )0x2001;
unsigned int * c654_a_rhr=(unsigned * )0x2000;
unsigned int * c654_a_thr=(unsigned * )0x2000;
unsigned int * c654_a_isr=(unsigned * )0x2002;
unsigned int * c654_a_fcr=(unsigned * )0x2002;
unsigned int * c654_a_lcr=(unsigned * )0x2003;
unsigned int * c654_a_mcr=(unsigned * )0x2004;
unsigned int * c654_a_efr=(unsigned * )0x2002;
unsigned int * c654_a_lsr=(unsigned * )0x2005;
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
与电子爱好者谈读图四被打赏50分 | |
与电子爱好者谈读图二被打赏50分 | |
【FRDM-MCXN947评测】Core1适配运行FreeRtos被打赏50分 | |
【FRDM-MCXN947评测】双核调试被打赏50分 | |
【CPKCORRA8D1B评测】---移植CoreMark被打赏50分 | |
【CPKCORRA8D1B评测】---打开硬件定时器被打赏50分 | |
【FRDM-MCXA156评测】4、CAN loopback模式测试被打赏50分 | |
【CPKcorRA8D1评测】--搭建初始环境被打赏50分 | |
【FRDM-MCXA156评测】3、使用FlexIO模拟UART被打赏50分 | |
【FRDM-MCXA156评测】2、rt-thread MCXA156 BSP制作被打赏50分 |