diff options
| author | Charles Guan <[email protected]> | 2025-10-02 16:08:49 -0700 |
|---|---|---|
| committer | Charles Guan <[email protected]> | 2025-10-07 10:43:42 -0700 |
| commit | 151b1067b09fcc64e291254c0563da04b19d12a7 (patch) | |
| tree | 8afd112903355c308619a2326014b59e9f304bb4 /embassy-mspm0/src | |
| parent | e4e06ab5b136a21c98d42491ef1e31b6dc25e08e (diff) | |
Enable input-buffer and enable output drive for I/O pin
Diffstat (limited to 'embassy-mspm0/src')
| -rw-r--r-- | embassy-mspm0/src/gpio.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/embassy-mspm0/src/gpio.rs b/embassy-mspm0/src/gpio.rs index d5fd36dbf..f9a8d6b75 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); |
