提交 7b7443bb 编写于 作者: E Ernest

[bsp][stm32][prefect] avoid a bug from HAL

上级 3211ae2c
...@@ -224,6 +224,7 @@ static void _crypto_destroy(struct rt_hwcrypto_ctx *ctx) ...@@ -224,6 +224,7 @@ static void _crypto_destroy(struct rt_hwcrypto_ctx *ctx)
#if defined(BSP_USING_CRC) #if defined(BSP_USING_CRC)
case HWCRYPTO_TYPE_CRC: case HWCRYPTO_TYPE_CRC:
__HAL_CRC_DR_RESET((CRC_HandleTypeDef *)ctx-> contex);
HAL_CRC_DeInit((CRC_HandleTypeDef *)(ctx->contex)); HAL_CRC_DeInit((CRC_HandleTypeDef *)(ctx->contex));
break; break;
#endif /* BSP_USING_CRC */ #endif /* BSP_USING_CRC */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册