<feed xmlns='http://www.w3.org/2005/Atom'>
<title>embassy/embassy-hal-common/src/peripheral.rs, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/'/>
<entry>
<title>Rename embassy-hal-common to embassy-hal-internal, document it's for internal use only. (#1700)</title>
<updated>2023-07-28T11:23:22+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2023-07-28T11:23:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=036e6ae30c9e772ef8ef20439f121e108b9106f0'/>
<id>036e6ae30c9e772ef8ef20439f121e108b9106f0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>hal-common: require DerefMut for peripherals, not just Deref.</title>
<updated>2023-07-02T20:16:01+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2023-07-02T20:07:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=c9b9be5b819911aaf809df9b55be7e7efa3a1fba'/>
<id>c9b9be5b819911aaf809df9b55be7e7efa3a1fba</id>
<content type='text'>
Otherwise you can create multiple drivers on the same singleton like this:

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

Thanks @pennae for reporting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise you can create multiple drivers on the same singleton like this:

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

Thanks @pennae for reporting.
</pre>
</div>
</content>
</entry>
<entry>
<title>common/peripheral: do not require mut in PeripheralRef clone_unchecked.</title>
<updated>2023-04-11T21:09:02+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2023-04-11T21:00:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=9a677ab618aa7a7612cd079b77d3240bdb02fdac'/>
<id>9a677ab618aa7a7612cd079b77d3240bdb02fdac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>PeripheralRef docs improvements.</title>
<updated>2023-02-03T05:36:10+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2023-02-03T05:36:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=a432d91d82438f4ce0f17c85b9453ae79db5390d'/>
<id>a432d91d82438f4ce0f17c85b9453ae79db5390d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo in peripheral.rs</title>
<updated>2022-09-08T15:01:45+00:00</updated>
<author>
<name>Daniel Bevenius</name>
<email>daniel.bevenius@gmail.com</email>
</author>
<published>2022-09-08T15:01:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=34ed3441ce4924be4b637fb86ee4aa003dcc0e8d'/>
<id>34ed3441ce4924be4b637fb86ee4aa003dcc0e8d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>nrf: replace PhantomData usages with PeripheralRef.</title>
<updated>2022-07-23T13:13:47+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2022-07-23T13:13:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=709df0dc1dfff577fb79bbc2f67ea84670072456'/>
<id>709df0dc1dfff577fb79bbc2f67ea84670072456</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove PeripheralRef::into_inner()</title>
<updated>2022-07-23T12:27:45+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2022-07-23T12:27:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=f02ba35482790a54067978cde923867de3dc52a2'/>
<id>f02ba35482790a54067978cde923867de3dc52a2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add docs to PeripheralRef::map_into.</title>
<updated>2022-07-23T12:04:43+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2022-07-23T12:04:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=a158295782b75bce5f83f5d1c2c476b841493979'/>
<id>a158295782b75bce5f83f5d1c2c476b841493979</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename Unborrowed -&gt; PeripheralRef, Unborrow -&gt; Peripheral</title>
<updated>2022-07-23T12:00:19+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2022-07-23T12:00:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=4901c34d9c4cd326ab9bca02dd099a663da2567f'/>
<id>4901c34d9c4cd326ab9bca02dd099a663da2567f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add embassy-cortex-m crate.</title>
<updated>2022-06-12T19:45:38+00:00</updated>
<author>
<name>Dario Nieuwenhuis</name>
<email>dirbaio@dirbaio.net</email>
</author>
<published>2022-06-11T03:08:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.d464.sh/rust/embassy/commit/?id=5085100df2845745f13715669c18a785a374a879'/>
<id>5085100df2845745f13715669c18a785a374a879</id>
<content type='text'>
- 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`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 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`.
</pre>
</div>
</content>
</entry>
</feed>
