/* Initialize the GPDMA */ void Chip_GPDMA_Init(void) { uint8_t i; IP_GPDMA_Init(LPC_GPDMA); /* Reset all channels are free */ for (i = 0; i < GPDMA_NUMBER_CHANNELS; i++) ChannelHandlerArray[i].ChannelStatus = DISABLE; }
/* Initialize the GPDMA */ void Chip_GPDMA_Init(LPC_GPDMA_T *pGPDMA) { uint8_t i; /* Enable GPDMA master clock */ Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_GPDMA); IP_GPDMA_Init(pGPDMA); /* Reset all channels are free */ for (i = 0; i < GPDMA_NUMBER_CHANNELS; i++) { ChannelHandlerArray[i].ChannelStatus = DISABLE; } }