stm32f1: doc: Fix gpio cnf parameter
GPIO_CNF_INPUT (non existing) -> GPIO_CNF_INPUT_FLOAT
This commit is contained in:
parent
db7a8d71ca
commit
1b64b1494b
@ -49,7 +49,7 @@ Example 1: Push-pull digital output actions on ports C2 and C9
|
|||||||
Example 1: Digital input on port C12
|
Example 1: Digital input on port C12
|
||||||
|
|
||||||
@code
|
@code
|
||||||
gpio_set_mode(GPIOC, GPIO_MODE_INPUT, GPIO_CNF_INPUT, GPIO12);
|
gpio_set_mode(GPIOC, GPIO_MODE_INPUT, GPIO_CNF_INPUT_FLOAT, GPIO12);
|
||||||
reg16 = gpio_port_read(GPIOC);
|
reg16 = gpio_port_read(GPIOC);
|
||||||
@endcode
|
@endcode
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user