diff options
| author | James Munns <[email protected]> | 2025-12-09 15:52:12 +0100 |
|---|---|---|
| committer | James Munns <[email protected]> | 2025-12-09 15:52:12 +0100 |
| commit | e962f5568a9f6433dcd6ad3e41d3faabb8b7c552 (patch) | |
| tree | 0bcf67cbd0d53039580042b856e1b9dd58a528aa /embassy-mcxa/src/clocks/periph_helpers.rs | |
| parent | 4386b39e2516c453966d894b4fd265fae9d82c1a (diff) | |
Clean up remaining examples, move some to "raw" examples
Diffstat (limited to 'embassy-mcxa/src/clocks/periph_helpers.rs')
| -rw-r--r-- | embassy-mcxa/src/clocks/periph_helpers.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/embassy-mcxa/src/clocks/periph_helpers.rs b/embassy-mcxa/src/clocks/periph_helpers.rs index fed5e558e..1ea7a99ed 100644 --- a/embassy-mcxa/src/clocks/periph_helpers.rs +++ b/embassy-mcxa/src/clocks/periph_helpers.rs | |||
| @@ -108,7 +108,11 @@ impl Div4 { | |||
| 108 | /// by 1, and `Div4::from_raw(15)` will divide the source by | 108 | /// by 1, and `Div4::from_raw(15)` will divide the source by |
| 109 | /// 16. | 109 | /// 16. |
| 110 | pub const fn from_raw(n: u8) -> Option<Self> { | 110 | pub const fn from_raw(n: u8) -> Option<Self> { |
| 111 | if n > 0b1111 { None } else { Some(Self(n)) } | 111 | if n > 0b1111 { |
| 112 | None | ||
| 113 | } else { | ||
| 114 | Some(Self(n)) | ||
| 115 | } | ||
| 112 | } | 116 | } |
| 113 | 117 | ||
| 114 | /// Store a specific divisor value that will divide the source | 118 | /// Store a specific divisor value that will divide the source |
