Fixed SAMA_DMA_FREE assert.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11004 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
060f9c5954
commit
7b3fe37b28
|
@ -321,7 +321,7 @@ void dmaChannelRelease(sama_dma_channel_t *dmachp) {
|
||||||
osalDbgCheck(dmachp != NULL);
|
osalDbgCheck(dmachp != NULL);
|
||||||
uint8_t id;
|
uint8_t id;
|
||||||
/* Check if the channel is free.*/
|
/* Check if the channel is free.*/
|
||||||
osalDbgAssert(dmachp->state != SAMA_DMA_NOT_FREE,
|
osalDbgAssert(dmachp->state != SAMA_DMA_FREE,
|
||||||
"not allocated");
|
"not allocated");
|
||||||
id = dmaGetControllerId(dmachp->xdmac);
|
id = dmaGetControllerId(dmachp->xdmac);
|
||||||
/* Disables the associated IRQ vector.*/
|
/* Disables the associated IRQ vector.*/
|
||||||
|
|
Loading…
Reference in New Issue