summaryrefslogtreecommitdiff
path: root/bsp/stm32
diff options
context:
space:
mode:
authorErnest <[email protected]>2019-07-12 15:10:10 +0800
committerErnest <[email protected]>2019-07-18 10:28:13 +0800
commit7b7443bb7bce2510407f58d7a0df92210cd74c69 (patch)
tree094e7f690e1a72b49f592ce046c51784715004a3 /bsp/stm32
parent3211ae2c1677f34c80d6db4c2ba7f610e3151ee6 (diff)
[bsp][stm32][prefect] avoid a bug from HAL
Diffstat (limited to 'bsp/stm32')
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/drv_crypto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_crypto.c b/bsp/stm32/libraries/HAL_Drivers/drv_crypto.c
index 7606066201..b7a7db3a15 100644
--- a/bsp/stm32/libraries/HAL_Drivers/drv_crypto.c
+++ b/bsp/stm32/libraries/HAL_Drivers/drv_crypto.c
@@ -224,6 +224,7 @@ static void _crypto_destroy(struct rt_hwcrypto_ctx *ctx)
#if defined(BSP_USING_CRC)
case HWCRYPTO_TYPE_CRC:
+ __HAL_CRC_DR_RESET((CRC_HandleTypeDef *)ctx-> contex);
HAL_CRC_DeInit((CRC_HandleTypeDef *)(ctx->contex));
break;
#endif /* BSP_USING_CRC */