diff --git a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_eth.c b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_eth.c index 0905aeb428..429d8c271d 100644 --- a/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_eth.c +++ b/targets/TARGET_STM/TARGET_STM32F1/device/stm32f1xx_hal_eth.c @@ -657,9 +657,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL { uint32_t bufcount = 0U, size = 0U, i = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -668,9 +665,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* Set ETH HAL state to READY */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - return HAL_ERROR; } @@ -680,9 +674,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* OWN bit set */ heth->State = HAL_ETH_STATE_BUSY_TX; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - return HAL_ERROR; } @@ -753,9 +744,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -770,9 +758,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) { uint32_t framelength = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Check the ETH state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -806,9 +791,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -833,9 +815,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_ERROR; } @@ -850,9 +829,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) { uint32_t descriptorscancounter = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Set ETH HAL State to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -907,9 +883,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -918,9 +891,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_ERROR; } diff --git a/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_hal_eth.c b/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_hal_eth.c index 5b9ae68753..0ffe1d89b6 100644 --- a/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_hal_eth.c +++ b/targets/TARGET_STM/TARGET_STM32F2/device/stm32f2xx_hal_eth.c @@ -663,9 +663,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL { uint32_t bufcount = 0U, size = 0U, i = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -674,9 +671,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* Set ETH HAL state to READY */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - return HAL_ERROR; } @@ -686,9 +680,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* OWN bit set */ heth->State = HAL_ETH_STATE_BUSY_TX; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - return HAL_ERROR; } @@ -759,9 +750,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -776,9 +764,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) { uint32_t framelength = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Check the ETH state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -812,9 +797,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -839,9 +821,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_ERROR; } @@ -856,9 +835,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) { uint32_t descriptorscancounter = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Set ETH HAL State to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -913,9 +889,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -924,9 +897,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_ERROR; } diff --git a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_eth.c b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_eth.c index 5d0daf25f7..3f925de3ca 100644 --- a/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_eth.c +++ b/targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_eth.c @@ -670,9 +670,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL { uint32_t bufcount = 0U, size = 0U, i = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Set the ETH peripheral state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -681,9 +678,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* Set ETH HAL state to READY */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - return HAL_ERROR; } @@ -693,9 +687,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* OWN bit set */ heth->State = HAL_ETH_STATE_BUSY_TX; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - return HAL_ERROR; } @@ -766,9 +757,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -783,9 +771,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) { uint32_t framelength = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Check the ETH state to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -819,9 +804,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -846,9 +828,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_ERROR; } @@ -863,9 +842,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) { uint32_t descriptorscancounter = 0U; - /* Process Locked */ - __HAL_LOCK(heth); - /* Set ETH HAL State to BUSY */ heth->State = HAL_ETH_STATE_BUSY; @@ -920,9 +896,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -931,9 +904,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_ERROR; } diff --git a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_eth.c b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_eth.c index 0a6848e69e..ed85f94c17 100644 --- a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_eth.c +++ b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_hal_eth.c @@ -814,9 +814,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_OK; } @@ -841,9 +838,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth) /* Set ETH HAL State to Ready */ heth->State = HAL_ETH_STATE_READY; - /* Process Unlocked */ - __HAL_UNLOCK(heth); - /* Return function status */ return HAL_ERROR; } @@ -858,9 +852,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth) { uint32_t descriptorscancounter = 0; - /* Process Locked */ - __HAL_LOCK(heth); - /* Set ETH HAL State to BUSY */ heth->State = HAL_ETH_STATE_BUSY;