都用ioremap!
送给你吧:static void address_map(void){#define IIC_BASE (0x54000000)#define IIC_GPECON ( IIC_BASE + 0x40 )#define IIC_GPEUP ( IIC_BASE + 0x48 )#define IIC_CON ( IIC_BASE + 0x0 )#define IIC_STAT ( IIC_BASE + 0x4 )#define IIC_ADDR ( IIC_BASE + 0x8 )#define IIC_DS ( IIC_BASE + 0xC ) R_GPECON = ioremap(IIC_GPECON,4); R_GPEUP = ioremap(IIC_GPEUP ,4); R_IICCON = ioremap(IIC_CON ,4); R_IICSTAT = ioremap(IIC_STAT ,4); R_IICADD = ioremap(IIC_ADDR ,4); R_IICDS = ioremap(IIC_DS ,4);}
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
送给你吧:
static void address_map(void)
{
#define IIC_BASE (0x54000000)
#define IIC_GPECON ( IIC_BASE + 0x40 )
#define IIC_GPEUP ( IIC_BASE + 0x48 )
#define IIC_CON ( IIC_BASE + 0x0 )
#define IIC_STAT ( IIC_BASE + 0x4 )
#define IIC_ADDR ( IIC_BASE + 0x8 )
#define IIC_DS ( IIC_BASE + 0xC )
R_GPECON = ioremap(IIC_GPECON,4);
R_GPEUP = ioremap(IIC_GPEUP ,4);
R_IICCON = ioremap(IIC_CON ,4);
R_IICSTAT = ioremap(IIC_STAT ,4);
R_IICADD = ioremap(IIC_ADDR ,4);
R_IICDS = ioremap(IIC_DS ,4);
}