File tree 2 files changed +12
-6
lines changed 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ panic-halt = "0.2.0"
18
18
# alloc-cortex-m = "0.3.5"
19
19
20
20
# Uncomment for the device example.
21
+ # Update `memory.x`, set target to `thumbv7em-none-eabihf` in `.cargo/config`,
22
+ # and then use `cargo build --examples device` to build it.
21
23
# [dependencies.stm32f3]
22
24
# features = ["stm32f303", "rt"]
23
25
# version = "0.7.1"
Original file line number Diff line number Diff line change 5
5
//!
6
6
//! [`svd2rust`]: https://crates.io/crates/svd2rust
7
7
//!
8
- //! This example depends on the [`stm32f103xx`] crate so you'll have to add it to your Cargo.toml.
8
+ //! This example depends on the [`stm32f3`] crate so you'll have to
9
+ //! uncomment it in your Cargo.toml.
9
10
//!
10
- //! [`stm32f103xx `]: https://crates.io/crates/stm32f103xx
11
+ //! [`stm32f3 `]: https://crates.io/crates/stm32f3
11
12
//!
12
13
//! ```
13
14
//! $ edit Cargo.toml && tail $_
14
- //! [dependencies.stm32f103xx ]
15
- //! features = ["rt"]
16
- //! version = "0.10.0 "
15
+ //! [dependencies.stm32f3 ]
16
+ //! features = ["stm32f303", " rt"]
17
+ //! version = "0.7.1 "
17
18
//! ```
18
19
//!
20
+ //! You also need to set the build target to thumbv7em-none-eabihf,
21
+ //! typically by editing `.cargo/config` and uncommenting the relevant target line.
22
+ //!
19
23
//! ---
20
24
21
25
#![ no_main]
@@ -27,7 +31,7 @@ extern crate panic_halt;
27
31
use cortex_m:: peripheral:: syst:: SystClkSource ;
28
32
use cortex_m_rt:: entry;
29
33
use cortex_m_semihosting:: hprint;
30
- use stm32f30x :: { interrupt, Interrupt , NVIC } ;
34
+ use stm32f3 :: stm32f303 :: { interrupt, Interrupt , NVIC } ;
31
35
32
36
#[ entry]
33
37
fn main ( ) -> ! {
You can’t perform that action at this time.
0 commit comments