aboutsummaryrefslogtreecommitdiff
path: root/embassy-mcxa/src/clocks
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2025-12-09 16:01:50 +0100
committerJames Munns <[email protected]>2025-12-09 16:01:50 +0100
commite267cb52d774e8f9db87a9b0cfe63cfa51d4fe8b (patch)
treedf388d63575aa821af648cd86bcbf2ce297bc29f /embassy-mcxa/src/clocks
parentaf768af11cf10e0376b34c0e5abfc4f0a56398fc (diff)
rustfmt
Diffstat (limited to 'embassy-mcxa/src/clocks')
-rw-r--r--embassy-mcxa/src/clocks/periph_helpers.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/embassy-mcxa/src/clocks/periph_helpers.rs b/embassy-mcxa/src/clocks/periph_helpers.rs
index 1ea7a99ed..fed5e558e 100644
--- a/embassy-mcxa/src/clocks/periph_helpers.rs
+++ b/embassy-mcxa/src/clocks/periph_helpers.rs
@@ -108,11 +108,7 @@ 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 { 111 if n > 0b1111 { None } else { Some(Self(n)) }
112 None
113 } else {
114 Some(Self(n))
115 }
116 } 112 }
117 113
118 /// Store a specific divisor value that will divide the source 114 /// Store a specific divisor value that will divide the source