Make UartConfig::new(...) const

This commit is contained in:
Jan Niehusmann 2022-10-15 17:34:13 +00:00
parent e9428c3f57
commit d8a0c64618

View file

@ -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>,