# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "atsame54_xpro"
version = "0.6.0"
authors = [
    "Karsten Große <karsten.grosse@sympatron.de>",
    "John Little <johngigantic@gmail.com>",
]
description = "Board Support crate for the SAM E54 Xplained Pro Evaluation Kit"
readme = "README.md"
keywords = [
    "no-std",
    "arm",
    "cortex-m",
    "embedded-hal",
]
categories = [
    "embedded",
    "hardware-support",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/atsamd-rs/atsamd"

[profile.dev]
lto = true
codegen-units = 1
debug = 2
incremental = false

[profile.release]
opt-level = "s"
lto = true

[[example]]
name = "mcan"
required-features = ["can"]

[dependencies.atsamd-hal]
version = "0.16.0"
default-features = false

[dependencies.cortex-m-rt]
version = "0.7"
optional = true

[dependencies.usb-device]
version = "0.2"
optional = true

[dev-dependencies.cortex-m-rtic]
version = "1.1"

[dev-dependencies.dwt-systick-monotonic]
version = "1.1"

[dev-dependencies.mcan]
version = "0.2"

[dev-dependencies.panic-rtt-target]
version = "0.1"
features = ["cortex-m"]

[dev-dependencies.rtt-target]
version = "0.3"
features = ["cortex-m"]

[features]
can = ["atsamd-hal/can"]
default = [
    "rt",
    "atsamd-hal/same54p",
    "atsamd-hal/unproven",
]
rt = [
    "cortex-m-rt",
    "atsamd-hal/same54p-rt",
]
unproven = ["atsamd-hal/unproven"]
usb = [
    "atsamd-hal/usb",
    "usb-device",
]
