-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for SAME70 (new PACs and HAL adjustments)
- Loading branch information
1 parent
ab021f8
commit c07076e
Showing
7,441 changed files
with
1,659,950 additions
and
7 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,9 @@ | ||
#!/usr/bin/env bash | ||
highlight=$(tput setaf 214) | ||
stopcolor=$(tput sgr0) | ||
|
||
for mcutype in `ls ../pac/ | grep '.*b$'` ; do | ||
echo -e "\n--==[ ${highlight}${mcutype}${stopcolor} ] ]==--" | ||
cargo build --features ${mcutype:2} | ||
done | ||
|
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
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,26 @@ | ||
[package] | ||
name = "atsame70j19b" | ||
description = "Peripheral access API for ATSAME70J19B microcontrollers from Atmel/Microchip (generated using svd2rust)" | ||
version = "0.0.2" | ||
authors = ["Michal Fita <[email protected]>"] | ||
categories = ["no-std", "embedded", "hardware-support"] | ||
keywords = ["no-std", "arm", "cortex-m", "atsam", "pac"] | ||
license = "0BSD" | ||
repository = "https://github.com/michalfita/atsams70-rust" | ||
readme = "README.md" | ||
|
||
[dependencies] | ||
bare-metal = "~0.2" | ||
cortex-m = "~0.6" | ||
vcell = "~0.1" | ||
|
||
[dependencies.cortex-m-rt] | ||
optional = true | ||
version = "~0.6" | ||
|
||
[features] | ||
rt = ["cortex-m-rt/device"] | ||
|
||
[lib] | ||
name = "atsame70j19b" | ||
path = "src/lib.rs" |
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,7 @@ | ||
# Peripheral Access Crate atsame70j19b for ATSAME70J19B 32-bit MCU from Atmel/Microchip | ||
|
||
This crate contains autogenerated code to access peripherals of ATSAME70J19B generated from official SVD files from Microchip website using [svd2rust](https://github.com/rust-embedded/svd2rust/) tool. | ||
|
||
## License | ||
|
||
[BSD Zero Clause License](https://choosealicense.com/licenses/0bsd/) |
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,16 @@ | ||
use std::env; | ||
use std::fs::File; | ||
use std::io::Write; | ||
use std::path::PathBuf; | ||
fn main() { | ||
if env::var_os("CARGO_FEATURE_RT").is_some() { | ||
let out = &PathBuf::from(env::var_os("OUT_DIR").unwrap()); | ||
File::create(out.join("device.x")) | ||
.unwrap() | ||
.write_all(include_bytes!("device.x")) | ||
.unwrap(); | ||
println!("cargo:rustc-link-search={}", out.display()); | ||
println!("cargo:rerun-if-changed=device.x"); | ||
} | ||
println!("cargo:rerun-if-changed=build.rs"); | ||
} |
Oops, something went wrong.