dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
pios_exti.h
Go to the documentation of this file.
1
15
/*
16
* This program is free software; you can redistribute it and/or modify
17
* it under the terms of the GNU General Public License as published by
18
* the Free Software Foundation; either version 3 of the License, or
19
* (at your option) any later version.
20
*
21
* This program is distributed in the hope that it will be useful, but
22
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24
* for more details.
25
*
26
* You should have received a copy of the GNU General Public License along
27
* with this program; if not, see <http://www.gnu.org/licenses/>
28
*/
29
30
#ifndef PIOS_EXTI_H
31
#define PIOS_EXTI_H
32
33
/* Public Functions */
34
35
#include <
pios_stm32.h
>
36
37
struct
pios_exti_cfg
{
38
bool (*
vector
)(void);
39
uint32_t
line
;
/* use EXTI_LineN macros */
40
struct
stm32_gpio
pin
;
41
struct
stm32_irq
irq
;
42
struct
stm32_exti
exti
;
43
};
44
45
/* This still exists just as legacy. No longer do exti_cfg's need to be in a
46
* special section.
47
*/
48
#define __exti_config
49
50
extern
int32_t
PIOS_EXTI_Init
(
const
struct
pios_exti_cfg
*
cfg
);
51
extern
void
PIOS_EXTI_DeInit
(
const
struct
pios_exti_cfg
*
cfg
);
52
53
#endif
/* PIOS_EXTI_H */
54
pios_stm32.h
Types that are specific to the STM32 peripherals.
stm32_gpio
Definition:
pios_stm32.h:59
PIOS_EXTI_Init
int32_t PIOS_EXTI_Init(const struct pios_exti_cfg *cfg)
pios_exti_cfg
Definition:
pios_exti.h:37
stm32_irq
Definition:
pios_stm32.h:33
pios_exti_cfg::vector
bool(* vector)(void)
Definition:
pios_exti.h:38
PIOS_EXTI_DeInit
void PIOS_EXTI_DeInit(const struct pios_exti_cfg *cfg)
cfg
static struct flyingpicmd_cfg_fa cfg
Definition:
main.c:49
pios_exti_cfg::exti
struct stm32_exti exti
Definition:
pios_exti.h:42
stm32_exti
Definition:
pios_stm32.h:39
pios_exti_cfg::irq
struct stm32_irq irq
Definition:
pios_exti.h:41
pios_exti_cfg::pin
struct stm32_gpio pin
Definition:
pios_exti.h:40
pios_exti_cfg::line
uint32_t line
Definition:
pios_exti.h:39
flight
PiOS
inc
pios_exti.h
Generated by
1.8.6