Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
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_ */
void
void
Definition:
eswifi_shell.c:15
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 Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4