@@ -87,7 +87,7 @@ impl AHB {
87
87
/// ```
88
88
/// let dp = pac::Peripherals::take().unwrap();
89
89
/// let rcc = dp.RCC.constrain();
90
- /// use_ahb (&mut rcc.apb1)
90
+ /// use_apb1 (&mut rcc.apb1)
91
91
/// ```
92
92
pub struct APB1 {
93
93
_0 : ( ) ,
@@ -112,7 +112,7 @@ impl APB1 {
112
112
/// ```
113
113
/// let dp = pac::Peripherals::take().unwrap();
114
114
/// let rcc = dp.RCC.constrain();
115
- /// use_ahb (&mut rcc.apb2)
115
+ /// use_apb2 (&mut rcc.apb2)
116
116
/// ```
117
117
pub struct APB2 {
118
118
_0 : ( ) ,
@@ -212,7 +212,7 @@ impl BDCR {
212
212
/// ```
213
213
/// let dp = pac::Peripherals::take().unwrap();
214
214
/// let rcc = dp.RCC.constrain();
215
- /// use_ahb (&mut rcc.cfgr)
215
+ /// use_cfgr (&mut rcc.cfgr)
216
216
/// ```
217
217
pub struct CFGR {
218
218
hse : Option < u32 > ,
@@ -376,10 +376,11 @@ impl CFGR {
376
376
}
377
377
378
378
// PLL_MUL maximal value is 16
379
- assert ! ( divisor <= 16 ) ;
380
- // PRE_DIV maximal value is 16
381
379
assert ! ( multiplier <= 16 ) ;
382
380
381
+ // PRE_DIV maximal value is 16
382
+ assert ! ( divisor <= 16 ) ;
383
+
383
384
( multiplier, Some ( divisor) )
384
385
}
385
386
// HSI division is always divided by 2 and has no adjustable division
0 commit comments