mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Reset UART in new()
This commit is contained in:
parent
26fa532fa3
commit
b380b3ddf6
|
@ -224,6 +224,7 @@ impl<S: State, D: UartDevice> UartPeripheral<S, D> {
|
|||
impl<D: UartDevice> UartPeripheral<Disabled, D> {
|
||||
/// Creates an UartPeripheral in Disabled state.
|
||||
pub fn new(device: D, resets: &mut pac::RESETS) -> UartPeripheral<Disabled, D> {
|
||||
device.reset_bring_down(resets);
|
||||
device.reset_bring_up(resets);
|
||||
|
||||
UartPeripheral {
|
||||
|
|
Loading…
Reference in a new issue