abstract
embassy-utils is embassy plus collection of util
support now
- RP ✔
- STM32 ✖ coming soon
- FlashUtil ✔
- more util coming soon
example
build.rs file (applicable to rp2040):
(build.rs is necessary, otherwise it may result in inability to burn)
//! This build script copies the `memory.x` file from the crate root into
//! a directory where the linker can always find it at build time.
//! For many projects this is optional, as the linker always searches the
//! project root directory -- wherever `Cargo.toml` is. However, if you
//! are using a workspace or have a more complicated build setup, this
//! build script becomes required. Additionally, by requesting that
//! Cargo re-run the build script whenever `memory.x` is changed,
//! updating `memory.x` ensures a rebuild of the application with the
//! new memory settings.
use env;
use File;
use Write;
use PathBuf;
Cargo.toml file :
= { = "0.7.0", = ["arch-cortex-m", "executor-thread"] }
= { = "0.1.1", = ["rp2040", "usb_log"] }
= { = "0.1.0", = ["rp"] }
= "0.4.0"
= "0.7.5"
= "1.0.0"
= "1.0.0"
FlashUtil example
main.rs file:
use Spawner;
use ;
use FlashTrait;
use UsbLogTrait;
use Timer;
use ToFlashLock;
use ;
async