aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-08-08 09:52:23 -0400
committerBrian Cully <bjc@kublai.com>2019-08-08 09:52:23 -0400
commit80372dedcd7e5f319a1fb9ce28c9188803b46370 (patch)
treefab8fa981464b40d8c3daacd9b8e2c088fc94d2d
parente5160f54de029e4a51adf2e4b6a67e2e24757d88 (diff)
downloadatsamd-usb-host-80372dedcd7e5f319a1fb9ce28c9188803b46370.tar.gz
atsamd-usb-host-80372dedcd7e5f319a1fb9ce28c9188803b46370.zip
Re-export atsamd-hal MCU selection features.
This is necessary because atsamd-hal, which this crate uses, needs an MCU feature selected in order to map peripherals properly.
-rw-r--r--Cargo.toml12
1 files changed, 11 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 9e1bdcb..0ecc199 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ usb-host = "~0.1"
starb = "~0.1"
log = "~0.4"
embedded-hal = "~0.2"
-atsamd-hal = "~0.6"
+atsamd-hal = "~0.5"
[dev-dependencies]
bootkbd = "~0.1"
@@ -28,3 +28,13 @@ trinket_m0 = "~0.4"
[patch.crates-io]
atsamd-hal = { git = "https://github.com/atsamd-rs/atsamd", rev = "97d55c19" }
trinket_m0 = { git = "https://github.com/atsamd-rs/atsamd", rev = "97d55c19" }
+
+# Need to re-export features from atsamd-hal. If there were a
+# compelling reason to merge this into there, this is it.
+[features]
+samd21g18a = ["atsamd-hal/samd21g18a"]
+samd21e18a = ["atsamd-hal/samd21e18a"]
+samd51 = [] # Convenience feature for shared configuration of samd51 chips.
+samd51g19a = ["atsamd-hal/samd51g19a"]
+samd51j19a = ["atsamd-hal/samd51j19a"]
+samd51j20a = ["atsamd-hal/samd51j20a"]