Commit 5b1830d85cd06020f50290b5e5b8e9e5e7049dae
authorMichel Pollet <buserror@gmail.com>
Tue, 15 Mar 2011 13:33:54 +0000 (13:33 +0000)
committerMichel Pollet <buserror@gmail.com>
Tue, 15 Mar 2011 13:33:54 +0000 (13:33 +0000)
tree78fb42ed4cdd250ba346adee7b2ddcdc32dc84bf
parentf871e491959a4f5b8fc0c6cb1ccc2b95626c1b8c
Message:
uart: Added logic to regulate data rate

Now uses a data rate thst is proportional to speed.
Could be made a bit better by using the cycle clock count directly,
but this method is a bit clearer

Signed-off-by: Michel Pollet <buserror@gmail.com>
2 files changed:
simavr/sim/avr_uart.c
simavr/sim/avr_uart.h