|
代码如下:
- static OMAP3430_MCBSP_REGS_t *pMcbsp1Regs;
- pMcbsp1Regs = OALPAtoUA(OMAP_MCBSP1_REGS_PA);
- RETAILMSG(1,(TEXT("<>InitMcbsp1_32bit:pMcbsp1Regs = 0x%x\r\n"),pMcbsp1Regs));
- RETAILMSG(1,(TEXT("<>InitMcbsp1_32bit:(&pMcbsp1Regs->SYSCONFIG) = 0x%x\r\n"),(&pMcbsp1Regs->SYSCONFIG)));
- nRegValue = INREG32(&pMcbsp1Regs->SYSCONFIG);
- RETAILMSG(1,(TEXT("<>InitMcbsp1_32bit:*(&pMcbsp1Regs->SYSCONFIG) = 0x%x\r\n"),*(&pMcbsp1Regs->SYSCONFIG)));
-
- OUTREG32(&pMcbsp1Regs->SYSCONFIG,(1<<1));
- RETAILMSG(1,(TEXT("<>InitMcbsp1_32bit:Set Reg end!\r\n")));
复制代码
每次运行的时候,代码就死在nRegValue = INREG32(&pMcbsp1Regs->SYSCONFIG);这一句!
但是从串口信息可以看出寄存器的地址都是对的,但是为什么不能读或者写呢????
请教高手
|
|