mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
arch/arm/src/stm32h5/stm32_serial.c: Fixed compiler warning
Build Documentation / build-html (push) Has been cancelled
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:
committed by
Xiang Xiao
parent
532fede38b
commit
c205505ca9
@@ -3745,6 +3745,7 @@ static bool stm32serial_txready(struct uart_dev_s *dev)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef SERIAL_HAVE_DMA
|
||||||
static void stm32serial_dmarxcallback(DMA_HANDLE handle,
|
static void stm32serial_dmarxcallback(DMA_HANDLE handle,
|
||||||
uint8_t status,
|
uint8_t status,
|
||||||
void *arg)
|
void *arg)
|
||||||
@@ -3779,6 +3780,7 @@ static void stm32serial_dmarxcallback(DMA_HANDLE handle,
|
|||||||
USART_ICR_ORECF | USART_ICR_NCF | USART_ICR_FECF);
|
USART_ICR_ORECF | USART_ICR_NCF | USART_ICR_FECF);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: stm32serial_pmnotify
|
* Name: stm32serial_pmnotify
|
||||||
|
|||||||
Reference in New Issue
Block a user