diff options
author | areviu <areviu.info@gmail.com> | 2017-11-15 21:51:14 +0000 |
---|---|---|
committer | areviu <areviu.info@gmail.com> | 2017-11-15 21:51:14 +0000 |
commit | e1c25514093a340ee91e9afefb22c0acee03eaf2 (patch) | |
tree | 82ec4e9d9e407ea96abbc77e3a8dc3c8779ac380 | |
parent | fde5d3f516b69f9123ca5d7d401b44686324e601 (diff) | |
download | ChibiOS-e1c25514093a340ee91e9afefb22c0acee03eaf2.tar.gz ChibiOS-e1c25514093a340ee91e9afefb22c0acee03eaf2.tar.bz2 ChibiOS-e1c25514093a340ee91e9afefb22c0acee03eaf2.zip |
added DmaRelease when driver stops
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11015 35acf78f-673a-0410-8e92-d51de3d6d3f4
-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);
}
|