mirror of https://github.com/ARMmbed/mbed-os.git
STM32F3: Eliminate two unused variable warnings
parent
4f9bdf5ee0
commit
97eaed7b0a
|
|
@ -292,6 +292,7 @@ static void uart_irq(int id)
|
|||
if (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_RXNE) != RESET) {
|
||||
irq_handler(serial_irq_ids[id], RxIrq);
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear RXNE flag
|
||||
UNUSED(tmpval);
|
||||
}
|
||||
}
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
|
|
@ -875,6 +876,7 @@ void serial_rx_abort_asynch(serial_t *obj)
|
|||
// clear flags
|
||||
__HAL_UART_CLEAR_FLAG(huart, UART_CLEAR_PEF | UART_CLEAR_FEF | UART_CLEAR_OREF);
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear RXNE flag
|
||||
UNUSED(tmpval);
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue