mirror of https://github.com/ARMmbed/mbed-os.git
STM32: typo corrections
parent
276d16f70d
commit
4017dea77f
|
@ -660,10 +660,10 @@ int8_t get_uart_index(UARTName uart_name)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Function to protect deep sleep while a seral Tx is ongoing on not complete
|
/* Function used to protect deep sleep while a serial transmission is on-going.
|
||||||
* yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer
|
.* Returns 1 if there is at least 1 serial instance with an on-going transfer
|
||||||
* 0 otherwise.
|
* and 0 otherwise.
|
||||||
*/
|
*/
|
||||||
int serial_is_tx_ongoing(void) {
|
int serial_is_tx_ongoing(void) {
|
||||||
int TxOngoing = 0;
|
int TxOngoing = 0;
|
||||||
|
|
||||||
|
@ -757,16 +757,11 @@ int serial_is_tx_ongoing(void) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If Tx is ongoing, then transfer is */
|
|
||||||
return TxOngoing;
|
return TxOngoing;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#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) {
|
int serial_is_tx_ongoing(void) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue