Skip to content

Commit

Permalink
Initial Implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPardy committed Nov 30, 2021
0 parents commit 255b770
Show file tree
Hide file tree
Showing 8 changed files with 568 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
324 changes: 324 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[package]
name = "tiva-serial"
version = "0.1.0"
authors = ["Chris Pardy <[email protected]>"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[profile.release]
panic="abort"

[profile.dev]
panic="abort"
debug=true

[dependencies]
embedded-hal = "0.2"
tm4c123x-hal = "0.10"
cortex-m-rt = "0.6"
cortex-m-semihosting = "0.3.2"
nb = "1.0.0"
14 changes: 14 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use std::env;
use std::fs::File;
use std::io::Write;
use std::path::PathBuf;

fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());

let memory_x = include_bytes!("memory.x.in");
let mut f = File::create(out_dir.join("memory.x")).unwrap();
f.write_all(memory_x).unwrap();

println!("cargo:rustc-link-search={}", out_dir.display());
}
Loading

0 comments on commit 255b770

Please sign in to comment.