File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
targets/TARGET_STM/TARGET_STM32F3 Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,7 @@ static void uart_irq(int id)
292
292
if (__HAL_UART_GET_IT_SOURCE (huart , UART_IT_RXNE ) != RESET ) {
293
293
irq_handler (serial_irq_ids [id ], RxIrq );
294
294
volatile uint32_t tmpval = huart -> Instance -> RDR ; // Clear RXNE flag
295
+ UNUSED (tmpval );
295
296
}
296
297
}
297
298
if (__HAL_UART_GET_FLAG (huart , UART_FLAG_ORE ) != RESET ) {
@@ -578,14 +579,14 @@ static IRQn_Type serial_get_irq_n(serial_t *obj)
578
579
irq_n = USART3_IRQn ;
579
580
break ;
580
581
#endif
581
- #if defined(USART4_BASE )
582
+ #if defined(UART4_BASE )
582
583
case 3 :
583
- irq_n = USART4_IRQn ;
584
+ irq_n = UART4_IRQn ;
584
585
break ;
585
586
#endif
586
- #if defined(USART5_BASE )
587
+ #if defined(UART5_BASE )
587
588
case 4 :
588
- irq_n = USART5_IRQn ;
589
+ irq_n = UART5_IRQn ;
589
590
break ;
590
591
#endif
591
592
default :
@@ -875,6 +876,7 @@ void serial_rx_abort_asynch(serial_t *obj)
875
876
// clear flags
876
877
__HAL_UART_CLEAR_FLAG (huart , UART_CLEAR_PEF | UART_CLEAR_FEF | UART_CLEAR_OREF );
877
878
volatile uint32_t tmpval = huart -> Instance -> RDR ; // Clear RXNE flag
879
+ UNUSED (tmpval );
878
880
879
881
// reset states
880
882
huart -> RxXferCount = 0 ;
You can’t perform that action at this time.
0 commit comments