-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e41d104
commit af1dcd7
Showing
7 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[package] | ||
name = "examples-cortex-m" | ||
version = "0.1.0" | ||
authors = ["Matti Virkkunen <mvirkkunen@gmail.com>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
cortex-m = "0.7.1" | ||
cortex-m-rt = "0.6.12" | ||
panic-halt = "0.2.0" | ||
rtt-target = { path = "../rtt-target", features = ["cortex-m"] } | ||
ufmt = "0.1.0" | ||
|
||
[[bin]] | ||
name = "custom" | ||
|
||
[[bin]] | ||
name = "print" | ||
|
||
[[bin]] | ||
name = "ufmt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use std::{env, error::Error, fs::File, io::Write, path::PathBuf}; | ||
|
||
fn main() -> Result<(), Box<dyn Error>> { | ||
let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap()); | ||
|
||
println!("cargo:rustc-link-search={}", out_dir.display()); | ||
File::create(out_dir.join("memory.x"))?.write_all(include_bytes!("memory.x"))?; | ||
|
||
Ok(()) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters