|
|
|
|
|
by dthul
3153 days ago
|
|
Yes! Theoretically anything that Rust has support for (https://forge.rust-lang.org/platform-support.html) but I think most work has been put into ARM Cortex-M support recently. Especially Jorge Aparicio has worked to make embedded programming in Rust a joy (see https://japaric.github.io/discovery/ for an introduction). If you use STM32F MCUs you will probably have the lowest friction. I've heard of other people using the NXP Kinetis lineup as well. Do mind though that there are not many peripheral libraries yet. Currently I myself am fighting with getting USB to work. Of course you could still use the vendor provided C libraries and link against them if you don't want to go for 100% Rust. The best part: You can use many of Rust's high level zero-cost abstractions. Just take a look at this example code which compiles to very efficient assembly:
https://github.com/japaric/discovery/blob/116fe76491d661b5ee... |
|