Skip to content

Commit fa5e1f7

Browse files
committed
[B96B_F446VE] remove unnecessary wait after code review
tested OK
1 parent 6e4debd commit fa5e1f7

File tree

1 file changed

+0
-6
lines changed
  • libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4

1 file changed

+0
-6
lines changed

libraries/mbed/targets/hal/TARGET_STM/TARGET_STM32F4/serial_api.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,6 @@ static IRQn_Type h_serial_rx_get_irqdma_index(serial_t *obj)
934934
*/
935935
int serial_tx_asynch(serial_t *obj, const void *tx, size_t tx_length, uint8_t tx_width, uint32_t handler, uint32_t event, DMAUsage hint)
936936
{
937-
938-
uint32_t tmpstatus = 0;
939937

940938
// Check buffer is ok
941939
MBED_ASSERT(tx != (void*)0);
@@ -983,10 +981,6 @@ int serial_tx_asynch(serial_t *obj, const void *tx, size_t tx_length, uint8_t tx
983981
return 0;
984982
}
985983
#endif
986-
987-
while ((tmpstatus == HAL_UART_STATE_BUSY_TX) || (tmpstatus == HAL_UART_STATE_BUSY_TX_RX)){
988-
tmpstatus = HAL_UART_GetState(&UartHandle);
989-
}
990984

991985
return tx_length;
992986
}

0 commit comments

Comments
 (0)