aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0
diff options
context:
space:
mode:
authori509VCB <[email protected]>2025-10-07 17:55:03 +0000
committerGitHub <[email protected]>2025-10-07 17:55:03 +0000
commit3eaf1d39c229291f16e22564a93d06a5c78f84b6 (patch)
treefc44f4cdf0013f0b59d61955b4751603004fe731 /embassy-mspm0
parent07016a4ffbe0b0ea689b83a6ddf19ab1b6a9a79a (diff)
parent151b1067b09fcc64e291254c0563da04b19d12a7 (diff)
Merge pull request #4735 from charlesbmi/mspm0-open-drain
[mspm0] fix open-drain config
Diffstat (limited to 'embassy-mspm0')
-rw-r--r--embassy-mspm0/CHANGELOG.md1
-rw-r--r--embassy-mspm0/src/gpio.rs7
2 files changed, 7 insertions, 1 deletions
diff --git a/embassy-mspm0/CHANGELOG.md b/embassy-mspm0/CHANGELOG.md
index b846f21b1..aaa09892c 100644
--- a/embassy-mspm0/CHANGELOG.md
+++ b/embassy-mspm0/CHANGELOG.md
@@ -13,3 +13,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
13- feat: Add window watchdog implementation based on WWDT0, WWDT1 peripherals (#4574) 13- feat: Add window watchdog implementation based on WWDT0, WWDT1 peripherals (#4574)
14- feat: Add MSPM0C1105/C1106 support 14- feat: Add MSPM0C1105/C1106 support
15- feat: Add adc implementation (#4646) 15- feat: Add adc implementation (#4646)
16- fix: gpio OutputOpenDrain config (#4735) \ No newline at end of file
diff --git a/embassy-mspm0/src/gpio.rs b/embassy-mspm0/src/gpio.rs
index a4d41aa71..13da4f30b 100644
--- a/embassy-mspm0/src/gpio.rs
+++ b/embassy-mspm0/src/gpio.rs
@@ -156,7 +156,12 @@ impl<'d> Flex<'d> {
156 w.set_pf(GPIO_PF); 156 w.set_pf(GPIO_PF);
157 w.set_hiz1(true); 157 w.set_hiz1(true);
158 w.set_pc(true); 158 w.set_pc(true);
159 w.set_inena(false); 159 w.set_inena(true);
160 });
161
162 // Enable output driver (DOE) - required for open-drain to drive low
163 self.pin.block().doeset31_0().write(|w| {
164 w.set_dio(self.pin.bit_index(), true);
160 }); 165 });
161 166
162 self.set_pull(Pull::None); 167 self.set_pull(Pull::None);