From e934e2af0b3e034661866ae6b0e4dd1939d8fbfe Mon Sep 17 00:00:00 2001 From: Andrew Dona-Couch Date: Fri, 14 Aug 2020 13:20:28 -0400 Subject: [PATCH] Add shared feature for just the common bits --- Cargo.toml | 1 + README.md | 1 + src/lib.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a73524f..e64223c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ atmega32u4 = [] atmega64 = [] attiny85 = [] attiny88 = [] +shared = [] rt = ["avr-device-macros"] [dependencies] diff --git a/README.md b/README.md index 8b810d2..982ca24 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Via the feature you can select which chip you want the register specifications f * `atmega64` * `attiny85` * `attiny88` +* `shared` to only include generic shared code (rarely useful) ## Build Instructions The version on `crates.io` is pre-built. The following is only necessary when trying to build this crate from source. diff --git a/src/lib.rs b/src/lib.rs index 7eecb24..354f33d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -98,5 +98,6 @@ pub use crate::devices::attiny88; feature = "atmega64", feature = "attiny85", feature = "attiny88", + feature = "shared", )))] compile_error!("You need to select at least one chip as a feature!");