File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/05-led-roulette/auxiliary Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ name = "aux5"
9
9
version = " 0.2.0"
10
10
11
11
[dependencies ]
12
- cortex-m = " 0.6.4 "
13
- cortex-m-rt = " 0.6.13 "
14
- stm32f3-discovery = " 0.6 .0"
12
+ cortex-m = " 0.7.2 "
13
+ cortex-m-rt = " 0.6.14 "
14
+ stm32f3-discovery = " 0.7 .0"
15
15
panic-itm = " 0.4.2"
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ pub use stm32f3xx_hal::{
14
14
delay:: Delay ,
15
15
gpio:: { gpioe, Output , PushPull } ,
16
16
hal:: blocking:: delay:: DelayMs ,
17
- stm32 ,
17
+ pac ,
18
18
} ;
19
19
20
20
pub type LedArray = [ Switch < gpioe:: PEx < Output < PushPull > > , ActiveHigh > ; 8 ] ;
21
21
22
22
pub fn init ( ) -> ( Delay , LedArray ) {
23
- let device_periphs = stm32 :: Peripherals :: take ( ) . unwrap ( ) ;
23
+ let device_periphs = pac :: Peripherals :: take ( ) . unwrap ( ) ;
24
24
let mut reset_and_clock_control = device_periphs. RCC . constrain ( ) ;
25
25
26
26
let core_periphs = cortex_m:: Peripherals :: take ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments