Set udre flag when (re)enabling uart transmitter.
authorbsekisser <squirmyworms@embarqmail.com>
Sat, 10 Oct 2020 21:40:59 +0000 (17:40 -0400)
committerbsekisser <squirmyworms@embarqmail.com>
Sat, 10 Oct 2020 22:18:53 +0000 (18:18 -0400)
commite479fb39412f9fb7b1110facd6867997ef839e5d
treec7a13783bc81c01140fed9a425272deed0a6ed1e
parent5c757546298c4c26022b3b4861e1bbfbdb72ac52
Set udre flag when (re)enabling uart transmitter.

modified:   sim/avr_uart.c

Previously, disabling the uart transmitter cleared the udrc
interrupt and cleared the udre (udrc.raised) flag.  Upon
reenabling the transmitter, the udre flag is still clear
signifying the buffer is full, thus waiting for the udr to
clear via udre flag hangs.
simavr/sim/avr_uart.c