diff options
Diffstat (limited to 'nuttx/arch/arm/src/sam3u')
-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 */ |