atsamd-hal 0.6.0

HAL and Peripheral access API for ATSAMD21 and ATSAMD51 microcontrollers
[package]
name = "atsamd-hal"
version = "0.6.0"
authors = ["Wez Furlong <wez@wezfurlong.org>", "Paul Sajna <sajattack@gmail.com>"]
description = "HAL and Peripheral access API for ATSAMD21 and ATSAMD51 microcontrollers"
keywords = ["no-std", "arm", "cortex-m", "embedded-hal"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
documentation = "https://atsamd-rs.github.io/atsamd/atsamd21g18a/atsamd21_hal/"
edition = "2018"

[dependencies]
cortex-m = "~0.6"
embedded-hal = "~0.2.3"
nb = "~0.1"
paste = "~0.1"
bitfield = "~0.13"
vcell = "~0.1"

[dependencies.jlink_rtt]
optional = true
version = "~0.1"

[dependencies.void]
default-features = false
version = "~1.0"

# Each of the supported chips is listed as an optional dependency here.
# This makes it available when the corresponding feature name is referenced.
# We use a feature named "samdFOO" to pull in the dependency named "atsamdFOO"
[dependencies.atsamd21g18a]
path = "../pac/atsamd21g18a"
version = "~0.5"
optional = true

[dependencies.atsamd21e18a]
path = "../pac/atsamd21e18a"
version = "~0.5"
optional = true

[dependencies.atsamd21j18a]
path = "../pac/atsamd21j18a"
version = "~0.5"
optional = true

[dependencies.atsamd51g19a]
path = "../pac/atsamd51g19a"
version = "~0.5"
optional = true

[dependencies.atsamd51j19a]
path = "../pac/atsamd51j19a"
version = "~0.5"
optional = true

[dependencies.atsamd51j20a]
path = "../pac/atsamd51j20a"
version = "~0.5"
optional = true


#[dependencies.usb-device]
#git = "https://github.com/wez/usb-device"
#branch = "unsafe_atomics"
#version = "~0.1"
#optional = true

[dev-dependencies]
panic_rtt = "~0.1"
panic-abort = "~0.3"
panic-semihosting = "~0.5"
cortex-m-semihosting = "~0.2"
cortex-m-rtfm = "~0.3"

[features]
# This section lists our feature name to dependency mapping.  This are separated
# out so that the board support crates can reference a single feature name to
# select the appropriate chip, and to keep that separate from the dependency name
# for the `rt` feature below, which has to list out all possible optional deps.
# If we simply used feature names that matched the dependency names, enabling the
# rt feature would link all possible parts in and cause a linker error due to
# the high degree of similar symbols present in the various parts.
samd21g18a = ["atsamd21g18a"]
samd21g18a-rt = ["atsamd21g18a", "atsamd21g18a/rt"]
samd21e18a = ["atsamd21e18a"]
samd21e18a-rt = ["atsamd21e18a", "atsamd21e18a/rt"]
samd21j18a = ["atsamd21j18a"]
samd21j18a-rt = ["atsamd21j18a", "atsamd21j18a/rt"]
samd51 = [] # Convenience feature for shared configuration of samd51 chips.
samd51g19a = ["atsamd51g19a"]
samd51g19a-rt = ["atsamd51g19a", "atsamd51g19a/rt"]
samd51j19a = ["atsamd51j19a"]
samd51j19a-rt = ["atsamd51j19a", "atsamd51j19a/rt"]
samd51j20a = ["atsamd51j20a"]
samd51j20a-rt = ["atsamd51j20a", "atsamd51j20a/rt"]
unproven = ["embedded-hal/unproven"]
use_rtt = ["jlink_rtt"]
#usb = ["usb-device"]