embassy/embassy-hal-common/src
Dario Nieuwenhuis c9b9be5b81 hal-common: require DerefMut for peripherals, not just Deref.
Otherwise you can create multiple drivers on the same singleton like this:

```rust
let mut input = Input::new(&pin, Pull::None);
let mut output = Output::new(&pin, Level::Low, Speed::Low);
input.is_high();
output.set_high();
input.is_high();
output.set_high();
```

Thanks @pennae for reporting.
2023-07-02 22:16:01 +02:00
..
atomic_ring_buffer.rs Fix tests. 2023-05-29 19:46:28 +02:00
drop.rs Add must_use to OnDrop 2023-03-17 11:40:19 +01:00
fmt.rs Rename embassy-extras to embassy-hal-common 2021-07-29 13:44:51 +02:00
interrupt.rs Remove embassy-cortex-m crate, move stuff to embassy-hal-common. 2023-06-09 16:44:20 +02:00
lib.rs Remove embassy-cortex-m crate, move stuff to embassy-hal-common. 2023-06-09 16:44:20 +02:00
macros.rs stm32: remove TIMX singleton when used on timer driver 2023-04-16 17:47:25 -05:00
peripheral.rs hal-common: require DerefMut for peripherals, not just Deref. 2023-07-02 22:16:01 +02:00
ratio.rs Run rustfmt. 2022-06-12 22:22:31 +02:00
ring_buffer.rs Provides AsyncWrite with flush 2021-12-10 12:16:08 +11:00