Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
exti_stm32.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 Open-RnD Sp. z o.o.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
21
#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_EXTI_STM32_H_
22
#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_EXTI_STM32_H_
23
24
#include <
zephyr/types.h
>
25
31
void
stm32_exti_enable
(
int
line);
32
38
void
stm32_exti_disable
(
int
line);
39
43
enum
stm32_exti_trigger
{
44
/* clear trigger */
45
STM32_EXTI_TRIG_NONE
= 0x0,
46
/* trigger on rising edge */
47
STM32_EXTI_TRIG_RISING
= 0x1,
48
/* trigger on falling endge */
49
STM32_EXTI_TRIG_FALLING
= 0x2,
50
/* trigger on falling endge */
51
STM32_EXTI_TRIG_BOTH
= 0x3,
52
};
53
60
void
stm32_exti_trigger
(
int
line,
int
trg);
61
62
/* callback for exti interrupt */
63
typedef
void (*
stm32_exti_callback_t
) (
int
line,
void
*user);
64
72
int
stm32_exti_set_callback
(
int
line,
stm32_exti_callback_t
cb,
void
*
data
);
73
79
void
stm32_exti_unset_callback
(
int
line);
80
81
#endif
/* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_EXTI_STM32_H_ */
stm32_exti_unset_callback
void stm32_exti_unset_callback(int line)
unset EXTI interrupt callback
stm32_exti_trigger
stm32_exti_trigger
EXTI trigger flags.
Definition:
exti_stm32.h:43
STM32_EXTI_TRIG_BOTH
@ STM32_EXTI_TRIG_BOTH
Definition:
exti_stm32.h:51
STM32_EXTI_TRIG_FALLING
@ STM32_EXTI_TRIG_FALLING
Definition:
exti_stm32.h:49
STM32_EXTI_TRIG_NONE
@ STM32_EXTI_TRIG_NONE
Definition:
exti_stm32.h:45
STM32_EXTI_TRIG_RISING
@ STM32_EXTI_TRIG_RISING
Definition:
exti_stm32.h:47
stm32_exti_disable
void stm32_exti_disable(int line)
disable EXTI interrupt for specific line
stm32_exti_callback_t
void(* stm32_exti_callback_t)(int line, void *user)
Definition:
exti_stm32.h:63
stm32_exti_set_callback
int stm32_exti_set_callback(int line, stm32_exti_callback_t cb, void *data)
set EXTI interrupt callback
stm32_exti_enable
void stm32_exti_enable(int line)
Driver for External interrupt/event controller in STM32 MCUs.
types.h
data
static fdata_t data[2]
Definition:
test_fifo_contexts.c:15
include
drivers
interrupt_controller
exti_stm32.h
Generated on Mon Feb 21 2022 22:43:01 for Zephyr API Documentation by
1.9.2