NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gpio.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  gpio_config_t
 

Enumerations

enum  GPIO_Speed { Speed_10MHz = 1, Speed_2MHz, Speed_50MHz }
 
enum  GPIO_Pin {
  Pin_0 = 0x0001, Pin_1 = 0x0002, Pin_2 = 0x0004, Pin_3 = 0x0008,
  Pin_4 = 0x0010, Pin_5 = 0x0020, Pin_6 = 0x0040, Pin_7 = 0x0080,
  Pin_8 = 0x0100, Pin_9 = 0x0200, Pin_10 = 0x0400, Pin_11 = 0x0800,
  Pin_12 = 0x1000, Pin_13 = 0x2000, Pin_14 = 0x4000, Pin_15 = 0x8000,
  Pin_All = 0xFFFF
}
 

Functions

void gpioInit (GPIO_TypeDef *gpio, const gpio_config_t *config)
 
void gpioExtiLineConfig (uint8_t portsrc, uint8_t pinsrc)
 
void gpioPinRemapConfig (uint32_t remap, bool enable)
 

Enumeration Type Documentation

enum GPIO_Pin
Enumerator
Pin_0 
Pin_1 
Pin_2 
Pin_3 
Pin_4 
Pin_5 
Pin_6 
Pin_7 
Pin_8 
Pin_9 
Pin_10 
Pin_11 
Pin_12 
Pin_13 
Pin_14 
Pin_15 
Pin_All 
enum GPIO_Speed
Enumerator
Speed_10MHz 
Speed_2MHz 
Speed_50MHz 

Function Documentation

void gpioExtiLineConfig ( uint8_t  portsrc,
uint8_t  pinsrc 
)
void gpioInit ( GPIO_TypeDef gpio,
const gpio_config_t config 
)
void gpioPinRemapConfig ( uint32_t  remap,
bool  enable 
)