Rename SGPIO DMA internal function to match style of public functions.

This commit is contained in:
Jared Boone
2013-12-08 13:07:32 -08:00
parent ac0d50a131
commit ea2ca52301

View File

@ -29,7 +29,7 @@
#include <sgpio.h> #include <sgpio.h>
#include <gpdma.h> #include <gpdma.h>
static void configure_dma_lli( static void sgpio_dma_configure_lli(
gpdma_lli_t* const lli, gpdma_lli_t* const lli,
const size_t lli_count, const size_t lli_count,
const bool direction_transmit, const bool direction_transmit,
@ -104,8 +104,8 @@ static gpdma_lli_t lli_rx[RX_LLI_COUNT];
static gpdma_lli_t lli_tx[TX_LLI_COUNT]; static gpdma_lli_t lli_tx[TX_LLI_COUNT];
void sgpio_dma_init(void* const buffer, const size_t transfer_bytes) { void sgpio_dma_init(void* const buffer, const size_t transfer_bytes) {
configure_dma_lli(lli_rx, RX_LLI_COUNT, false, buffer, transfer_bytes); sgpio_dma_configure_lli(lli_rx, RX_LLI_COUNT, false, buffer, transfer_bytes);
configure_dma_lli(lli_tx, TX_LLI_COUNT, true, buffer, transfer_bytes); sgpio_dma_configure_lli(lli_tx, TX_LLI_COUNT, true, buffer, transfer_bytes);
/* DMA peripheral/source 0, option 2 (SGPIO14) -- BREQ */ /* DMA peripheral/source 0, option 2 (SGPIO14) -- BREQ */
CREG_DMAMUX &= ~(CREG_DMAMUX_DMAMUXPER0_MASK); CREG_DMAMUX &= ~(CREG_DMAMUX_DMAMUXPER0_MASK);