Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
stm32f4xx_exti_mort.h
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f4xx_exti_mort.h 00004 * @author MCD Application Team 00005 * @version V1.8.0 00006 * @date 04-November-2016 00007 * @brief This file contains all the functions prototypes for the EXTI_MORT firmware 00008 * library. 00009 ****************************************************************************** 00010 * @attention 00011 * 00012 * <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2> 00013 * 00014 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00015 * You may not use this file except in compliance with the License. 00016 * You may obtain a copy of the License at: 00017 * 00018 * http://www.st.com/software_license_agreement_liberty_v2 00019 * 00020 * Unless required by applicable law or agreed to in writing, software 00021 * distributed under the License is distributed on an "AS IS" BASIS, 00022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00023 * See the License for the specific language governing permissions and 00024 * limitations under the License. 00025 * 00026 ****************************************************************************** 00027 */ 00028 00029 /* Define to prevent recursive inclusion -------------------------------------*/ 00030 #ifndef __STM32F4xx_EXTI_MORT_H 00031 #define __STM32F4xx_EXTI_MORT_H 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 /* Includes ------------------------------------------------------------------*/ 00038 #include "stm32f4xx_mort2.h" 00039 00040 /** @addtogroup STM32F4xx_StdPeriph_Driver 00041 * @{ 00042 */ 00043 00044 /** @addtogroup EXTI_MORT 00045 * @{ 00046 */ 00047 00048 /* Exported types ------------------------------------------------------------*/ 00049 00050 /** 00051 * @brief EXTI_MORT mode enumeration 00052 */ 00053 00054 typedef enum 00055 { 00056 EXTI_Mode_Interrupt = 0x00, 00057 EXTI_Mode_Event = 0x04 00058 }EXTIMode_TypeDef_mort; 00059 00060 #define IS_EXTI_MODE_MORT(MODE) (((MODE) == EXTI_Mode_Interrupt) || ((MODE) == EXTI_Mode_Event)) 00061 00062 /** 00063 * @brief EXTI_MORT Trigger enumeration 00064 */ 00065 00066 typedef enum 00067 { 00068 EXTI_Trigger_Rising = 0x08, 00069 EXTI_Trigger_Falling = 0x0C, 00070 EXTI_Trigger_Rising_Falling = 0x10 00071 }EXTITrigger_TypeDef_mort; 00072 00073 #define IS_EXTI_TRIGGER_MORT(TRIGGER) (((TRIGGER) == EXTI_Trigger_Rising) || \ 00074 ((TRIGGER) == EXTI_Trigger_Falling) || \ 00075 ((TRIGGER) == EXTI_Trigger_Rising_Falling)) 00076 /** 00077 * @brief EXTI_MORT Init Structure definition 00078 */ 00079 00080 typedef struct 00081 { 00082 uint32_t EXTI_Line; /*!< Specifies the EXTI_MORT lines to be enabled or disabled. 00083 This parameter can be any combination value of @ref EXTI_Lines */ 00084 00085 EXTIMode_TypeDef_mort EXTI_Mode; /*!< Specifies the mode for the EXTI_MORT lines. 00086 This parameter can be a value of @ref EXTIMode_TypeDef_mort */ 00087 00088 EXTITrigger_TypeDef_mort EXTI_Trigger; /*!< Specifies the trigger signal active edge for the EXTI_MORT lines. 00089 This parameter can be a value of @ref EXTITrigger_TypeDef_mort */ 00090 00091 FunctionalState EXTI_LineCmd; /*!< Specifies the new state of the selected EXTI_MORT lines. 00092 This parameter can be set either to ENABLE or DISABLE */ 00093 }EXTI_InitTypeDef_mort; 00094 00095 /* Exported constants --------------------------------------------------------*/ 00096 00097 /** @defgroup EXTI_Exported_Constants 00098 * @{ 00099 */ 00100 00101 /** @defgroup EXTI_Lines 00102 * @{ 00103 */ 00104 00105 #define EXTI_Line0_MORT ((uint32_t)0x00001) /*!< External interrupt line 0 */ 00106 #define EXTI_Line1_MORT ((uint32_t)0x00002) /*!< External interrupt line 1 */ 00107 #define EXTI_Line2_MORT ((uint32_t)0x00004) /*!< External interrupt line 2 */ 00108 #define EXTI_Line3_MORT ((uint32_t)0x00008) /*!< External interrupt line 3 */ 00109 #define EXTI_Line4_MORT ((uint32_t)0x00010) /*!< External interrupt line 4 */ 00110 #define EXTI_Line5_MORT ((uint32_t)0x00020) /*!< External interrupt line 5 */ 00111 #define EXTI_Line6_MORT ((uint32_t)0x00040) /*!< External interrupt line 6 */ 00112 #define EXTI_Line7_MORT ((uint32_t)0x00080) /*!< External interrupt line 7 */ 00113 #define EXTI_Line8_MORT ((uint32_t)0x00100) /*!< External interrupt line 8 */ 00114 #define EXTI_Line9_MORT ((uint32_t)0x00200) /*!< External interrupt line 9 */ 00115 #define EXTI_Line10_MORT ((uint32_t)0x00400) /*!< External interrupt line 10 */ 00116 #define EXTI_Line11_MORT ((uint32_t)0x00800) /*!< External interrupt line 11 */ 00117 #define EXTI_Line12_MORT ((uint32_t)0x01000) /*!< External interrupt line 12 */ 00118 #define EXTI_Line13_MORT ((uint32_t)0x02000) /*!< External interrupt line 13 */ 00119 #define EXTI_Line14_MORT ((uint32_t)0x04000) /*!< External interrupt line 14 */ 00120 #define EXTI_Line15_MORT ((uint32_t)0x08000) /*!< External interrupt line 15 */ 00121 #define EXTI_Line16_MORT ((uint32_t)0x10000) /*!< External interrupt line 16 Connected to the PVD Output */ 00122 #define EXTI_Line17_MORT ((uint32_t)0x20000) /*!< External interrupt line 17 Connected to the RTC Alarm event */ 00123 #define EXTI_Line18_MORT ((uint32_t)0x40000) /*!< External interrupt line 18 Connected to the USB OTG FS Wakeup from suspend event */ 00124 #define EXTI_Line19_MORT ((uint32_t)0x80000) /*!< External interrupt line 19 Connected to the Ethernet Wakeup event */ 00125 #define EXTI_Line20_MORT ((uint32_t)0x00100000) /*!< External interrupt line 20 Connected to the USB OTG HS (configured in FS) Wakeup event */ 00126 #define EXTI_Line21_MORT ((uint32_t)0x00200000) /*!< External interrupt line 21 Connected to the RTC Tamper and Time Stamp events */ 00127 #define EXTI_Line22_MORT ((uint32_t)0x00400000) /*!< External interrupt line 22 Connected to the RTC Wakeup event */ 00128 #define EXTI_Line23_MORT ((uint32_t)0x00800000) /*!< External interrupt line 23 Connected to the LPTIM Wakeup event */ 00129 00130 00131 #define IS_EXTI_LINE_MORT(LINE) ((((LINE) & (uint32_t)0xFF800000) == 0x00) && ((LINE) != (uint16_t)0x00)) 00132 00133 #define IS_GET_EXTI_LINE_MORT(LINE) (((LINE) == EXTI_Line0_MORT) || ((LINE) == EXTI_Line1_MORT) || \ 00134 ((LINE) == EXTI_Line2_MORT) || ((LINE) == EXTI_Line3_MORT) || \ 00135 ((LINE) == EXTI_Line4_MORT) || ((LINE) == EXTI_Line5_MORT) || \ 00136 ((LINE) == EXTI_Line6_MORT) || ((LINE) == EXTI_Line7_MORT) || \ 00137 ((LINE) == EXTI_Line8_MORT) || ((LINE) == EXTI_Line9_MORT) || \ 00138 ((LINE) == EXTI_Line10_MORT) || ((LINE) == EXTI_Line11_MORT) || \ 00139 ((LINE) == EXTI_Line12_MORT) || ((LINE) == EXTI_Line13_MORT) || \ 00140 ((LINE) == EXTI_Line14_MORT) || ((LINE) == EXTI_Line15_MORT) || \ 00141 ((LINE) == EXTI_Line16_MORT) || ((LINE) == EXTI_Line17_MORT) || \ 00142 ((LINE) == EXTI_Line18_MORT) || ((LINE) == EXTI_Line19_MORT) || \ 00143 ((LINE) == EXTI_Line20_MORT) || ((LINE) == EXTI_Line21_MORT) ||\ 00144 ((LINE) == EXTI_Line22_MORT) || ((LINE) == EXTI_Line23_MORT)) 00145 00146 /** 00147 * @} 00148 */ 00149 00150 /** 00151 * @} 00152 */ 00153 00154 /* Exported macro ------------------------------------------------------------*/ 00155 /* Exported functions --------------------------------------------------------*/ 00156 00157 /* Function used to set the EXTI_MORT configuration to the default reset state *****/ 00158 void EXTI_DeInit_mort(void); 00159 00160 /* Initialization and Configuration functions *********************************/ 00161 void EXTI_Init_mort(EXTI_InitTypeDef_mort* EXTI_InitStruct); 00162 void EXTI_StructInit_mort(EXTI_InitTypeDef_mort* EXTI_InitStruct); 00163 void EXTI_GenerateSWInterrupt_mort(uint32_t EXTI_Line); 00164 00165 /* Interrupts and flags management functions **********************************/ 00166 FlagStatus EXTI_GetFlagStatus_mort(uint32_t EXTI_Line); 00167 void EXTI_ClearFlag_mort(uint32_t EXTI_Line); 00168 ITStatus EXTI_GetITStatus_mort(uint32_t EXTI_Line); 00169 void EXTI_ClearITPendingBit_mort(uint32_t EXTI_Line); 00170 00171 #ifdef __cplusplus 00172 } 00173 #endif 00174 00175 #endif /* __STM32F4xx_EXTI_H */ 00176 00177 /** 00178 * @} 00179 */ 00180 00181 /** 00182 * @} 00183 */ 00184 00185 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 00186 00187 00188 00189 00190 00191
Generated on Sat Oct 21 2023 04:38:55 by
1.7.2