Skip to content

Commit c8f7435

Browse files
authored
Fix typos in GPIO docs
1 parent 4e902d2 commit c8f7435

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gpio.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
//! - **Alternate**: Pin mode required when the pin is driven by other peripherals
2626
//! - **Dynamic**: Pin mode is selected at runtime. See changing configurations for more details
2727
//! - Input
28-
//! - **PullUp**: Input connected to high with a weak pull up resistor. Will be high when nothing
28+
//! - **PullUp**: Input connected to high with a weak pull-up resistor. Will be high when nothing
2929
//! is connected
30-
//! - **PullDown**: Input connected to high with a weak pull up resistor. Will be low when nothing
30+
//! - **PullDown**: Input connected to ground with a weak pull-down resistor. Will be low when nothing
3131
//! is connected
3232
//! - **Floating**: Input not pulled to high or low. Will be undefined when nothing is connected
3333
//! - Output
3434
//! - **PushPull**: Output which either drives the pin high or low
35-
//! - **OpenDrain**: Output which leaves the gate floating, or pulls it do ground in drain
35+
//! - **OpenDrain**: Output which leaves the gate floating, or pulls it to ground in drain
3636
//! mode. Can be used as an input in the `open` configuration
3737
//! - **Debugger**: Some pins start out being used by the debugger. A pin in this mode can only be
3838
//! used if the [JTAG peripheral has been turned off](#accessing-pa15-pb3-and-pb14).

0 commit comments

Comments
 (0)