首页 » 技术SOS » 嵌入式系统 » MCU和嵌入式微处理器 » 关于定义指针

关于定义指针

菜鸟
2013-08-12 12:02:20
#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;
分享
关键词: 指针, XRAM  
专家
2022-10-22 23:09:24
1楼

这也太乱了吧

专家
2022-11-12 22:55:31
2楼

看不清是啥问题

专家
2023-01-30 17:26:44
3楼

直接说清楚问题是什么