Skip to content

Commit

Permalink
hw/char/stm32f2xx_usart: Update IRQ when DR is written
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Hans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Message-id: 20231030151528.1138131-3-hans-erik.floryd@rt-labs.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
  • Loading branch information
hefloryd authored and pm215 committed Nov 2, 2023
1 parent b80e20d commit 2e9cb20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/char/stm32f2xx_usart.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ static void stm32f2xx_usart_write(void *opaque, hwaddr addr,
clear TC by writing 0 to the SR register, so set it again
on each write. */
s->usart_sr |= USART_SR_TC;
stm32f2xx_update_irq(s);
}
return;
case USART_BRR:
Expand Down

0 comments on commit 2e9cb20

Please sign in to comment.