Skip to content

Commit 49aefa1

Browse files
bors[bot]jorpic
andauthored
Merge #465
465: Fix typos in GPIO docs r=burrbull a=jorpic [GPIO doc](https://docs.rs/stm32f1xx-hal/latest/stm32f1xx_hal/gpio/index.html) incorrectly states that in `PullDown` mode the input is connected to **high**. Co-authored-by: Max Taldykin <[email protected]>
2 parents 3f274fe + c8f7435 commit 49aefa1

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)