Fix DUART timing, Update to release 0.6.2
This commit is contained in:
parent
dc944c2e49
commit
a66a466088
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "dmd_core"
|
||||
description = "AT&T / Teletype DMD 5620 Terminal Emulator - Core Library"
|
||||
version = "0.6.0"
|
||||
version = "0.6.2"
|
||||
authors = ["Seth Morabito <web@loomcom.com>"]
|
||||
homepage = "https://github.com/sethm/dmd_core"
|
||||
repository = "https://github.com/sethm/dmd_core"
|
||||
|
|
|
@ -27,6 +27,8 @@ however.
|
|||
|
||||
## Changelog
|
||||
|
||||
0.6.2: Fix UART character delay timing.
|
||||
|
||||
0.6.1: Fix failing tets.
|
||||
|
||||
0.6.0: Breaking change. Refactor DMD a bit to rename the function
|
||||
|
|
12
src/duart.rs
12
src/duart.rs
|
@ -21,16 +21,16 @@ const VERTICAL_BLANK_DELAY: u32 = 16_666_666; // 60 Hz
|
|||
|
||||
// Delay rates, in nanoseconds, selected when ACR[7] = 0
|
||||
const DELAY_RATES_A: [u32;13] = [
|
||||
200_000_000, 90_909_096, 74_074_072, 50_000_000,
|
||||
33_333_336, 16_666_668, 8_333_334, 9_523_810,
|
||||
4_166_667, 2_083_333, 1_388_888, 1_041_666, 260_416,
|
||||
160000000, 72727272, 59259260, 40000000,
|
||||
26666668, 13333334, 6666667, 7619047,
|
||||
3333333, 1666666, 1111111, 833333, 208333
|
||||
];
|
||||
|
||||
// Delay rates, in nanoseconds, selected when ACR[7] = 1
|
||||
const DELAY_RATES_B: [u32;13] = [
|
||||
133_333_344, 90_909_096, 74_074_072, 66_666_672,
|
||||
33_333_336, 16_666_668, 8_333_334, 5_000_000,
|
||||
4_166_667, 2_083_333, 5_555_555, 1_041_666, 52_083,
|
||||
106666672, 72727272, 59259260, 53333336,
|
||||
26666668, 13333334, 6666667, 4000000,
|
||||
3333333, 1666666, 4444444, 833333, 416666
|
||||
];
|
||||
|
||||
const PORT_0: usize = 0;
|
||||
|
|
Loading…
Reference in New Issue