diff options
| author | Tyler <[email protected]> | 2024-01-03 11:04:48 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-03 11:04:48 -0600 |
| commit | 727906fa04f52b27aa8dd3f1fea51b15fe1e7391 (patch) | |
| tree | 74928d4055264a08b5591d5f7849c4b9518fe5cc | |
| parent | 31bf1278072bdb865aa7d8d361152fe47957ce08 (diff) | |
Update u5.rs
Update comments on p and q divider values to correctly describe what the clock outputs are used for.
| -rw-r--r-- | embassy-stm32/src/rcc/u5.rs | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/embassy-stm32/src/rcc/u5.rs b/embassy-stm32/src/rcc/u5.rs index 0321d51f7..ceed46176 100644 --- a/embassy-stm32/src/rcc/u5.rs +++ b/embassy-stm32/src/rcc/u5.rs | |||
| @@ -45,17 +45,15 @@ pub struct PllConfig { | |||
| 45 | /// The multiplied clock – `source` divided by `m` times `n` – must be between 128 and 544 | 45 | /// The multiplied clock – `source` divided by `m` times `n` – must be between 128 and 544 |
| 46 | /// MHz. The upper limit may be lower depending on the `Config { voltage_range }`. | 46 | /// MHz. The upper limit may be lower depending on the `Config { voltage_range }`. |
| 47 | pub n: Plln, | 47 | pub n: Plln, |
| 48 | /// The divider for the P output. | 48 | /// The divider for the P output. |
| 49 | /// | 49 | /// |
| 50 | /// When used to drive the system clock, `source` divided by `m` times `n` divided by `r` | 50 | /// The P output is one of several options |
| 51 | /// must not exceed 160 MHz. System clocks above 55 MHz require a non-default | 51 | /// that can be used to feed the SAI/MDF/ADF Clock mux's. |
| 52 | /// `Config { voltage_range }`. | ||
| 53 | pub p: Plldiv, | 52 | pub p: Plldiv, |
| 54 | /// The divider for the Q output. | 53 | /// The divider for the Q output. |
| 55 | /// | 54 | /// |
| 56 | /// When used to drive the system clock, `source` divided by `m` times `n` divided by `r` | 55 | /// The Q ouput is one of severals options that can be used to feed the 48MHz clocks |
| 57 | /// must not exceed 160 MHz. System clocks above 55 MHz require a non-default | 56 | /// and the OCTOSPI clock. It may also be used on the MDF/ADF clock mux's. |
| 58 | /// `Config { voltage_range }`. | ||
| 59 | pub q: Plldiv, | 57 | pub q: Plldiv, |
| 60 | /// The divider for the R output. | 58 | /// The divider for the R output. |
| 61 | /// | 59 | /// |
