Skip to content
Snippets Groups Projects
Commit 6883c4c7 authored by patacongo's avatar patacongo
Browse files

Fix semaphore initialization

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4085 42af7a65-404d-4744-a932-0658087f49c3
parent 81eff011
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment