[B96B_F446VE] remove unnecessary wait after code review

tested OK
pull/1493/head
adustm 2016-01-28 17:35:42 +01:00
parent 6e4debd6a7
commit fa5e1f7e73
1 changed files with 0 additions and 6 deletions

View File

@ -934,8 +934,6 @@ static IRQn_Type h_serial_rx_get_irqdma_index(serial_t *obj)
*/ */
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) 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)
{ {
uint32_t tmpstatus = 0;
// Check buffer is ok // Check buffer is ok
MBED_ASSERT(tx != (void*)0); 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
return 0; return 0;
} }
#endif #endif
while ((tmpstatus == HAL_UART_STATE_BUSY_TX) || (tmpstatus == HAL_UART_STATE_BUSY_TX_RX)){
tmpstatus = HAL_UART_GetState(&UartHandle);
}
return tx_length; return tx_length;
} }