-
Notifications
You must be signed in to change notification settings - Fork 205
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
Kaizen Wolf
committed
Dec 27, 2021
1 parent
d37e970
commit 9b45cfa
Showing
9 changed files
with
1,606 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[build] | ||
target = "thumbv6m-none-eabi" | ||
|
||
[target.thumbv6m-none-eabi] | ||
runner = 'arm-none-eabi-gdb -q -x openocd.gdb' | ||
#runner = 'probe-run --chip ATSAMD21G18A' | ||
|
||
rustflags = [ | ||
|
||
# This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x | ||
# See https://github.com/rust-embedded/cortex-m-quickstart/pull/95 | ||
"-C", "link-arg=--nmagic", | ||
|
||
"-C", "link-arg=-Tlink.x", | ||
] |
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,40 @@ | ||
[package] | ||
name = "samd20_xplained_pro" | ||
version = "0.1.0" | ||
authors = ["Kaizen Sparc <[email protected]>"] | ||
description = "Board Support crate for the Microchip SAMD20 Xplained Pro eval board" | ||
keywords = ["no-std", "arm", "cortex-m", "embedded-hal"] | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/atsamd-rs/atsamd" | ||
readme = "README.md" | ||
edition = "2018" | ||
|
||
[dependencies.cortex-m-rt] | ||
version = "0.7" | ||
optional = true | ||
|
||
[dependencies.atsamd-hal] | ||
path = "../../hal" | ||
version = "0.14" | ||
default-features = false | ||
|
||
[dev-dependencies] | ||
cortex-m = "0.7" | ||
panic-halt = "0.2" | ||
panic-semihosting = "0.5" | ||
cortex-m-semihosting = "0.3" | ||
cortex-m-rtic = "0.5.1" | ||
|
||
[features] | ||
# ask the HAL to enable atsamd20j support | ||
default = ["rt", "atsamd-hal/samd20j", "atsamd-hal/samd20"] | ||
rt = ["cortex-m-rt", "atsamd-hal/samd20j-rt"] | ||
unproven = ["atsamd-hal/unproven"] | ||
use_semihosting = [] | ||
|
||
# for cargo flash | ||
[package.metadata] | ||
chip = "ATSAMD20J18" | ||
|
||
[[example]] | ||
name = "blinky_basic" |
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 @@ | ||
# Microchip SAMD20 Xplained Pro | ||
|
||
This crate provides a type-safe API for working with the [Microchip SAMD20 Xplained Pro](https://www.microchip.com/en-us/development-tool/ATSAMD20-XPRO). | ||
|
||
## Examples? | ||
|
||
Check out the repository for examples: | ||
|
||
https://github.com/atsamd-rs/atsamd/tree/master/boards/samd20_xplained_pro/examples |
Oops, something went wrong.