diff options
-rw-r--r-- | os/hal/ports/SAMA/LLD/CRYPTOv1/sama_crypto_lld.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/LLD/CRYPTOv1/sama_crypto_lld.c b/os/hal/ports/SAMA/LLD/CRYPTOv1/sama_crypto_lld.c index 6f9653779..0ee83e861 100644 --- a/os/hal/ports/SAMA/LLD/CRYPTOv1/sama_crypto_lld.c +++ b/os/hal/ports/SAMA/LLD/CRYPTOv1/sama_crypto_lld.c @@ -86,6 +86,13 @@ void samaCryptoDriverStart(CRYDriver *cryp) { }
void samaCryptoDriverStop(CRYDriver *cryp) {
+#if defined(SAMA_DMA_REQUIRED)
+ if (cryp->config->transfer_mode == TRANSFER_DMA)
+ {
+ dmaChannelRelease(cryp->dmarx);
+ dmaChannelRelease(cryp->dmatx);
+ }
+#endif
samaCryptoDriverDisable(cryp);
}
|