Use HAL coding style for function naming

pull/7717/head
Laurent Meunier 2018-08-07 13:42:46 +02:00
parent 402f3f1c3f
commit e12d98e1c0
2 changed files with 3 additions and 3 deletions

View File

@ -694,7 +694,7 @@ int8_t get_uart_index(UARTName uart_name)
* yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer * yet. Returns 1 if there is at least 1 serial instance with ongoing ransfer
* 0 otherwise. * 0 otherwise.
*/ */
int serial_IsTxOngoing(void) { int serial_is_tx_ongoing(void) {
int TxOngoing = 0; int TxOngoing = 0;
#if defined(USART1_BASE) #if defined(USART1_BASE)

View File

@ -157,7 +157,7 @@ void hal_sleep(void)
core_util_critical_section_exit(); core_util_critical_section_exit();
} }
extern int serial_IsTxOngoing(void); extern int serial_is_tx_ongoing(void);
void hal_deepsleep(void) void hal_deepsleep(void)
{ {
@ -167,7 +167,7 @@ void hal_deepsleep(void)
* This is tracked in mbed issue 4408. * This is tracked in mbed issue 4408.
* For now, we're checking all Serial HW FIFO. If any transfer is ongoing * For now, we're checking all Serial HW FIFO. If any transfer is ongoing
* we're not entering deep sleep and returning immediately. */ * we're not entering deep sleep and returning immediately. */
if(serial_IsTxOngoing()) { if(serial_is_tx_ongoing()) {
return; return;
} }