|
81 | 81 | //!
|
82 | 82 | //! MSP430 does not natively use the SVD format. However, SVD files can be generated using the
|
83 | 83 | //! [`msp430_svd` application](https://github.com/pftbest/msp430_svd). Most header and DSLite
|
84 |
| -//! files provided by TI are mirrored in the repository of `msp430_svd`. |
| 84 | +//! files provided by TI are mirrored in the repository of `msp430_svd`. The application does |
| 85 | +//! not need to be installed; the `msp430gen` command below can be substituted by |
| 86 | +//! `cargo run -- msp430g2553 > msp430g2553.svd` from the `msp430_svd` crate root. |
85 | 87 | //!
|
86 | 88 | //! When targeting the MSP430 architecture `svd2rust` will _also_ generate three files in the
|
87 | 89 | //! current directory:
|
|
98 | 100 | //! [`form`]: https://crates.io/crates/form
|
99 | 101 | //!
|
100 | 102 | //! ``` text
|
101 |
| -//! $ msp430gen msp430g2553 > out.svd |
| 103 | +//! $ msp430gen msp430g2553 > msp430g2553.svd |
102 | 104 | //!
|
103 |
| -//! $ xmllint -format out.svd > msp430g2553.svd |
| 105 | +//! $ xmllint -format msp430g2553.svd --output msp430g2553.svd |
104 | 106 | //!
|
105 | 107 | //! $ svd2rust -g --target=msp430 -i msp430g2553.svd
|
106 | 108 | //!
|
|
116 | 118 | //! The resulting crate must provide opt-in `rt` feature and depend on these crates:
|
117 | 119 | //!
|
118 | 120 | //! - [`critical-section`](https://crates.io/crates/critical-section) v1.x
|
119 |
| -//! - [`msp430`](https://crates.io/crates/msp430) v0.3.x |
120 |
| -//! - [`msp430-rt`](https://crates.io/crates/msp430-rt) v0.3.x |
| 121 | +//! - [`msp430`](https://crates.io/crates/msp430) v0.4.x |
| 122 | +//! - [`msp430-rt`](https://crates.io/crates/msp430-rt) v0.4.x |
121 | 123 | //! - [`vcell`](https://crates.io/crates/vcell) v0.1.x
|
122 | 124 | //!
|
123 | 125 | //! If the `--nightly` flag is provided to `svd2rust`, then `msp430-atomic` v0.1.4 is also needed.
|
|
127 | 129 | //! ``` toml
|
128 | 130 | //! [dependencies]
|
129 | 131 | //! critical-section = { version = "1.0", optional = true }
|
130 |
| -//! msp430 = "0.3.0" |
| 132 | +//! msp430 = "0.4.0" |
131 | 133 | //! msp430-atomic = "0.1.4" # Only when using the --nightly flag
|
132 |
| -//! msp430-rt = { version = "0.3.0", optional = true } |
| 134 | +//! msp430-rt = { version = "0.4.0", optional = true } |
133 | 135 | //! vcell = "0.1.0"
|
134 | 136 | //!
|
135 | 137 | //! [features]
|
|
0 commit comments