arch/arm/src/stm32h5/stm32_serial.c: Fixed compiler warning
Build Documentation / build-html (push) Has been cancelled

Added missing #ifdef to avoid compiler warning when DMA is not used.

Signed-off-by: daniellizewski <daniellizewski@geotab.com>
This commit is contained in:
daniellizewski
2026-04-16 14:29:36 -04:00
committed by Xiang Xiao
parent 532fede38b
commit c205505ca9
+2
View File
@@ -3745,6 +3745,7 @@ static bool stm32serial_txready(struct uart_dev_s *dev)
*
****************************************************************************/
#ifdef SERIAL_HAVE_DMA
static void stm32serial_dmarxcallback(DMA_HANDLE handle,
uint8_t status,
void *arg)
@@ -3779,6 +3780,7 @@ static void stm32serial_dmarxcallback(DMA_HANDLE handle,
USART_ICR_ORECF | USART_ICR_NCF | USART_ICR_FECF);
}
}
#endif
/****************************************************************************
* Name: stm32serial_pmnotify