NinjaFlight
|
#include <stdbool.h>
#include <stdint.h>
#include <platform.h>
#include "build_config.h"
#include "gpio.h"
Macros | |
#define | MODE_OFFSET 0 |
#define | PUPD_OFFSET 2 |
#define | OUTPUT_OFFSET 4 |
#define | MODE_MASK ((1|2) << MODE_OFFSET) |
#define | PUPD_MASK ((1|2) << PUPD_OFFSET) |
#define | OUTPUT_MASK ((1|2) << OUTPUT_OFFSET) |
Functions | |
void | gpioInit (GPIO_TypeDef *gpio, const gpio_config_t *config) |
void | gpioExtiLineConfig (uint8_t portsrc, uint8_t pinsrc) |
#define MODE_MASK ((1|2) << MODE_OFFSET) |
#define MODE_OFFSET 0 |
#define OUTPUT_MASK ((1|2) << OUTPUT_OFFSET) |
#define OUTPUT_OFFSET 4 |
#define PUPD_MASK ((1|2) << PUPD_OFFSET) |
#define PUPD_OFFSET 2 |
void gpioExtiLineConfig | ( | uint8_t | portsrc, |
uint8_t | pinsrc | ||
) |
void gpioInit | ( | GPIO_TypeDef * | gpio, |
const gpio_config_t * | config | ||
) |