mirror of https://github.com/ARMmbed/mbed-os.git
STM32: fix issue with serial_is_tx_ongoing function
parent
7ea50f1fe4
commit
276d16f70d
|
@ -761,4 +761,14 @@ int serial_is_tx_ongoing(void) {
|
|||
return TxOngoing;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/* Function to protect deep sleep while a seral Tx is ongoing on not complete
|
||||
* yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer
|
||||
* 0 otherwise.
|
||||
*/
|
||||
int serial_is_tx_ongoing(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* DEVICE_SERIAL */
|
||||
|
|
Loading…
Reference in New Issue