|
| 1 | ++++ |
| 2 | +title = "The Embedded Working Group Newsletter - 14" |
| 3 | +date = 2018-10-28 |
| 4 | +draft = false |
| 5 | +in_search_index = true |
| 6 | +template = "page.html" |
| 7 | ++++ |
| 8 | + |
| 9 | +This is the fourteenth newsletter of the [Embedded WG] where we highlight new progress, celebrate cool projects, thank the community, and advertise projects that need help! |
| 10 | + |
| 11 | +This is a special "spotlight" edition of the newsletter, where we look at a few topics in a bit more detail. Let us know what you think of the new format, and if there is anything you'd like to see included in [the next newsletter]! |
| 12 | + |
| 13 | +[Embedded WG]: https://github.com/rust-embedded/wg |
| 14 | + |
| 15 | +Discuss on [users.rust-lang.org], [on twitter], or [on reddit]! |
| 16 | + |
| 17 | +[users.rust-lang.org]: # |
| 18 | +[on twitter]: # |
| 19 | +[on reddit]: # |
| 20 | +[the next newsletter]: https://github.com/rust-embedded/blog/issues/22 |
| 21 | + |
| 22 | +<!-- more --> |
| 23 | + |
| 24 | +## The Newest Embedded WG Team: Cortex-A! |
| 25 | + |
| 26 | +<hr> |
| 27 | + |
| 28 | +![Screenshot of Cortex-A RFC][cortex-a-screenshot] |
| 29 | + |
| 30 | +<hr> |
| 31 | + |
| 32 | +[cortex-a-screenshot]: ../screenshot-cortex-a.png |
| 33 | + |
| 34 | +The Embedded Working Group has launched a Cortex-A team, to focus on supporting developers working on bare-metal, micro kernel, and other low-level tasks using ARM's Cortex-A series of microprocessors. |
| 35 | + |
| 36 | +The team kicked off with four members: [@andre-richter], [@parched], [@raw-bin], and [@wizofe], and have already started assembling initial [goals for their team]. |
| 37 | + |
| 38 | +[goals for their team]: https://github.com/rust-embedded/wg/milestone/5 |
| 39 | +[@andre-richter]: https://github.com/andre-richter |
| 40 | +[@parched]: https://github.com/parched |
| 41 | +[@raw-bin]: https://github.com/raw-bin |
| 42 | +[@wizofe]: https://github.com/wizofe |
| 43 | + |
| 44 | + |
| 45 | +## The Monotron visits Rust Belt Rust |
| 46 | + |
| 47 | +<hr> |
| 48 | + |
| 49 | +<blockquote class="twitter-tweet" data-conversation="none" data-lang="en"><p lang="en" dir="ltr">Astonishing. Smashed my high score! <a href="https://t.co/WG9FXc8Kao">pic.twitter.com/WG9FXc8Kao</a></p>— Jonathan Pallant (@therealjpster) <a href="https://twitter.com/therealjpster/status/1053698944360951813?ref_src=twsrc%5Etfw">October 20, 2018</a></blockquote> |
| 50 | +<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> |
| 51 | + |
| 52 | +<hr> |
| 53 | + |
| 54 | +[@thejpster]'s project, the [monotron] travelled to Ann Arbor, Michigan for [Rust Belt Rust 2018]. Since its [last conference appearance], it has gained a whole new [list of features], including a serial application loader, a 3 channel wave table synthesizer, Atari Joystick support, and more! |
| 55 | + |
| 56 | +Check out the video above for a demo of Snake on the monotron hardware. |
| 57 | + |
| 58 | +[Rust Belt Rust 2018]: https://rust-belt-rust.com/ |
| 59 | +[@thejpster]: https://github.com/thejpster |
| 60 | +[monotron]: https://github.com/thejpster/monotron |
| 61 | +[last conference appearance]: https://www.youtube.com/watch?v=pTEYqpcQ6lg |
| 62 | +[list of features]: https://twitter.com/therealjpster/status/1055187256091332608 |
| 63 | + |
| 64 | +## Peripheral Ownership Woes? Not with `shared-bus`! |
| 65 | + |
| 66 | +<hr> |
| 67 | + |
| 68 | +```rust |
| 69 | +extern crate shared_bus; |
| 70 | + |
| 71 | +// Create your bus peripheral as usual: |
| 72 | +// let i2c = I2c::i2c1(dp.I2C1, (scl, sda), 90.khz(), clocks, &mut rcc.apb1); |
| 73 | + |
| 74 | +let manager = shared_bus::CortexMBusManager::new(i2c); |
| 75 | + |
| 76 | +// You can now acquire bus handles: |
| 77 | +let mut handle = manager.acquire(); |
| 78 | +// handle implements `i2c::{Read, Write, WriteRead}`, depending on the |
| 79 | +// implementations of the underlying peripheral |
| 80 | + |
| 81 | +// Now, this works! :+1: |
| 82 | +let port_a = Pcf8574(manager.acquire(), 0x39).unwrap(); |
| 83 | +let port_b = Pcf8574(manager.acquire(), 0x38).unwrap(); |
| 84 | +``` |
| 85 | + |
| 86 | +<hr> |
| 87 | + |
| 88 | +In most `embedded-hal` compatible drivers, the driver takes either ownership or a mutable reference to the peripheral used to interact with a component, such as I2C or SPI. For some protocols, such as I2C, which might have multiple devices connected to the same peripheral, managing ownership can be difficult (see [embedded-hal/35] for discussion). |
| 89 | + |
| 90 | +To address this, [@rahix] developed [shared-bus], a crate which provides safe shared access to these peripherals through the use of a mutex. This allows for access of the underlying peripheral in as many drivers as you need! Check out the [release blog post] for more details, and for examples on how to use this for your projects. |
| 91 | + |
| 92 | + |
| 93 | +[@rahix]: https://github.com/Rahix |
| 94 | +[embedded-hal/35]: https://github.com/rust-embedded/embedded-hal/issues/35 |
| 95 | +[shared-bus]: https://github.com/Rahix/shared-bus |
| 96 | +[release blog post]: https://blog.rahix.de/001-shared-bus/ |
| 97 | + |
| 98 | +## The Embedded Rust Community is Growing! |
| 99 | + |
| 100 | +<hr> |
| 101 | + |
| 102 | +<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">Happy Tuesday! Quick poll: What are you using <a href="https://twitter.com/hashtag/embedded?src=hash&ref_src=twsrc%5Etfw">#embedded</a> <a href="https://twitter.com/rustlang?ref_src=twsrc%5Etfw">@rustlang</a> for right now?<br><br>RTs appreciated!</p>— Rust Embedded Working Group (@rustembedded) <a href="https://twitter.com/rustembedded/status/1052189142065405952?ref_src=twsrc%5Etfw">October 16, 2018</a></blockquote> |
| 103 | +<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> |
| 104 | + |
| 105 | +<hr> |
| 106 | + |
| 107 | +As we get closer to our goal of stable embedded development with Rust for the 2018 edition launch, the embedded community is ramping up. We did a quick twitter poll which received hundreds of responses, and heard from developers using or evaluating embedded rust for personal and work projects. |
| 108 | + |
| 109 | +The [Embedded WG] has also grown, starting off this year with 8 developers on a single team, to a group of **27 developers** across **11 teams**, each with their own area of focus within the embedded rust space. |
| 110 | + |
| 111 | +Now is a great time to start working with Embedded Rust, and we can't wait to see what the next year brings! |
| 112 | + |
| 113 | +## `embedded-hal` Ecosystem Crates |
| 114 | + |
| 115 | +As part of the [Weekly Driver Initiative], crates that are part of the `embedded-hal` ecosystem are now tracked in the [Awesome Embedded Rust] repository. Here is a current snapshot of what is available there: |
| 116 | + |
| 117 | +| Type | Status | Count | Diff | |
| 118 | +| :--- | :----- | :---- | :--- | |
| 119 | +| [Device Crates] | released | 16 | 0 | |
| 120 | +| [HAL Impl Crates] | released | 13 | 0 | |
| 121 | +| [Board Support Crates] | released | 11 | 0 | |
| 122 | +| [Driver Crates Released] | released | 16 | +1 | |
| 123 | +| [Driver Crates WIP] | WIP | 46 | +6 | |
| 124 | +| [no-std crates] | released | 17 | +3 | |
| 125 | + |
| 126 | +[Awesome Embedded Rust]: https://github.com/rust-embedded/awesome-embedded-rust |
| 127 | +[Weekly Driver Initiative]: https://github.com/rust-embedded/wg/issues/39 |
| 128 | +[Device Crates]: https://github.com/rust-embedded/awesome-embedded-rust#device-crates |
| 129 | +[HAL Impl Crates]: https://github.com/rust-embedded/awesome-embedded-rust#hal-implementation-crates |
| 130 | +[Board Support Crates]: https://github.com/rust-embedded/awesome-embedded-rust#board-support-crates |
| 131 | +[Driver Crates Released]: https://github.com/rust-embedded/awesome-embedded-rust#driver-crates |
| 132 | +[Driver Crates WIP]: https://github.com/rust-embedded/awesome-embedded-rust#wip |
| 133 | +[no-std crates]: https://github.com/rust-embedded/awesome-embedded-rust#no-std-crates |
| 134 | + |
| 135 | +## Help Wanted |
| 136 | + |
| 137 | +* Interested in implementing a new target for Embedded Rust? Nuvoton has a [development board] for the Cortex-M23. Check out the [thumbv8m tracking issue] if you want to help! |
| 138 | + |
| 139 | +[development board]: https://direct.nuvoton.com/de/numaker-pfm-m2351 |
| 140 | +[thumbv8m tracking issue]: https://github.com/rust-embedded/wg/issues/88 |
0 commit comments