Skip to content

Commit

Permalink
fix: adding default features
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbrendel committed Dec 25, 2023
1 parent abbca7a commit 2e93a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ optional = true
version = "0.7.3"

[features]
default = ["critical-section", "rt"]
rt = ["cortex-m-rt/device"]

[package.metadata.docs.rs]
features = ['rt']
features = ['default']
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

This is a 'peripheral access crate' for interfacing to the XMC4200 series of microcontrollers for embedded support in Rust that is generated using [svd2rust](https://docs.rs/svd2rust) and an SVD file provided by Infineon.

There is an optional `rt` that can be utilized. An explanation of the feature is given by [svd2rust](https://docs.rs/svd2rust/0.16.1/svd2rust/#the-rt-feature)
The features of `rt` and `critical-section` have been enabled by default.

All API's and usage (besides what registers exist) are defined by [svd2rust](https://docs.rs/svd2rust)

Expand All @@ -21,11 +21,3 @@ rustup component add rustfmt

svd.sh # Generates code from crate and formats to rustfmt
```

## Using Crate

```toml
[dependencies.xmc4200]
version = "0.2.1"
features = ["rt"]
```

0 comments on commit 2e93a2b

Please sign in to comment.