File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 122
122
//! - [`msp430-rt`](https://crates.io/crates/msp430-rt) v0.4.x
123
123
//! - [`vcell`](https://crates.io/crates/vcell) v0.1.x
124
124
//!
125
- //! If the `--nightly` flag is provided to `svd2rust`, then `portable-atomic` v0.3.15 is also needed.
126
- //! Furthermore the "device" feature of `msp430-rt` must be enabled when the `rt` feature is
125
+ //! The "device" feature of `msp430-rt` must be enabled when the `rt` feature is
127
126
//! enabled. The `Cargo.toml` of the device crate will look like this:
128
127
//!
129
128
//! ``` toml
130
129
//! [dependencies]
131
130
//! critical-section = { version = "1.0", optional = true }
132
131
//! msp430 = "0.4.0"
133
- //! portable-atomic = "0.3.15" # Only when using the --nightly flag
134
132
//! msp430-rt = { version = "0.4.0", optional = true }
135
133
//! vcell = "0.1.0"
136
134
//!
137
135
//! [features]
138
136
//! rt = ["msp430-rt/device"]
139
- //! unstable = ["portable-atomic"]
140
137
//! ```
141
138
//!
142
139
//! ## Other targets
492
489
//! The `--nightly` flag can be passed to `svd2rust` to enable features in the generated api that are only available to a nightly
493
490
//! compiler. The following features are gated by the `--nightly` flag:
494
491
//!
495
- //! ### MSP430
492
+ //! ### Atomics
496
493
//!
497
494
//! Extends the register API with operations to atomically set, clear, and toggle specific bits.
498
495
//! The atomic operations allow limited modification of register bits without read-modify-write
499
496
//! sequences. As such, they can be concurrently called on different bits in the same register
500
497
//! without data races.
501
498
//!
499
+ //! `portable-atomic` v0.3.15 must be added to the dependencies, with default features off if
500
+ //! possible to disable the `fallback` feature.
501
+ //!
502
502
//! Usage examples:
503
503
//!
504
504
//! ```ignore
You can’t perform that action at this time.
0 commit comments