aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0
diff options
context:
space:
mode:
authorcrispaudio <[email protected]>2025-10-10 07:04:41 +0200
committercrispaudio <[email protected]>2025-10-10 07:04:41 +0200
commitfd35ddf305fcace9faa7266529d959dc8c425a90 (patch)
tree983404f2bed54c9793235351fe71ad7615325b4f /embassy-mspm0
parent4217a264dba3a77da38897537f90e1fdfe5b9ddb (diff)
mspm0-i2c-target: make calculate_clock_source pub(crate) for mspm0c
Diffstat (limited to 'embassy-mspm0')
-rw-r--r--embassy-mspm0/src/i2c.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-mspm0/src/i2c.rs b/embassy-mspm0/src/i2c.rs
index fb871f85d..3067f4833 100644
--- a/embassy-mspm0/src/i2c.rs
+++ b/embassy-mspm0/src/i2c.rs
@@ -201,7 +201,7 @@ impl Config {
201 } 201 }
202 202
203 #[cfg(any(mspm0c110x, mspm0c1105_c1106))] 203 #[cfg(any(mspm0c110x, mspm0c1105_c1106))]
204 fn calculate_clock_source(&self) -> u32 { 204 pub(crate) fn calculate_clock_source(&self) -> u32 {
205 // Assume that BusClk has default value. 205 // Assume that BusClk has default value.
206 // TODO: calculate BusClk more precisely. 206 // TODO: calculate BusClk more precisely.
207 match self.clock_source { 207 match self.clock_source {