Minor updates to comments and README files
This commit is contained in:
parent
f5bc559417
commit
b0859ea286
@ -1487,11 +1487,13 @@ static void sam_freelinklist(struct sam_dmach_s *dmach)
|
|||||||
|
|
||||||
DEBUGASSERT(desc->saddr != 0);
|
DEBUGASSERT(desc->saddr != 0);
|
||||||
|
|
||||||
/* Get the physical address of the next desriptor in the list */
|
/* Get the physical address of the next descriptor in the list */
|
||||||
|
|
||||||
paddr = desc->dscr;
|
paddr = desc->dscr;
|
||||||
|
|
||||||
/* Free the descriptor by simply nullifying it */
|
/* Free the descriptor by simply nullifying it and bumping up the
|
||||||
|
* semaphore count.
|
||||||
|
*/
|
||||||
|
|
||||||
memset(desc, 0, sizeof(struct dma_linklist_s));
|
memset(desc, 0, sizeof(struct dma_linklist_s));
|
||||||
sam_givedsem(dmac);
|
sam_givedsem(dmac);
|
||||||
|
Loading…
Reference in New Issue
Block a user