Skip to content

Commit c205505

Browse files
daniel-geotabxiaoxiang781216
authored andcommitted
arch/arm/src/stm32h5/stm32_serial.c: Fixed compiler warning
Added missing #ifdef to avoid compiler warning when DMA is not used. Signed-off-by: daniellizewski <daniellizewski@geotab.com>
1 parent 532fede commit c205505

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/arm/src/stm32h5/stm32_serial.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3745,6 +3745,7 @@ static bool stm32serial_txready(struct uart_dev_s *dev)
37453745
*
37463746
****************************************************************************/
37473747

3748+
#ifdef SERIAL_HAVE_DMA
37483749
static void stm32serial_dmarxcallback(DMA_HANDLE handle,
37493750
uint8_t status,
37503751
void *arg)
@@ -3779,6 +3780,7 @@ static void stm32serial_dmarxcallback(DMA_HANDLE handle,
37793780
USART_ICR_ORECF | USART_ICR_NCF | USART_ICR_FECF);
37803781
}
37813782
}
3783+
#endif
37823784

37833785
/****************************************************************************
37843786
* Name: stm32serial_pmnotify

0 commit comments

Comments
 (0)