HAL
HAL layer above libopencm3 library.
|
Pin pullup manipulation. More...
Functions | |
static void | pin_pull_disable (const uint32_t pin) |
Disable pullups or pulldowns on specified pin. More... | |
static void | pin_pull_down (const uint32_t pin) |
Set PullDown on the pin. More... | |
static void | pin_pull_up (const uint32_t pin) |
Set PullUp on the pin. More... | |
Pin pullup manipulation.
|
static |
Disable pullups or pulldowns on specified pin.
[in] | pin | pin name (pin_name_base) |
Definition at line 94 of file pin_v0.h.
References _pin_pinno(), _pin_port(), and _pin_setmode().
|
static |
Set PullDown on the pin.
After call, unconnected input pin should read 0 (false/low level)
[in] | pin | pin name (pin_name_base) |
Definition at line 99 of file pin_v0.h.
References _pin_pinno(), _pin_port(), _pin_setmode(), and pin_set().
|
static |
Set PullUp on the pin.
After call, unconnected input pin should read 1 (true/high level)
[in] | pin | pin name (pin_name_base) |
Definition at line 105 of file pin_v0.h.
References _pin_pinno(), _pin_port(), _pin_setmode(), and pin_set().