Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shared feature for just the common bits #44

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ atmega32u4 = []
atmega64 = []
attiny85 = []
attiny88 = []
shared = []
rt = ["avr-device-macros"]

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!");