Skip to content

Commit

Permalink
Use HAL coding style for function naming
Browse files Browse the repository at this point in the history
  • Loading branch information
LMESTM committed Aug 7, 2018
1 parent e229067 commit 7b87a8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion targets/TARGET_STM/serial_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* 0 otherwise.
*/
int serial_IsTxOngoing(void) {
int serial_is_tx_ongoing(void) {
int TxOngoing = 0;

#if defined(USART1_BASE)
Expand Down
4 changes: 2 additions & 2 deletions targets/TARGET_STM/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void hal_sleep(void)
core_util_critical_section_exit();
}

extern int serial_IsTxOngoing(void);
extern int serial_is_tx_ongoing(void);

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

Expand Down

0 comments on commit 7b87a8e

Please sign in to comment.