HAL
HAL layer above libopencm3 library.
|
#include <hal/common.h>
Go to the source code of this file.
Functions | |
static void | pin_clock_enable (const uint32_t pin) |
Enable peripheral clock for port occupying specified pin. More... | |
static bool | pin_get (const uint32_t pin) |
Get the actual pin state. More... | |
static void | pin_set (const uint32_t pin, bool val) |
Set the pin state. More... | |
static void | pin_toggle (const uint32_t pin) |
Toggle the pin level state. More... | |
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... | |
static void | pin_output_pushpull (const uint32_t pin) |
Set pin to GPIO Output mode, source and sink. More... | |
static void | pin_output_opendrain (const uint32_t pin) |
Set pin to GPIO Output mode, sink only. More... | |
static void | pin_af_pushpull (const uint32_t pin) |
Set pin to AuxFn Output mode, source and sink. More... | |
static void | pin_af_opendrain (const uint32_t pin) |
Set pin to AuxFn Output mode, sink only. More... | |
static void | pin_input (const uint32_t pin) |
Set pin to Input mode. More... | |
static void | pin_analog (const uint32_t pin) |
Set pin to Analog mode. More... | |
static void | pin_speed_low (const uint32_t pin) |
Set pin speed to slowest mode. More... | |
static void | pin_speed_medium (const uint32_t pin) |
Set pin speed to medium speed mode. More... | |
static void | pin_speed_fast (const uint32_t pin) |
Set pin speed to fast mode. More... | |
static void | pin_speed_high (const uint32_t pin) |
Set pin speed to highest mode. More... | |
static void | pin_af_map (const uint32_t pin, const uint32_t af) |
Map the alternate function to the pin. More... | |