From Zero to Async in Embedded Rust

The Rusty Bits September 2, 2024
Video Thumbnail

About

No channel description available.

Video Description

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

Essential Rust Embedded Tools

AI-recommended products based on this video

Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
Moutina Kente Graduation Stole Class of 2025 | Black Girl Magic African Graduation Stole 2025 | African Art Handwoven Kente Cloth Graduation Scarf, Multi, 4.5x72 Inch

Moutina Kente Graduation Stole Class of 2025 | Black Girl Magic African Graduation Stole 2025 | African Art Handwoven Kente Cloth Graduation Scarf, Multi, 4.5x72 Inch

(34)
$11.99
$4.99 delivery Feb 20 - 27
Loading...
Kente Queens Black Girl Magic Kente Graduation Stole 2025 | Authentic African Art Kente Stole | Bold Patterns and Vibrant Colors 72"x4.5"

Kente Queens Black Girl Magic Kente Graduation Stole 2025 | Authentic African Art Kente Stole | Bold Patterns and Vibrant Colors 72"x4.5"

(48)
$6.99
$4.99 delivery Feb 20 - 27
Loading...
UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack, 10Gbps Type-C Converter, Car Charger Compatible with MacBook Pro, iPad Mac mini, iPhone 17/16, Galaxy, PC/Laptop, Hard Drive Enclosure

UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack, 10Gbps Type-C Converter, Car Charger Compatible with MacBook Pro, iPad Mac mini, iPhone 17/16, Galaxy, PC/Laptop, Hard Drive Enclosure

(86)
$9.74
Prime
Loading...
Elebase USB to USB C Adapter 4 Pack,USBC Female to A Male Car Charger,Type C Converter for iPhone 16 Pro Max,15 14 13 12 11 Plus,Apple Watch iWatch 10 9 8,Airpods,iPad Air Mini 6 7,Samsung Galaxy S25

Elebase USB to USB C Adapter 4 Pack,USBC Female to A Male Car Charger,Type C Converter for iPhone 16 Pro Max,15 14 13 12 11 Plus,Apple Watch iWatch 10 9 8,Airpods,iPad Air Mini 6 7,Samsung Galaxy S25

(54,858)
$12.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
USB C Cable 3Pack USB C to USB C Cable 10FT 60W Type C Charger Nylon Braided Compatible with iPhone 17 16 Pro/15 Pro/Plus/Max/iPad/MacBook and More

USB C Cable 3Pack USB C to USB C Cable 10FT 60W Type C Charger Nylon Braided Compatible with iPhone 17 16 Pro/15 Pro/Plus/Max/iPad/MacBook and More

(16)
$13.99
Prime
700+ bought in past month
Loading...
Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset
Best Seller

Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset

(19,554)
$24.99
FREE delivery Tue, Jun 17 on your first order
300+ bought in past month
Loading...
Western Digital 4TB My Book Desktop External Hard Drive, USB 3.0, External HDD with Password Protection and Backup Software - WDBBGB0040HBK-NESN

Western Digital 4TB My Book Desktop External Hard Drive, USB 3.0, External HDD with Password Protection and Backup Software - WDBBGB0040HBK-NESN

(4,704)
$148.98$138.55
FREE delivery Tue, Jun 17