aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c')
-rw-r--r--os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
index d7d888fb7..64adc7289 100644
--- a/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
+++ b/os/hal/ports/SAMA/LLD/DMAv1/sama_xdmac.c
@@ -321,7 +321,7 @@ void dmaChannelRelease(sama_dma_channel_t *dmachp) {
osalDbgCheck(dmachp != NULL);
uint8_t id;
/* Check if the channel is free.*/
- osalDbgAssert(dmachp->state != SAMA_DMA_NOT_FREE,
+ osalDbgAssert(dmachp->state != SAMA_DMA_FREE,
"not allocated");
id = dmaGetControllerId(dmachp->xdmac);
/* Disables the associated IRQ vector.*/