소스 검색

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

Ernest 6 년 전
부모
커밋
7b7443bb7b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      bsp/stm32/libraries/HAL_Drivers/drv_crypto.c

+ 1 - 0
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 */