@@ -667,9 +667,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
667
667
{
668
668
uint32_t bufcount = 0 , size = 0 , i = 0 ;
669
669
670
- /* Process Locked */
671
- __HAL_LOCK (heth );
672
-
673
670
/* Set the ETH peripheral state to BUSY */
674
671
heth -> State = HAL_ETH_STATE_BUSY ;
675
672
@@ -678,9 +675,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
678
675
/* Set ETH HAL state to READY */
679
676
heth -> State = HAL_ETH_STATE_READY ;
680
677
681
- /* Process Unlocked */
682
- __HAL_UNLOCK (heth );
683
-
684
678
return HAL_ERROR ;
685
679
}
686
680
@@ -690,9 +684,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
690
684
/* OWN bit set */
691
685
heth -> State = HAL_ETH_STATE_BUSY_TX ;
692
686
693
- /* Process Unlocked */
694
- __HAL_UNLOCK (heth );
695
-
696
687
return HAL_ERROR ;
697
688
}
698
689
@@ -776,9 +767,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
776
767
/* Set ETH HAL State to Ready */
777
768
heth -> State = HAL_ETH_STATE_READY ;
778
769
779
- /* Process Unlocked */
780
- __HAL_UNLOCK (heth );
781
-
782
770
/* Return function status */
783
771
return HAL_OK ;
784
772
}
@@ -793,9 +781,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth)
793
781
{
794
782
uint32_t framelength = 0 ;
795
783
796
- /* Process Locked */
797
- __HAL_LOCK (heth );
798
-
799
784
/* Check the ETH state to BUSY */
800
785
heth -> State = HAL_ETH_STATE_BUSY ;
801
786
@@ -930,9 +915,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth)
930
915
/* Set HAL State to Ready */
931
916
heth -> State = HAL_ETH_STATE_READY ;
932
917
933
- /* Process Unlocked */
934
- __HAL_UNLOCK (heth );
935
-
936
918
/* Return function status */
937
919
return HAL_OK ;
938
920
}
@@ -941,9 +923,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth)
941
923
/* Set HAL State to Ready */
942
924
heth -> State = HAL_ETH_STATE_READY ;
943
925
944
- /* Process Unlocked */
945
- __HAL_UNLOCK (heth );
946
-
947
926
/* Return function status */
948
927
return HAL_ERROR ;
949
928
}
0 commit comments