Fix semaphore initialization
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4085 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
81eff0111d
commit
6883c4c7e5
@ -1183,7 +1183,7 @@ void weak_function up_dmainitialize(void)
|
|||||||
/* Initialize semaphores */
|
/* Initialize semaphores */
|
||||||
|
|
||||||
sem_init(&g_chsem, 0, 1);
|
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);
|
dmadbg(" CFG[%08x]: %08x\n", dmach->base + SAM3U_DMACHAN_CFG_OFFSET, regs->cfg);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_DEBUG_DMA */
|
#endif /* CONFIG_DEBUG_DMA */
|
||||||
#endif /* CONFIG_SAM3U_DMA */
|
#endif /* CONFIG_SAM3U_DMA */
|
||||||
|
Loading…
Reference in New Issue
Block a user