mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 12:41:31 +11:00
Make UartConfig::new(...) const
This commit is contained in:
parent
e9428c3f57
commit
d8a0c64618
|
@ -85,7 +85,7 @@ pub struct UartConfig {
|
|||
|
||||
impl UartConfig {
|
||||
/// Create a new instance of UartConfig
|
||||
pub fn new(
|
||||
pub const fn new(
|
||||
baudrate: HertzU32,
|
||||
data_bits: DataBits,
|
||||
parity: Option<Parity>,
|
||||
|
|
Loading…
Reference in a new issue