mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-25 10:39:32 +08:00
[bsp][stm32][prefect] avoid a bug from HAL
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user