mirror of https://github.com/ARMmbed/mbed-os.git
parent
6e4debd6a7
commit
fa5e1f7e73
|
|
@ -935,8 +935,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);
|
||||||
MBED_ASSERT(tx_width == 8); // support only 8b width
|
MBED_ASSERT(tx_width == 8); // support only 8b width
|
||||||
|
|
@ -984,10 +982,6 @@ int serial_tx_asynch(serial_t *obj, const void *tx, size_t tx_length, uint8_t tx
|
||||||
}
|
}
|
||||||
#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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue