STM32F4 Standard Peripheral bibliotheek  1.0
ST Microelectronics bibliotheek documentatie voor de STM32F4 Standard Peripheral Library
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f4xx_exti.c File Reference

This file provides firmware functions to manage the following functionalities of the EXTI peripheral: More...

#include "stm32f4xx_exti.h"

Macros

#define EXTI_LINENONE   ((uint32_t)0x00000) /* No interrupt selected */
 

Functions

void EXTI_DeInit (void)
 Deinitializes the EXTI peripheral registers to their default reset values. 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...
 
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...
 
void EXTI_ClearFlag (uint32_t EXTI_Line)
 Clears the EXTI's line pending flags. More...
 
ITStatus EXTI_GetITStatus (uint32_t EXTI_Line)
 Checks whether the specified EXTI line is asserted or not. More...
 
void EXTI_ClearITPendingBit (uint32_t EXTI_Line)
 Clears the EXTI's line pending bits. More...
 

Detailed Description

This file provides firmware functions to manage the following functionalities of the EXTI peripheral:

Author
MCD Application Team
Version
V1.0.2
Date
05-March-2012
  • Initialization and Configuration
  • Interrupts and flags management
*  
*          ===================================================================
*                                     EXTI features
*          ===================================================================
*    
*          External interrupt/event lines are mapped as following:
*            1- All available GPIO pins are connected to the 16 external 
*               interrupt/event lines from EXTI0 to EXTI15.
*            2- EXTI line 16 is connected to the PVD Output
*            3- EXTI line 17 is connected to the RTC Alarm event
*            4- EXTI line 18 is connected to the USB OTG FS Wakeup from suspend event                                    
*            5- EXTI line 19 is connected to the Ethernet Wakeup event
*            6- EXTI line 20 is connected to the USB OTG HS (configured in FS) Wakeup event 
*            7- EXTI line 21 is connected to the RTC Tamper and Time Stamp events                                               
*            8- EXTI line 22 is connected to the RTC Wakeup event
*        
*          ===================================================================
*                                 How to use this driver
*          ===================================================================  
*              
*          In order to use an I/O pin as an external interrupt source, follow
*          steps below:
*            1- Configure the I/O in input mode using GPIO_Init()
*            2- Select the input source pin for the EXTI line using SYSCFG_EXTILineConfig()
*            3- Select the mode(interrupt, event) and configure the trigger 
*               selection (Rising, falling or both) using EXTI_Init()
*            4- Configure NVIC IRQ channel mapped to the EXTI line using NVIC_Init()
*   
*  @note  SYSCFG APB clock must be enabled to get write access to SYSCFG_EXTICRx
*         registers using RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE);
*          
*  
Attention

© COPYRIGHT 2012 STMicroelectronics

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.