mirror of https://github.com/ARMmbed/mbed-os.git
STM32: Remove GCC_ARM compilation warnings
parent
20d93bf78d
commit
ad55bc26dc
|
@ -478,9 +478,7 @@ void serial_clear(serial_t *obj)
|
|||
void serial_break_set(serial_t *obj)
|
||||
{
|
||||
struct serial_s *obj_s = SERIAL_S(obj);
|
||||
UART_HandleTypeDef *huart = &uart_handlers[obj_s->index];
|
||||
|
||||
//HAL_LIN_SendBreak(huart);
|
||||
UART_HandleTypeDef *huart __attribute__((unused)) = &uart_handlers[obj_s->index];
|
||||
}
|
||||
|
||||
#if DEVICE_SERIAL_ASYNCH
|
||||
|
@ -798,9 +796,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -874,8 +872,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);
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear RXNE flag
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
@ -172,7 +172,7 @@ static void uart_irq(int id)
|
|||
}
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
if (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_ERR) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -542,13 +542,13 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
|
|||
|
||||
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) {
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_PE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear PE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear PE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_FE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear FE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear FE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_NE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear NE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear NE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -599,9 +599,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -675,7 +675,7 @@ void serial_rx_abort_asynch(serial_t *obj)
|
|||
|
||||
// clear flags
|
||||
__HAL_UART_CLEAR_FLAG(huart, UART_FLAG_RXNE);
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear errors flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear errors flag
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
@ -259,7 +259,7 @@ static void uart_irq(int id)
|
|||
}
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
if (__HAL_UART_GET_IT_SOURCE(huart, USART_IT_ERR) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -720,13 +720,13 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
|
|||
|
||||
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) {
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_PE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear PE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear PE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_FE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear FE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear FE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_NE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear NE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear NE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -777,9 +777,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -853,7 +853,7 @@ void serial_rx_abort_asynch(serial_t *obj)
|
|||
|
||||
// clear flags
|
||||
__HAL_UART_CLEAR_FLAG(huart, UART_FLAG_RXNE);
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear error flags
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear error flags
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
@ -697,9 +697,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -773,8 +773,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);
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear RXNE flag
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
@ -286,7 +286,7 @@ static void uart_irq(int id)
|
|||
}
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
if (__HAL_UART_GET_IT_SOURCE(huart, USART_IT_ERR) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -782,13 +782,13 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
|
|||
|
||||
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) {
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_PE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear PE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear PE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_FE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear FE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear FE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_NE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear NE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear NE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -839,9 +839,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -915,7 +915,7 @@ void serial_rx_abort_asynch(serial_t *obj)
|
|||
|
||||
// clear flags
|
||||
__HAL_UART_CLEAR_FLAG(huart, UART_FLAG_RXNE);
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear errors flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear errors flag
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
@ -763,9 +763,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -838,7 +838,7 @@ void serial_rx_abort_asynch(serial_t *obj)
|
|||
__HAL_UART_DISABLE_IT(huart, UART_IT_ERR);
|
||||
|
||||
// clear flags
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear RXNE
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear RXNE
|
||||
__HAL_UART_CLEAR_IT(huart, UART_CLEAR_PEF);
|
||||
__HAL_UART_CLEAR_IT(huart, UART_CLEAR_FEF);
|
||||
__HAL_UART_CLEAR_IT(huart, UART_CLEAR_NEF);
|
||||
|
|
|
@ -57,7 +57,6 @@ static int32_t flash_lock(void)
|
|||
|
||||
int32_t flash_erase_sector(flash_t *obj, uint32_t address)
|
||||
{
|
||||
uint32_t FirstPage = 0;
|
||||
uint32_t PAGEError = 0;
|
||||
FLASH_EraseInitTypeDef EraseInitStruct;
|
||||
int32_t status = 0;
|
||||
|
|
|
@ -673,9 +673,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -749,7 +749,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
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear RXNE flag
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
@ -57,7 +57,6 @@ static int32_t flash_lock(void)
|
|||
|
||||
int32_t flash_erase_sector(flash_t *obj, uint32_t address)
|
||||
{
|
||||
uint32_t FirstPage = 0;
|
||||
uint32_t PAGEError = 0;
|
||||
FLASH_EraseInitTypeDef EraseInitStruct;
|
||||
int32_t status = 0;
|
||||
|
|
|
@ -203,7 +203,7 @@ static void uart_irq(int id)
|
|||
}
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
if (__HAL_UART_GET_IT_SOURCE(huart, UART_IT_ERR) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -607,13 +607,13 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
|
|||
|
||||
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) {
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_PE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear PE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear PE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_FE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear FE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear FE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_NE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear NE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear NE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -664,9 +664,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -740,7 +740,7 @@ void serial_rx_abort_asynch(serial_t *obj)
|
|||
|
||||
// clear flags
|
||||
__HAL_UART_CLEAR_FLAG(huart, UART_FLAG_RXNE);
|
||||
volatile uint32_t tmpval = huart->Instance->DR; // Clear errors flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->DR; // Clear errors flag
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
|
@ -230,7 +230,7 @@ static void uart_irq(int id)
|
|||
}
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
if (__HAL_UART_GET_IT(huart, UART_IT_ORE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -659,13 +659,13 @@ void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
|
|||
|
||||
void HAL_UART_ErrorCallback(UART_HandleTypeDef *huart) {
|
||||
if (__HAL_UART_GET_FLAG(huart, UART_FLAG_PE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear PE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear PE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_FE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear FE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear FE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_NE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear NE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear NE flag
|
||||
} else if (__HAL_UART_GET_FLAG(huart, UART_FLAG_ORE) != RESET) {
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear ORE flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear ORE flag
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -716,9 +716,9 @@ int serial_irq_handler_asynch(serial_t *obj)
|
|||
HAL_UART_IRQHandler(huart);
|
||||
|
||||
// Abort if an error occurs
|
||||
if (return_event & SERIAL_EVENT_RX_PARITY_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_FRAMING_ERROR ||
|
||||
return_event & SERIAL_EVENT_RX_OVERRUN_ERROR) {
|
||||
if ((return_event & SERIAL_EVENT_RX_PARITY_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_FRAMING_ERROR) ||
|
||||
(return_event & SERIAL_EVENT_RX_OVERRUN_ERROR)) {
|
||||
return return_event;
|
||||
}
|
||||
|
||||
|
@ -792,7 +792,7 @@ void serial_rx_abort_asynch(serial_t *obj)
|
|||
|
||||
// clear flags
|
||||
__HAL_UART_CLEAR_FLAG(huart, UART_FLAG_RXNE);
|
||||
volatile uint32_t tmpval = huart->Instance->RDR; // Clear errors flag
|
||||
volatile uint32_t tmpval __attribute__((unused)) = huart->Instance->RDR; // Clear errors flag
|
||||
|
||||
// reset states
|
||||
huart->RxXferCount = 0;
|
||||
|
|
Loading…
Reference in New Issue