阅读:963回复:0
在s95933中的DMA设置是这样的吗?
在stardma的例程中来实现。
//2, 复位FIFO标志 m_IoPortRange0.outd(0x3c, (0x3<<25)); //5, 设置传输的逻辑地址 m_IoPortRange0.outd(0x24, pCcurrentTD->td_PhysAddr.LowPart); //6, 设置传输的字节数 m_IoPortRange0.outd(0x28, pCcurrentTD->td_Length); //1,定义中断接收源(当计数器为0时产生中断) temp &= ~AMCC_INT_ACK_BITS; temp |= AMCC_INT_INT_ON_WRITE; m_IoPortRange0.outd(0x38, temp); // MCSR需要设置的位: 定义FIFO优先级机制, 使能DMA temp = m_IoPortRange0.ind(0x3c); temp &= (AMCC_MCSR_WRITE_ENABLE |AMCC_MCSR_WRITE_PRIORITY |AMCC_MCSR_WRITE_FIFO_MGMT ); temp |= AMCC_MCSR_WRITE_ENABLE; m_IoPortRange0.outd(0x3c, temp); |
|
最新喜欢:tomlih |