File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ default-features = false
52
52
optional = true
53
53
54
54
[dev-dependencies ]
55
- cortex-m-rtic = " 0.5.3 "
55
+ cortex-m-rtic = { version = " 0.5.8 " , default-features = false , features = [ " cortex-m-7 " ] }
56
56
log = " 0.4.11"
57
57
panic-halt = " 0.2.0"
58
58
cfg-if = " 0.1.10"
Original file line number Diff line number Diff line change 3
3
//! After the end of init the CPU transitions into CStop mode, and D1/D2
4
4
//! (aka. CD) transition into DStop mode.
5
5
//!
6
- //! However we set the run_d3 flag, and enable Autonomous mode on the LPTIM3
7
- //! PREC struture. Therefore LPTIM3 continues to run and fires an interrupt that
8
- //! wakes the core. Following each interrupt the core returns to CStop mode.
6
+ //! However we set the run_d3/run_srd flag, and enable Autonomous mode on the
7
+ //! LPTIM3 PREC struture. Therefore LPTIM3 continues to run and fires an
8
+ //! interrupt that wakes the core. Following each interrupt the core returns to
9
+ //! CStop mode.
9
10
//!
10
11
//! On the first rising edge on PC13, the EXTI interrupt fires. We do not clear
11
12
//! this interrupt, so we loop in the handler forever.
@@ -47,7 +48,10 @@ const APP: () = {
47
48
let mut syscfg = ctx. device . SYSCFG ;
48
49
49
50
// Run D3 / SRD domain
51
+ #[ cfg( not( feature = "rm0455" ) ) ]
50
52
ctx. device . PWR . cpucr . modify ( |_, w| w. run_d3 ( ) . set_bit ( ) ) ;
53
+ #[ cfg( feature = "rm0455" ) ] // 7b3/7a3/7b0 parts
54
+ ctx. device . PWR . cpucr . modify ( |_, w| w. run_srd ( ) . set_bit ( ) ) ;
51
55
52
56
let pwr = ctx. device . PWR . constrain ( ) ;
53
57
let vos = pwr. freeze ( ) ;
You can’t perform that action at this time.
0 commit comments