mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6610 from pauluap/stm32_eth_remove_tx_rx_locking_interrupt_perforation
Stm32 eth remove tx rx locking interrupt perforationpull/6522/merge
commit
0f51ea031e
|
@ -667,9 +667,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
|
||||||
{
|
{
|
||||||
uint32_t bufcount = 0, size = 0, i = 0;
|
uint32_t bufcount = 0, size = 0, i = 0;
|
||||||
|
|
||||||
/* Process Locked */
|
|
||||||
__HAL_LOCK(heth);
|
|
||||||
|
|
||||||
/* Set the ETH peripheral state to BUSY */
|
/* Set the ETH peripheral state to BUSY */
|
||||||
heth->State = HAL_ETH_STATE_BUSY;
|
heth->State = HAL_ETH_STATE_BUSY;
|
||||||
|
|
||||||
|
@ -678,9 +675,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
|
||||||
/* Set ETH HAL state to READY */
|
/* Set ETH HAL state to READY */
|
||||||
heth->State = HAL_ETH_STATE_READY;
|
heth->State = HAL_ETH_STATE_READY;
|
||||||
|
|
||||||
/* Process Unlocked */
|
|
||||||
__HAL_UNLOCK(heth);
|
|
||||||
|
|
||||||
return HAL_ERROR;
|
return HAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -690,9 +684,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
|
||||||
/* OWN bit set */
|
/* OWN bit set */
|
||||||
heth->State = HAL_ETH_STATE_BUSY_TX;
|
heth->State = HAL_ETH_STATE_BUSY_TX;
|
||||||
|
|
||||||
/* Process Unlocked */
|
|
||||||
__HAL_UNLOCK(heth);
|
|
||||||
|
|
||||||
return HAL_ERROR;
|
return HAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -776,9 +767,6 @@ HAL_StatusTypeDef HAL_ETH_TransmitFrame(ETH_HandleTypeDef *heth, uint32_t FrameL
|
||||||
/* Set ETH HAL State to Ready */
|
/* Set ETH HAL State to Ready */
|
||||||
heth->State = HAL_ETH_STATE_READY;
|
heth->State = HAL_ETH_STATE_READY;
|
||||||
|
|
||||||
/* Process Unlocked */
|
|
||||||
__HAL_UNLOCK(heth);
|
|
||||||
|
|
||||||
/* Return function status */
|
/* Return function status */
|
||||||
return HAL_OK;
|
return HAL_OK;
|
||||||
}
|
}
|
||||||
|
@ -793,9 +781,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame(ETH_HandleTypeDef *heth)
|
||||||
{
|
{
|
||||||
uint32_t framelength = 0;
|
uint32_t framelength = 0;
|
||||||
|
|
||||||
/* Process Locked */
|
|
||||||
__HAL_LOCK(heth);
|
|
||||||
|
|
||||||
/* Check the ETH state to BUSY */
|
/* Check the ETH state to BUSY */
|
||||||
heth->State = HAL_ETH_STATE_BUSY;
|
heth->State = HAL_ETH_STATE_BUSY;
|
||||||
|
|
||||||
|
@ -930,9 +915,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth)
|
||||||
/* Set HAL State to Ready */
|
/* Set HAL State to Ready */
|
||||||
heth->State = HAL_ETH_STATE_READY;
|
heth->State = HAL_ETH_STATE_READY;
|
||||||
|
|
||||||
/* Process Unlocked */
|
|
||||||
__HAL_UNLOCK(heth);
|
|
||||||
|
|
||||||
/* Return function status */
|
/* Return function status */
|
||||||
return HAL_OK;
|
return HAL_OK;
|
||||||
}
|
}
|
||||||
|
@ -941,9 +923,6 @@ HAL_StatusTypeDef HAL_ETH_GetReceivedFrame_IT(ETH_HandleTypeDef *heth)
|
||||||
/* Set HAL State to Ready */
|
/* Set HAL State to Ready */
|
||||||
heth->State = HAL_ETH_STATE_READY;
|
heth->State = HAL_ETH_STATE_READY;
|
||||||
|
|
||||||
/* Process Unlocked */
|
|
||||||
__HAL_UNLOCK(heth);
|
|
||||||
|
|
||||||
/* Return function status */
|
/* Return function status */
|
||||||
return HAL_ERROR;
|
return HAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue