【转改】嵌入式linux应用开发完全手册 5.2以总线方式访问硬件,地址对齐。
例5.1 地址对齐的16位读操作。
unsigned short *pwAddr = (unsigned short *)0x2;
unsigned short wVal;
wVal = *pwAddr;
例5.2 地址不对齐的16位读操作。
unsigned short *pwAddr = (unsigned short *)0x1;
unsi
转载
2012-05-14 13:45:20 ·
1108 阅读 ·
0 评论