# 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 = "2018"
name = "samd11_bare"
version = "0.16.1"
authors = ["Jesse Braham <jesse@beta7.io>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Support crate for the ATSAMD11C"
readme = "README.md"
keywords = [
    "no-std",
    "arm",
    "cortex-m",
    "embedded-hal",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/atsamd-rs/atsamd"
resolver = "2"

[package.metadata]
chip = "ATSAMD11C14A"

[features]
async = ["atsamd-hal/async"]
default = [
    "rt",
    "atsamd-hal/samd11c",
]
dma = ["atsamd-hal/dma"]
max-channels = [
    "dma",
    "atsamd-hal/max-channels",
]
rt = [
    "cortex-m-rt",
    "atsamd-hal/samd11c-rt",
]
rtic = [
    "dep:rtic",
    "atsamd-hal/rtic",
]
use_semihosting = []

[lib]
name = "samd11_bare"
path = "src/lib.rs"

[[example]]
name = "adc"
path = "examples/adc.rs"
required-features = [
    "rt",
    "use_semihosting",
]

[[example]]
name = "blinky_basic"
path = "examples/blinky_basic.rs"

[[example]]
name = "blinky_rtic"
path = "examples/blinky_rtic.rs"
required-features = ["rtic"]

[[example]]
name = "i2c"
path = "examples/i2c.rs"
required-features = ["dma"]

[[example]]
name = "pwm"
path = "examples/pwm.rs"

[[example]]
name = "serial"
path = "examples/serial.rs"

[[example]]
name = "timer"
path = "examples/timer.rs"

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

[dependencies.cortex-m]
version = "0.7"
features = ["critical-section-single-core"]

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

[dependencies.rtic]
version = "2.1.1"
features = ["thumbv6-backend"]
optional = true

[dev-dependencies.cortex-m]
version = "0.7"

[dev-dependencies.cortex-m-semihosting]
version = "0.5"

[dev-dependencies.panic-halt]
version = "0.2"

[dev-dependencies.panic-probe]
version = "0.2.0"

[dev-dependencies.panic-semihosting]
version = "0.5"

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