Zephyr Project API
3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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
26
#define STM32_EXTI_LINE_NONE 0xFFFFFFFFU
27
33
void
stm32_exti_enable
(
int
line);
34
40
void
stm32_exti_disable
(
int
line);
41
45
enum
stm32_exti_trigger
{
46
/* clear trigger */
47
STM32_EXTI_TRIG_NONE
= 0x0,
48
/* trigger on rising edge */
49
STM32_EXTI_TRIG_RISING
= 0x1,
50
/* trigger on falling edge */
51
STM32_EXTI_TRIG_FALLING
= 0x2,
52
/* trigger on both rising & falling edge */
53
STM32_EXTI_TRIG_BOTH
= 0x3,
54
};
55
62
void
stm32_exti_trigger
(
int
line,
int
trg);
63
64
/* callback for exti interrupt */
65
typedef
void (*
stm32_exti_callback_t
) (
int
line,
void
*user);
66
74
int
stm32_exti_set_callback
(
int
line,
stm32_exti_callback_t
cb,
void
*
data
);
75
81
void
stm32_exti_unset_callback
(
int
line);
82
83
#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:45
STM32_EXTI_TRIG_BOTH
@ STM32_EXTI_TRIG_BOTH
Definition
exti_stm32.h:53
STM32_EXTI_TRIG_FALLING
@ STM32_EXTI_TRIG_FALLING
Definition
exti_stm32.h:51
STM32_EXTI_TRIG_NONE
@ STM32_EXTI_TRIG_NONE
Definition
exti_stm32.h:47
STM32_EXTI_TRIG_RISING
@ STM32_EXTI_TRIG_RISING
Definition
exti_stm32.h:49
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:65
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)
enable EXTI interrupt for specific line
types.h
data
static fdata_t data[2]
Definition
test_fifo_contexts.c:15
include
zephyr
drivers
interrupt_controller
exti_stm32.h
Generated on Sun Sep 15 2024 17:01:30 for Zephyr Project API by
1.9.8