#define UART_O_DMACTL 0x00000048 // UART DMA Control
我说的是这个寄存器,手册上没有这个寄存器的描述
void
UARTDMAEnable(unsigned long ulBase, unsigned long ulDMAFlags)
{
//
// Check the arguments.
//
ASSERT(UARTBaseValid(ulBase));
//
// Set the requested bits in the UART DMA control register.
//
HWREG(ulBase + UART_O_DMACTL) |= ulDMAFlags;
}
DMA使能的操作应该是没法实现的吧
|