diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-10 14:40:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-10 14:40:54 +0000 |
commit | bbbcae2450b1302000d500ebd1e93ee435501aeb (patch) | |
tree | fd6bb29c905833d2198a445440a22038317f313e | |
parent | 85dc709a28c06f0c02554e3bc4d523d16b26ac11 (diff) | |
download | px4-nuttx-bbbcae2450b1302000d500ebd1e93ee435501aeb.tar.gz px4-nuttx-bbbcae2450b1302000d500ebd1e93ee435501aeb.tar.bz2 px4-nuttx-bbbcae2450b1302000d500ebd1e93ee435501aeb.zip |
Fix semaphore initialization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4085 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/arch/arm/src/sam3u/sam3u_dmac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/sam3u/sam3u_dmac.c b/nuttx/arch/arm/src/sam3u/sam3u_dmac.c index 2084fc678..8bb186e91 100644 --- a/nuttx/arch/arm/src/sam3u/sam3u_dmac.c +++ b/nuttx/arch/arm/src/sam3u/sam3u_dmac.c @@ -1183,7 +1183,7 @@ void weak_function up_dmainitialize(void) /* Initialize semaphores */ sem_init(&g_chsem, 0, 1); - sem_init(&g_chsem, 0, CONFIG_SAM3U_NDMACHAN); + sem_init(&g_dsem, 0, CONFIG_SAM3U_NDMACHAN); } /**************************************************************************** @@ -1537,4 +1537,4 @@ void sam3u_dmadump(DMA_HANDLE handle, const struct sam3u_dmaregs_s *regs, dmadbg(" CFG[%08x]: %08x\n", dmach->base + SAM3U_DMACHAN_CFG_OFFSET, regs->cfg); } #endif /* CONFIG_DEBUG_DMA */ -#endif /* CONFIG_SAM3U_DMA */
\ No newline at end of file +#endif /* CONFIG_SAM3U_DMA */ |