打印

Opbdm程序问题

[复制链接]
1338|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
mannerfh|  楼主 | 2008-5-16 16:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
DM, ST, se, TI, ce
最近看到飞思卡尔的Open source BDM for08的程序中有下面这么一段程序:
    STA   ,X                 /* switch BDM to high impedance */
    ROL   i                  /* shift C into i (from the bottom) */
        NOP        /* wait 1 more cycle (5 cycles in total together with ROL) */
其中static unsigned char i;  /* i, j & k are used as timing and general purpose variables in the Tx & Rx routines must be placed into the direct segment */
其中的第二句在Code warrior中编译不通过,哪位高人来指点一下,谢谢各位!

相关帖子

沙发
wacke| | 2008-5-16 21:59 | 只看该作者

改一下就好了。

把static unsigned char i;
改成 unsigned char near i;

使用特权

评论回复
板凳
mannerfh|  楼主 | 2008-5-17 09:13 | 只看该作者

这有什么区别呢

这有什么区别呢,谢谢指点!!!

使用特权

评论回复
地板
wacke| | 2008-5-17 21:36 | 只看该作者

CW版本之间的差别

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

13

主题

166

帖子

0

粉丝