From 281f23ea1957bb92abb368f69b173957aaa652d9 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 1 Sep 2020 13:53:51 +0000 Subject: [PATCH] Removed some dead code. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13828 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/hal/ports/STM32/LLD/USARTv2/hal_sio_lld.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/os/hal/ports/STM32/LLD/USARTv2/hal_sio_lld.c b/os/hal/ports/STM32/LLD/USARTv2/hal_sio_lld.c index 4c7f47d47..e459c147d 100644 --- a/os/hal/ports/STM32/LLD/USARTv2/hal_sio_lld.c +++ b/os/hal/ports/STM32/LLD/USARTv2/hal_sio_lld.c @@ -473,7 +473,6 @@ void sio_lld_start_operation(SIODriver *siop) { cr1irq = 0U; cr2irq = 0U; cr3irq = 0U; - evtmask = 0U; if (siop->operation->rx_cb != NULL) { cr3irq |= USART_CR3_RXFTIE; } @@ -712,7 +711,6 @@ void sio_lld_serve_interrupt(SIODriver *siop) { /* Note, ISR flags are just read but not cleared, ISR sources are disabled instead.*/ isr = u->ISR; -// u->ICR = isr & ~USART_ISR_TC; /* One read on control registers.*/ cr1 = u->CR1; @@ -727,9 +725,6 @@ void sio_lld_serve_interrupt(SIODriver *siop) { /* One read on control registers.*/ cr2 = u->CR2; - /* Storing events in the accumulation field.*/ -// siop->events |= evtmask; - /* The callback is invoked if defined.*/ __sio_callback_rx_evt(siop);