diff options
Diffstat (limited to 'sdk-modifications/libsrc')
-rw-r--r-- | sdk-modifications/libsrc/dma/dmacopy.c | 2 | ||||
-rw-r--r-- | sdk-modifications/libsrc/dma/ds2_dma.h (renamed from sdk-modifications/libsrc/dma/dma.h) | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sdk-modifications/libsrc/dma/dmacopy.c b/sdk-modifications/libsrc/dma/dmacopy.c index 2c5a2b1..83609d3 100644 --- a/sdk-modifications/libsrc/dma/dmacopy.c +++ b/sdk-modifications/libsrc/dma/dmacopy.c @@ -1,5 +1,5 @@ #include <stdlib.h> -#include "dma.h" +#include "ds2_dma.h" #include "ds2_types.h" #define MAX_DMA_NUM 6 /* max 6 channels */ diff --git a/sdk-modifications/libsrc/dma/dma.h b/sdk-modifications/libsrc/dma/ds2_dma.h index f6ff230..491df0e 100644 --- a/sdk-modifications/libsrc/dma/dma.h +++ b/sdk-modifications/libsrc/dma/ds2_dma.h @@ -1,6 +1,10 @@ #ifndef __DMA_H__ #define __DMA_H__ +#ifdef __cplusplus +extern "C" { +#endif + //register a DMA transfer request //ch: channel id request, there are 6 channles, //irq_handler: the DMA interruption handle @@ -42,5 +46,9 @@ extern int dma_isBusy(int ch); extern int dma_isFree(int ch); extern int dma_getFree(void); +#ifdef __cplusplus +} +#endif + #endif //__DMA_H__ |