[Kinetis] CodeWarrior定义了typedef 如何给固定地址

[复制链接]
985|1
 楼主| lff1802 发表于 2016-3-26 19:05 | 显示全部楼层 |阅读模式
typedef struct
{
        uint8_t Bit0:1;
        uint8_t Bit1:1;
        uint8_t Bit2:1;
        uint8_t Bit3:1;
        uint8_t Bit4:1;
        uint8_t Bit5:1;
        uint8_t Bit6:1;
        uint8_t Bit7:1;
}strBit8;
比如定义好了,如何给strBit8 指定一个固定的地址  在主函数中使用strBit8  B8;但地址不知如何给
Ivanll 发表于 2016-4-23 17:21 | 显示全部楼层
最好不要这样做,编译器可能你的固定地址覆盖掉
BaiduShurufa_2016-4-23_17-20-24.png
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

19

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部