Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:05

0001 /**
0002  * @file
0003  * @ingroup stm32f4_exti
0004  * @brief STM32F10XXX EXTI support
0005  */
0006 
0007 /*
0008  * Copyright (c) 2013 Christian Mauderer.  All rights reserved.
0009  *
0010  * The license and distribution terms for this file may be
0011  * found in the file LICENSE in this distribution or at
0012  * http://www.rtems.org/license/LICENSE.
0013  */
0014 
0015 #ifndef LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H
0016 #define LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H
0017 
0018 #include <bsp/utility.h>
0019 
0020 /**
0021  * @defgroup stm32f4_exti EXTI Support
0022  * @ingroup RTEMSBSPsARMSTM32F4
0023  * @brief STM32F10XXX EXTI Support
0024  * @{
0025  */
0026 
0027 typedef struct {
0028     uint32_t imr;
0029 #define STM32F4_EXTI_IMR(line) BSP_BIT32(line)
0030     uint32_t emr;
0031 #define STM32F4_EXTI_EMR(line) BSP_BIT32(line)
0032     uint32_t rtsr;
0033 #define STM32F4_EXTI_RTSR(line) BSP_BIT32(line)
0034     uint32_t ftsr;
0035 #define STM32F4_EXTI_FTSR(line) BSP_BIT32(line)
0036     uint32_t swier;
0037 #define STM32F4_EXTI_SWIER(line) BSP_BIT32(line)
0038     uint32_t pr;
0039 #define STM32F4_EXTI_PR(line) BSP_BIT32(line)
0040 } stm32f4_exti;
0041 
0042 /** @} */
0043 
0044 #endif /* LIBBSP_ARM_STM32F4_STM32F10XXX_EXTI_H */