Skip to content

Commit

Permalink
Add SAMD20 Xplained Pro eval board
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaizen Wolf committed Dec 27, 2021
1 parent d37e970 commit 9b45cfa
Show file tree
Hide file tree
Showing 9 changed files with 1,606 additions and 0 deletions.
15 changes: 15 additions & 0 deletions boards/samd20_xplained_pro/.cargo/config.toml
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",
]
40 changes: 40 additions & 0 deletions boards/samd20_xplained_pro/Cargo.toml
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"
9 changes: 9 additions & 0 deletions boards/samd20_xplained_pro/README.md
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
Loading

0 comments on commit 9b45cfa

Please sign in to comment.