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
33void stm32_exti_enable(int line);
34
40void stm32_exti_disable(int line);
41
46 /* clear trigger */
48 /* trigger on rising edge */
50 /* trigger on falling edge */
52 /* trigger on both rising & falling edge */
54};
55
62void stm32_exti_trigger(int line, int trg);
63
64/* callback for exti interrupt */
65typedef void (*stm32_exti_callback_t) (int line, void *user);
66
75
82
83#endif /* ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_INTC_EXTI_STM32_H_ */
void stm32_exti_unset_callback(int line)
unset EXTI interrupt callback
stm32_exti_trigger
EXTI trigger flags.
Definition exti_stm32.h:45
@ STM32_EXTI_TRIG_BOTH
Definition exti_stm32.h:53
@ STM32_EXTI_TRIG_FALLING
Definition exti_stm32.h:51
@ STM32_EXTI_TRIG_NONE
Definition exti_stm32.h:47
@ STM32_EXTI_TRIG_RISING
Definition exti_stm32.h:49
void stm32_exti_disable(int line)
disable EXTI interrupt for specific line
void(* stm32_exti_callback_t)(int line, void *user)
Definition exti_stm32.h:65
int stm32_exti_set_callback(int line, stm32_exti_callback_t cb, void *data)
set EXTI interrupt callback
void stm32_exti_enable(int line)
enable EXTI interrupt for specific line
static fdata_t data[2]
Definition test_fifo_contexts.c:15