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/).
12
12
### Added
13
13
14
14
- 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 ] )
15
17
16
18
### Breaking changes
17
19
@@ -296,6 +298,7 @@ let clocks = rcc
296
298
297
299
- Support ` stm32f303 ` device
298
300
301
+ [ #210 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/210
299
302
[ #208 ] : https://github.com/stm32-rs/stm32f3xx-hal/pull/208
300
303
[ #203 ] : https://github.com/stm32-rs/stm32f3xx-hal/issues/203
301
304
[ #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 {
800
800
self . pclk2
801
801
}
802
802
803
- pub ( crate ) fn ppre1 ( & self ) -> u8 {
803
+ /// Returns the prescaler of the APB1
804
+ pub fn ppre1 ( & self ) -> u8 {
804
805
self . ppre1
805
806
}
806
807
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 {
810
810
self . ppre2
811
811
}
812
812
You can’t perform that action at this time.
0 commit comments