aboutsummaryrefslogtreecommitdiff
path: root/embassy-hal-common/src/peripheral.rs
Commit message (Collapse)AuthorAgeFilesLines
* Rename embassy-hal-common to embassy-hal-internal, document it's for ↵Dario Nieuwenhuis2023-07-281-174/+0
| | | | internal use only. (#1700)
* hal-common: require DerefMut for peripherals, not just Deref.Dario Nieuwenhuis2023-07-021-1/+1
| | | | | | | | | | | | | | | 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.
* common/peripheral: do not require mut in PeripheralRef clone_unchecked.Dario Nieuwenhuis2023-04-111-6/+6
|
* PeripheralRef docs improvements.Dario Nieuwenhuis2023-02-031-9/+10
|
* Fix typo in peripheral.rsDaniel Bevenius2022-09-081-1/+1
|
* nrf: replace PhantomData usages with PeripheralRef.Dario Nieuwenhuis2022-07-231-0/+30
|
* Remove PeripheralRef::into_inner()Dario Nieuwenhuis2022-07-231-4/+0
|
* Add docs to PeripheralRef::map_into.Dario Nieuwenhuis2022-07-231-0/+6
|
* Rename Unborrowed -> PeripheralRef, Unborrow -> PeripheralDario Nieuwenhuis2022-07-231-0/+141
|
* Add embassy-cortex-m crate.Dario Nieuwenhuis2022-06-121-134/+0
| | | | | | - Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`. - Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore) - Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
* common/PeripheralMutex: remove unsafe API. (#802)Dario Nieuwenhuis2022-06-091-24/+2
| | | | | | Following the project's decision that "leak unsafe" APIs are not marked as "unsafe", update PeripheralMutex to accept non-'static state without unsafe. Fixes #801
* Update rust nightly, embedded-hal 1.0, embedded-hal-async.Dario Nieuwenhuis2022-03-111-1/+1
|
* common: Initialize PeripheralMutex state with closure to ensure it's done ↵Dario Nieuwenhuis2021-08-021-7/+11
| | | | in-place.
* Make const the states when able.Dario Nieuwenhuis2021-08-021-1/+1
|
* hal-common: remove Pin in PeripheralMutexDario Nieuwenhuis2021-08-021-66/+58
|
* Rename embassy-extras to embassy-hal-commonDario Nieuwenhuis2021-07-291-0/+160