summaryrefslogtreecommitdiffstats
path: root/bsps/arm/stm32f4/include/bsp/stm32f10xxx_exti.h
blob: d5324171a90c2779eebbd122561f1bd1b3a4c8a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
 * @file
 * @ingroup stm32f4_exti
 * @brief STM32F10XXX EXTI support
 */

/*
 * Copyright (c) 2013 Christian Mauderer.  All rights reserved.
 *
 *  embedded brains GmbH
 *  Obere Lagerstr. 30
 *  82178 Puchheim
 *  Germany
 *  <rtems@embedded-brains.de>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

#ifndef LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H
#define LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H

#include <bsp/utility.h>

/**
 * @defgroup stm32f4_exti EXTI Support
 * @ingroup RTEMSBSPsARMSTM32F4
 * @brief STM32F10XXX EXTI Support
 * @{
 */

typedef struct {
	uint32_t imr;
#define STM32F4_EXTI_IMR(line) BSP_BIT32(line)
	uint32_t emr;
#define STM32F4_EXTI_EMR(line) BSP_BIT32(line)
	uint32_t rtsr;
#define STM32F4_EXTI_RTSR(line) BSP_BIT32(line)
	uint32_t ftsr;
#define STM32F4_EXTI_FTSR(line) BSP_BIT32(line)
	uint32_t swier;
#define STM32F4_EXTI_SWIER(line) BSP_BIT32(line)
	uint32_t pr;
#define STM32F4_EXTI_PR(line) BSP_BIT32(line)
} stm32f4_exti;

/** @} */

#endif /* LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H */