stm32f103
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
util.h File Reference
#include <cstdint>
#include <utility>
#include <stm32f10x_gpio.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

using Pin = std::pair< GPIO_TypeDef *, uint16_t >
 Type definition for a single pin. More...
 

Typedef Documentation

using Pin = std::pair<GPIO_TypeDef*, uint16_t>

Type definition for a single pin.

You can initialize a pin using `` Pin myPin{ GPIOA, GPIO_Pin_1 } ``` For more pin definitions you may refer to stm32f10x_gpio.h