diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-29 17:36:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-29 17:36:17 +0000 |
commit | ada03ef1d1fef07264c7b187648f3655f75365f0 (patch) | |
tree | 1ac9c6e9737231d6c1880f54519027b4540882c5 /nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.h | |
parent | fd7c0194d583e6f7d60e29f5fdd88b3a68b0d0de (diff) | |
download | px4-nuttx-ada03ef1d1fef07264c7b187648f3655f75365f0.tar.gz px4-nuttx-ada03ef1d1fef07264c7b187648f3655f75365f0.tar.bz2 px4-nuttx-ada03ef1d1fef07264c7b187648f3655f75365f0.zip |
Fixes for LPC1788 compile when SDCARD DMA is enabled (still missing DMA logic)
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5799 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.h')
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.h b/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.h index 41e60877d..d5a27c793 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.h +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_gpdma.h @@ -52,8 +52,17 @@ ************************************************************************************/ #ifdef CONFIG_LPC17_GPDMA +/* DMA_HANDLE is an opaque reference to an allocated DMA channel */ typedef FAR void *DMA_HANDLE; + +/* dma_callback_t a function pointer provided to lp17_dmastart. This function is + * called at the completion of the DMA transfer. 'arg' is the same 'arg' value + * that was provided when lpc17_dmastart() was called and result indicates the result + * of the transfer: Zero indicates a successful tranfers. On failure, a negated + * errno is returned indicating the general nature of the DMA faiure. + */ + typedef void (*dma_callback_t)(DMA_HANDLE handle, void *arg, int result); /* The following is used for sampling DMA registers when CONFIG DEBUG_DMA is selected */ @@ -167,8 +176,8 @@ void lpc17_dmafree(DMA_HANDLE handle); * ****************************************************************************/ -int lpc17_dmarxsetup(DMA_HANDLE handle, uint32_t control, uint32_t config, - uint32_t srcaddr, uint32_t destaddr, size_t nbytes); +int lpc17_dmasetup(DMA_HANDLE handle, uint32_t control, uint32_t config, + uint32_t srcaddr, uint32_t destaddr, size_t nbytes); /**************************************************************************** * Name: lpc17_dmastart |