Cargo Features

atsamd21-hal has no features set by default.

[dependencies]
atsamd21-hal = { version = "0.3.1", features = ["samd21g18a", "samd21g18a-rt", "samd21e18a", "samd21e18a-rt", "unproven", "use_rtt"] }
samd21g18a = atsamd21g18a

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-rt = atsamd21g18a

Enables rt of atsamd21g18a ~0.4

samd21e18a = atsamd21e18a
samd21e18a-rt = atsamd21e18a

Enables rt of atsamd21e18a ~0.4

unproven

Enables unproven of embedded-hal ~0.2

use_rtt = jlink_rtt

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

Enables jlink_rtt ~0.1

atsamd21e18a samd21e18a? samd21e18a-rt?

Enables atsamd21e18a ~0.4

atsamd21g18a samd21g18a? samd21g18a-rt?

Enables atsamd21g18a ~0.4