HAL
HAL layer above libopencm3 library.
 All Files Functions Macros Groups Pages
PIN Alternate function API

Pin Alternate Function manipulation. More...

Functions

static void pin_af_map (const uint32_t pin, const uint32_t af)
 Map the alternate function to the pin. More...
 

Detailed Description

Pin Alternate Function manipulation.

Function Documentation

static void pin_af_map ( const uint32_t  pin,
const uint32_t  af 
)
static

Map the alternate function to the pin.

The AF should be emulated on architectures, they doesn't support AF mapping.

Warning
care must be taken because one call can touch mapping of other pins in one call on architectures they doesn't support AF mapping.
Parameters
[in]pinpin name (pin_name_base)
[in]afAF index (pin_name_base)

Definition at line 168 of file pin_v0.h.

References _pin_pinno(), and _pin_port().