diff --git a/rp2040-hal/src/uart/utils.rs b/rp2040-hal/src/uart/utils.rs index 094096d..f2eb9e7 100644 --- a/rp2040-hal/src/uart/utils.rs +++ b/rp2040-hal/src/uart/utils.rs @@ -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,