mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-26 03:06:32 +11:00
Make UartConfig::new(...) const
This commit is contained in:
parent
e9428c3f57
commit
d8a0c64618
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ pub struct UartConfig {
|
||||||
|
|
||||||
impl UartConfig {
|
impl UartConfig {
|
||||||
/// Create a new instance of UartConfig
|
/// Create a new instance of UartConfig
|
||||||
pub fn new(
|
pub const fn new(
|
||||||
baudrate: HertzU32,
|
baudrate: HertzU32,
|
||||||
data_bits: DataBits,
|
data_bits: DataBits,
|
||||||
parity: Option<Parity>,
|
parity: Option<Parity>,
|
||||||
|
|
Loading…
Add table
Reference in a new issue