mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-26 03:06:32 +11:00
Set the uart config default baud rate to 115200
This commit is contained in:
parent
b3b4d9ff6f
commit
d6e3c7b615
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ pub enum Parity {
|
||||||
/// ```ignore
|
/// ```ignore
|
||||||
/// # // can't actually create this with the non_exhaustive attribute
|
/// # // can't actually create this with the non_exhaustive attribute
|
||||||
/// UartConfig {
|
/// UartConfig {
|
||||||
/// baudrate: Baud(0),
|
/// baudrate: Baud(115_200),
|
||||||
/// data_bits: DataBits::Eight,
|
/// data_bits: DataBits::Eight,
|
||||||
/// stop_bits: StopBits::One,
|
/// stop_bits: StopBits::One,
|
||||||
/// parity: None,
|
/// parity: None,
|
||||||
|
@ -88,7 +88,7 @@ pub struct UartConfig {
|
||||||
impl Default for UartConfig {
|
impl Default for UartConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
baudrate: Baud(0),
|
baudrate: Baud(115_200),
|
||||||
data_bits: DataBits::Eight,
|
data_bits: DataBits::Eight,
|
||||||
stop_bits: StopBits::One,
|
stop_bits: StopBits::One,
|
||||||
parity: None,
|
parity: None,
|
||||||
|
|
Loading…
Add table
Reference in a new issue