Skip to content

Commit 3773ee9

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

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/ondisk.rs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8514,9 +8514,23 @@ 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+
#[cfg_attr(feature = "serde", serde(rename = "230400 Baud"))]
8518+
_230400Baud = 9,
8519+
/// This variant only got added with Turin.
8520+
#[cfg_attr(feature = "serde", serde(rename = "460800 Baud"))]
8521+
_460800Baud = 10,
8522+
/// This variant only got added with Turin.
8523+
#[cfg_attr(feature = "serde", serde(rename = "576000 Baud"))]
8524+
_576000Baud = 11,
8525+
/// This variant only got added with Turin.
8526+
#[cfg_attr(feature = "serde", serde(rename = "921600 Baud"))]
8527+
_921600Baud = 12,
8528+
/// This variant only got added with Turin.
8529+
#[cfg_attr(feature = "serde", serde(rename = "1500000 Baud"))]
8530+
_1500000Baud = 13,
8531+
/// This variant only got added with Turin.
85188532
#[cfg_attr(feature = "serde", serde(rename = "3000000 Baud"))]
8519-
_3000000Baud = 9,
8533+
_3000000Baud = 14,
85208534
}
85218535

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

0 commit comments

Comments
 (0)