Skip to content

Commit 0f51ea0

Browse files
author
Cruz Monrreal
authored
Merge pull request #6610 from pauluap/stm32_eth_remove_tx_rx_locking_interrupt_perforation
Stm32 eth remove tx rx locking interrupt perforation
2 parents 53d3c43 + c67f535 commit 0f51ea0

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_eth.c

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
667667
{
668668
uint32_t bufcount = 0, size = 0, i = 0;
669669

670-
/* Process Locked */
671-
__HAL_LOCK(heth);
672-
673670
/* Set the ETH peripheral state to BUSY */
674671
heth->State = HAL_ETH_STATE_BUSY;
675672

@@ -678,9 +675,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
678675
/* Set ETH HAL state to READY */
679676
heth->State = HAL_ETH_STATE_READY;
680677

681-
/* Process Unlocked */
682-
__HAL_UNLOCK(heth);
683-
684678
return HAL_ERROR;
685679
}
686680

@@ -690,9 +684,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
690684
/* OWN bit set */
691685
heth->State = HAL_ETH_STATE_BUSY_TX;
692686

693-
/* Process Unlocked */
694-
__HAL_UNLOCK(heth);
695-
696687
return HAL_ERROR;
697688
}
698689

@@ -776,9 +767,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
776767
/* Set ETH HAL State to Ready */
777768
heth->State = HAL_ETH_STATE_READY;
778769

779-
/* Process Unlocked */
780-
__HAL_UNLOCK(heth);
781-
782770
/* Return function status */
783771
return HAL_OK;
784772
}
@@ -793,9 +781,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth)
793781
{
794782
uint32_t framelength = 0;
795783

796-
/* Process Locked */
797-
__HAL_LOCK(heth);
798-
799784
/* Check the ETH state to BUSY */
800785
heth->State = HAL_ETH_STATE_BUSY;
801786

@@ -930,9 +915,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth)
930915
/* Set HAL State to Ready */
931916
heth->State = HAL_ETH_STATE_READY;
932917

933-
/* Process Unlocked */
934-
__HAL_UNLOCK(heth);
935-
936918
/* Return function status */
937919
return HAL_OK;
938920
}
@@ -941,9 +923,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth)
941923
/* Set HAL State to Ready */
942924
heth->State = HAL_ETH_STATE_READY;
943925

944-
/* Process Unlocked */
945-
__HAL_UNLOCK(heth);
946-
947926
/* Return function status */
948927
return HAL_ERROR;
949928
}

0 commit comments

Comments
 (0)