This file provides firmware functions to manage the following functionalities of the EXTI peripheral: More...
#include "stm32f30x_exti.h"
Go to the source code of this file.
Macros | |
#define | EXTI_LINENONE ((uint32_t)0x00000) /* No interrupt selected */ |
Functions | |
void | EXTI_ClearFlag (uint32_t EXTI_Line) |
Clears the EXTI's line pending flags. More... | |
void | EXTI_ClearITPendingBit (uint32_t EXTI_Line) |
Clears the EXTI's line pending bits. More... | |
void | EXTI_DeInit (void) |
Deinitializes the EXTI peripheral registers to their default reset values. More... | |
void | EXTI_GenerateSWInterrupt (uint32_t EXTI_Line) |
Generates a Software interrupt on selected EXTI line. More... | |
FlagStatus | EXTI_GetFlagStatus (uint32_t EXTI_Line) |
Checks whether the specified EXTI line flag is set or not. More... | |
ITStatus | EXTI_GetITStatus (uint32_t EXTI_Line) |
Checks whether the specified EXTI line is asserted or not. More... | |
void | EXTI_Init (EXTI_InitTypeDef *EXTI_InitStruct) |
Initializes the EXTI peripheral according to the specified parameters in the EXTI_InitStruct. More... | |
void | EXTI_StructInit (EXTI_InitTypeDef *EXTI_InitStruct) |
Fills each EXTI_InitStruct member with its reset value. More... | |
This file provides firmware functions to manage the following functionalities of the EXTI peripheral:
=============================================================================== ##### EXTI features ##### =============================================================================== [..] External interrupt/event lines are mapped as following: (#) All available GPIO pins are connected to the 16 external interrupt/event lines from EXTI0 to EXTI15. (#) EXTI line 16 is connected to the PVD output (#) EXTI line 17 is connected to the RTC Alarm event (#) EXTI line 18 is connected to USB Device wakeup event (#) EXTI line 19 is connected to the RTC Tamper and TimeStamp events (#) EXTI line 20 is connected to the RTC wakeup event (#) EXTI line 21 is connected to the Comparator 1 wakeup event (#) EXTI line 22 is connected to the Comparator 2 wakeup event (#) EXTI line 23 is connected to the I2C1 wakeup event (#) EXTI line 24 is connected to the I2C2 wakeup event (#) EXTI line 25 is connected to the USART1 wakeup event (#) EXTI line 26 is connected to the USART2 wakeup event (#) EXTI line 27 is reserved (#) EXTI line 28 is connected to the USART3 wakeup event (#) EXTI line 29 is connected to the Comparator 3 event (#) EXTI line 30 is connected to the Comparator 4 event (#) EXTI line 31 is connected to the Comparator 5 event (#) EXTI line 32 is connected to the Comparator 6 event (#) EXTI line 33 is connected to the Comparator 7 event (#) EXTI line 34 is connected for thr UART4 wakeup event (#) EXTI line 35 is connected for the UART5 wakeup event ##### How to use this driver ##### =============================================================================== [..] In order to use an I/O pin as an external interrupt source, follow steps below: (#) Configure the I/O in input mode using GPIO_Init(). (#) Select the input source pin for the EXTI line using SYSCFG_EXTILineConfig(). (#) Select the mode(interrupt, event) and configure the trigger selection (Rising, falling or both) using EXTI_Init(). For the internal interrupt, the trigger selection is not needed (the active edge is always the rising one). (#) Configure NVIC IRQ channel mapped to the EXTI line using NVIC_Init(). (#) Optionally, you can generate a software interrupt using the function EXTI_GenerateSWInterrupt(). [..] (@) SYSCFG APB clock must be enabled to get write access to SYSCFG_EXTICRx registers using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file stm32f30x_exti.c.