MENU

Fun & Interesting

From Zero to Async in Embedded Rust

The Rusty Bits 38,922 lượt xem 7 months ago
Video Not Working? Fix It Now

Today we learn about async/await and how it works in an embedded environment by... building an async runtime from scratch in embedded Rust! We also cover time-keeping, state-machines, interrupts and futures.. and a smidge of embassy, which we'll use extensively in future videos.

Subscribe : https://www.youtube.com/@therustybits?sub_confirmation=1
Patreon : https://www.patreon.com/therustybits

Chapters:
0:00 Intro
1:22 Project Setup
4:11 Timekeeping
8:04 State Machines
18:12 Interrupts
26:23 Futures
45:20 async/await
59:18 embassy
1:01:58 Awaiting the end

Special thanks to `word` and `long`Patreon supporters!
- David King
- Julian Bolivar
- Χάρης Αμαράντηγος

References:
https://youtu.be/TOAynddiu5M
https://youtu.be/A9wvA_S6m7Y
https://github.com/therustybits/zero-to-async
microbit schematic | https://github.com/microbit-foundation/microbit-v2-hardware
nRF52833 datasheet | https://infocenter.nordicsemi.com/pdf/nRF52833_PS_v1.6.pdf
Rust core::pin docs | https://doc.rust-lang.org/core/pin/index.html
embassy | https://embassy.dev/
https://youtu.be/H7NtzyP9q8E
lilos | https://github.com/cbiffle/lilos/
Cliff Biffle's 2023 OSFC talk introducing lilos | https://www.osfc.io/2023/talks/turn-your-code-inside-out-programming-and-debugging-bare-metal-with-async-rust/
Cliff Biffle's blog | https://cliffle.com/blog
without boats blog | https://without.boats/blog/
The Embedded Rust book | https://docs.rust-embedded.org/book/
"The Book" | https://doc.rust-lang.org/book/index.html

Comment