Skip to content

Commit 50d6eac

Browse files
kamnxthenrikbrixandersen
authored andcommitted
drivers: serial: stm32: fix some formatting
Fix some formatting, because the clang-format compliance test was complaining. Signed-off-by: Kamil Krzyżanowski <[email protected]>
1 parent 3db0048 commit 50d6eac

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

drivers/serial/uart_stm32.c

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,8 +1369,8 @@ static void uart_stm32_isr(const struct device *dev)
13691369
return;
13701370
}
13711371
#endif /* CONFIG_UART_INTERRUPT_DRIVEN */
1372-
if (LL_USART_IsEnabledIT_IDLE(usart) &&
1373-
LL_USART_IsActiveFlag_IDLE(usart)) {
1372+
1373+
if (LL_USART_IsEnabledIT_IDLE(usart) && LL_USART_IsActiveFlag_IDLE(usart)) {
13741374

13751375
LL_USART_ClearFlag_IDLE(usart);
13761376

@@ -1391,17 +1391,15 @@ static void uart_stm32_isr(const struct device *dev)
13911391
async_timer_start(&data->dma_rx.timeout_work,
13921392
data->dma_rx.timeout);
13931393
}
1394-
} else if (LL_USART_IsEnabledIT_TC(usart) &&
1395-
LL_USART_IsActiveFlag_TC(usart)) {
1394+
} else if (LL_USART_IsEnabledIT_TC(usart) && LL_USART_IsActiveFlag_TC(usart)) {
13961395

13971396
LL_USART_DisableIT_TC(usart);
13981397
/* Generate TX_DONE event when transmission is done */
13991398
async_evt_tx_done(data);
14001399
#ifdef CONFIG_PM
14011400
uart_stm32_pm_policy_state_lock_put_unconditional();
14021401
#endif
1403-
} else if (LL_USART_IsEnabledIT_RXNE(usart) &&
1404-
LL_USART_IsActiveFlag_RXNE(usart)) {
1402+
} else if (LL_USART_IsEnabledIT_RXNE(usart) && LL_USART_IsActiveFlag_RXNE(usart)) {
14051403
#ifdef USART_SR_RXNE
14061404
/* clear the RXNE flag, because Rx data was not read */
14071405
LL_USART_ClearFlag_RXNE(usart);
@@ -1772,8 +1770,7 @@ static int uart_stm32_async_rx_enable(const struct device *dev,
17721770
data->dma_rx.blk_cfg.block_size = buf_size;
17731771
data->dma_rx.blk_cfg.dest_address = (uint32_t)data->dma_rx.buffer;
17741772

1775-
ret = dma_config(data->dma_rx.dma_dev, data->dma_rx.dma_channel,
1776-
&data->dma_rx.dma_cfg);
1773+
ret = dma_config(data->dma_rx.dma_dev, data->dma_rx.dma_channel, &data->dma_rx.dma_cfg);
17771774

17781775
if (ret != 0) {
17791776
LOG_ERR("UART ERR: RX DMA config failed!");

0 commit comments

Comments
 (0)