File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1212### Added
1313
1414- Replace custom time based units with types defined in the [ embedded-time] [ ] crate ([ #192 ] )
15+ - Make ` Clocks ` ` ppre1() ` and ` ppre2() ` methods public, to get the current
16+ Prescaler value. ([ #210 ] )
1517
1618### Breaking changes
1719
@@ -296,6 +298,7 @@ let clocks = rcc
296298
297299- Support ` stm32f303 ` device
298300
301+ [ #210 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/210
299302[ #208 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/208
300303[ #203 ] : https://github.com/stm32-rs/stm32f3xx-hal/issues/203
301304[ #192 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/192
Original file line number Diff line number Diff line change @@ -800,13 +800,13 @@ impl Clocks {
800800 self . pclk2
801801 }
802802
803- pub ( crate ) fn ppre1 ( & self ) -> u8 {
803+ /// Returns the prescaler of the APB1
804+ pub fn ppre1 ( & self ) -> u8 {
804805 self . ppre1
805806 }
806807
807- // TODO remove `allow`
808- #[ allow( dead_code) ]
809- pub ( crate ) fn ppre2 ( & self ) -> u8 {
808+ /// Returns the prescaler of the APB2
809+ pub fn ppre2 ( & self ) -> u8 {
810810 self . ppre2
811811 }
812812
You can’t perform that action at this time.
0 commit comments