Skip to content

Commit 2c74a75

Browse files
committed
Add more baud rates.
Fixes <#161>.
1 parent a8c7f0b commit 2c74a75

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/ondisk.rs

+19-2
Original file line numberDiff line numberDiff line change
@@ -8514,9 +8514,26 @@ pub enum BaudRate {
85148514
_57600Baud = 7,
85158515
#[cfg_attr(feature = "serde", serde(rename = "115200 Baud"))]
85168516
_115200Baud = 8,
8517-
/// Note: This variant needs a custom AgesaBootloader.
8517+
/// The variant meaning 230400 Baud only got added with Turin.
8518+
/// The variant meaning Hacky 3000000 Baud got added with one custom Milan bootloader build.
8519+
#[cfg_attr(feature = "serde", serde(rename = "230400 Baud"))]
8520+
#[cfg_attr(feature = "serde", serde(alias = "Hacky 3000000 Baud"))]
8521+
_230400Baud = 9,
8522+
/// This variant only got added with Turin.
8523+
#[cfg_attr(feature = "serde", serde(rename = "460800 Baud"))]
8524+
_460800Baud = 10,
8525+
/// This variant only got added with Turin.
8526+
#[cfg_attr(feature = "serde", serde(rename = "576000 Baud"))]
8527+
_576000Baud = 11,
8528+
/// This variant only got added with Turin.
8529+
#[cfg_attr(feature = "serde", serde(rename = "921600 Baud"))]
8530+
_921600Baud = 12,
8531+
/// This variant only got added with Turin.
8532+
#[cfg_attr(feature = "serde", serde(rename = "1500000 Baud"))]
8533+
_1500000Baud = 13,
8534+
/// This variant only got added with Turin.
85188535
#[cfg_attr(feature = "serde", serde(rename = "3000000 Baud"))]
8519-
_3000000Baud = 9,
8536+
_3000000Baud = 14,
85208537
}
85218538

85228539
#[derive(Debug, PartialEq, FromPrimitive, ToPrimitive, Copy, Clone)]

0 commit comments

Comments
 (0)