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/).
77
88## [ Unreleased]
99
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+
1017- 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+
1122- Replace default blocking spi Write implementation with an optimized one
1223- 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+
1527- Fix PWM on ` TIM1 `
1628
1729## [ v0.5.3] - 2020-01-20
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ required-features = ["rt"]
2626cortex-m = " 0.6.0"
2727nb = " 0.1.2"
2828cortex-m-rt = " 0.6.8"
29- stm32f1 = " 0.9 .0"
29+ stm32f1 = " 0.10 .0"
3030as-slice = " 0.1"
3131
3232[dependencies .void ]
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ use stm32f1xx_hal::{
1515use cortex_m_rt:: entry;
1616use pac:: interrupt;
1717use core:: mem:: MaybeUninit ;
18- use embedded_hal:: digital:: v2:: OutputPin ;
1918use stm32f1xx_hal:: gpio:: * ;
2019
2120// These two are owned by the ISR. main() may only access them during the initialization phase,
@@ -31,7 +30,7 @@ fn EXTI9_5() {
3130 let int_pin = unsafe { & mut * INT_PIN . as_mut_ptr ( ) } ;
3231
3332 if int_pin. check_interrupt ( ) {
34- led. toggle ( ) ;
33+ led. toggle ( ) . unwrap ( ) ;
3534
3635 // if we don't clear this bit, the ISR would trigger indefinitely
3736 int_pin. clear_interrupt_pending_bit ( ) ;
@@ -42,7 +41,7 @@ fn EXTI9_5() {
4241fn main ( ) -> ! {
4342 // initialization phase
4443 let p = pac:: Peripherals :: take ( ) . unwrap ( ) ;
45- let cp = cortex_m:: peripheral:: Peripherals :: take ( ) . unwrap ( ) ;
44+ let _cp = cortex_m:: peripheral:: Peripherals :: take ( ) . unwrap ( ) ;
4645 {
4746 // the scope ensures that the int_pin reference is dropped before the first ISR can be executed.
4847
@@ -61,8 +60,7 @@ fn main() -> ! {
6160 int_pin. enable_interrupt ( & p. EXTI ) ;
6261 } // initialization ends here
6362
64- let mut nvic = cp. NVIC ;
65- nvic. enable ( pac:: Interrupt :: EXTI9_5 ) ;
63+ unsafe { pac:: NVIC :: unmask ( pac:: Interrupt :: EXTI9_5 ) ; }
6664
6765 loop { }
6866}
You can’t perform that action at this time.
0 commit comments