NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
exti.h
Go to the documentation of this file.
1 /*
2  * This file is part of Ninjaflight.
3  *
4  * Ninjaflight is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * Ninjaflight is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with Ninjaflight. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 
19 #pragma once
20 
21 typedef struct extiConfig_s {
22 #ifdef STM32F303
23  uint32_t gpioAHBPeripherals;
24 #endif
25 #ifdef STM32F10X
26  uint32_t gpioAPB2Peripherals;
27 #endif
28  uint16_t gpioPin;
30 
32  uint32_t exti_line;
33  uint8_t exti_pin_source;
35 } extiConfig_t;
GPIO_TypeDef * gpioPort
Definition: exti.h:29
uint32_t exti_line
Definition: exti.h:32
struct extiConfig_s extiConfig_t
IRQn_Type exti_irqn
Definition: exti.h:34
Definition: exti.h:21
IRQn_Type
Definition: platform.h:56
Definition: platform.h:43
uint16_t gpioPin
Definition: exti.h:28
uint8_t exti_pin_source
Definition: exti.h:33
uint8_t exti_port_source
Definition: exti.h:31