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)
292292 if (__HAL_UART_GET_IT_SOURCE (huart , UART_IT_RXNE ) != RESET ) {
293293 irq_handler (serial_irq_ids [id ], RxIrq );
294294 volatile uint32_t tmpval = huart -> Instance -> RDR ; // Clear RXNE flag
295+ UNUSED (tmpval );
295296 }
296297 }
297298 if (__HAL_UART_GET_FLAG (huart , UART_FLAG_ORE ) != RESET ) {
@@ -578,14 +579,14 @@ static IRQn_Type serial_get_irq_n(serial_t *obj)
578579 irq_n = USART3_IRQn ;
579580 break ;
580581#endif
581- #if defined(USART4_BASE )
582+ #if defined(UART4_BASE )
582583 case 3 :
583- irq_n = USART4_IRQn ;
584+ irq_n = UART4_IRQn ;
584585 break ;
585586#endif
586- #if defined(USART5_BASE )
587+ #if defined(UART5_BASE )
587588 case 4 :
588- irq_n = USART5_IRQn ;
589+ irq_n = UART5_IRQn ;
589590 break ;
590591#endif
591592 default :
@@ -875,6 +876,7 @@ void serial_rx_abort_asynch(serial_t *obj)
875876 // clear flags
876877 __HAL_UART_CLEAR_FLAG (huart , UART_CLEAR_PEF | UART_CLEAR_FEF | UART_CLEAR_OREF );
877878 volatile uint32_t tmpval = huart -> Instance -> RDR ; // Clear RXNE flag
879+ UNUSED (tmpval );
878880
879881 // reset states
880882 huart -> RxXferCount = 0 ;
You can’t perform that action at this time.
0 commit comments