Quantcast
Channel: 数字信号处理器 (DSP) & ARM® 微处理器
Viewing all articles
Browse latest Browse all 21822

帖子: RE: 8148的EMAC寄存器

$
0
0

你好,我是用gel打开的EMAC的PRCM,但还是访问不了EMAC的寄存器(0x4A100000)

gel程序

emac_clkenable()

{
GEL_TextOut("CONFIGURE PRCM CLOCKS of EMAC in progress \n\r");
*((unsigned int*)(0x48181404)) = 0x2;       //CM_ETHERNET_CLKSTCTRL Register
*((unsigned int*)(0x481815d4)) = 0x2;       //CM_ALWON_ETHERNET_0_CLKCTRL Register
while(RD_MEM_32(0x48181404)!=0x0302);
while((RD_MEM_32(0x481815d4)&0x2)!=0x2);
GEL_TextOut("PRCM CLOCKS of EMAC is complete \n\r");

}


Viewing all articles
Browse latest Browse all 21822

Trending Articles