File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
8
## [ Unreleased]
9
9
10
+ ### Breaking changes
11
+
12
+ - Bump ` stm32f1 ` dependency (` 0.10.0 ` )
13
+ - Make traits ` rcc::Enable ` and ` rcc::Reset ` public, but ` RccBus ` sealed
14
+
15
+ ### Added
16
+
10
17
- Extend the Pwm implementation to cover the full embedded_hal::Pwm API
18
+ - Add ` QeiOptions ` struct to configure slave mode and auto reload value of QEI interface
19
+
20
+ ### Changed
21
+
11
22
- Replace default blocking spi Write implementation with an optimized one
12
23
- Use ` Deref ` for SPI generic implementations instead of macros
13
- - Make traits ` rcc::Enable ` and ` rcc::Reset ` public, but ` RccBus ` sealed
14
- - Add ` QeiOptions ` struct to configure slave mode and auto reload value of QEI interface
24
+
25
+ ### Fixed
26
+
15
27
- Fix PWM on ` TIM1 `
16
28
17
29
## [ v0.5.3] - 2020-01-20
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ required-features = ["rt"]
26
26
cortex-m = " 0.6.0"
27
27
nb = " 0.1.2"
28
28
cortex-m-rt = " 0.6.8"
29
- stm32f1 = " 0.9 .0"
29
+ stm32f1 = " 0.10 .0"
30
30
as-slice = " 0.1"
31
31
32
32
[dependencies .void ]
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ use stm32f1xx_hal::{
15
15
use cortex_m_rt:: entry;
16
16
use pac:: interrupt;
17
17
use core:: mem:: MaybeUninit ;
18
- use embedded_hal:: digital:: v2:: OutputPin ;
19
18
use stm32f1xx_hal:: gpio:: * ;
20
19
21
20
// These two are owned by the ISR. main() may only access them during the initialization phase,
@@ -31,7 +30,7 @@ fn EXTI9_5() {
31
30
let int_pin = unsafe { & mut * INT_PIN . as_mut_ptr ( ) } ;
32
31
33
32
if int_pin. check_interrupt ( ) {
34
- led. toggle ( ) ;
33
+ led. toggle ( ) . unwrap ( ) ;
35
34
36
35
// if we don't clear this bit, the ISR would trigger indefinitely
37
36
int_pin. clear_interrupt_pending_bit ( ) ;
@@ -42,7 +41,7 @@ fn EXTI9_5() {
42
41
fn main ( ) -> ! {
43
42
// initialization phase
44
43
let p = pac:: Peripherals :: take ( ) . unwrap ( ) ;
45
- let cp = cortex_m:: peripheral:: Peripherals :: take ( ) . unwrap ( ) ;
44
+ let _cp = cortex_m:: peripheral:: Peripherals :: take ( ) . unwrap ( ) ;
46
45
{
47
46
// the scope ensures that the int_pin reference is dropped before the first ISR can be executed.
48
47
@@ -61,8 +60,7 @@ fn main() -> ! {
61
60
int_pin. enable_interrupt ( & p. EXTI ) ;
62
61
} // initialization ends here
63
62
64
- let mut nvic = cp. NVIC ;
65
- nvic. enable ( pac:: Interrupt :: EXTI9_5 ) ;
63
+ unsafe { pac:: NVIC :: unmask ( pac:: Interrupt :: EXTI9_5 ) ; }
66
64
67
65
loop { }
68
66
}
You can’t perform that action at this time.
0 commit comments