STM32F0 Standard Peripheral bibliotheek  1.0
ST Microelectronics standard peripheral bibliotheek documentatie voor de STM32F0 familie
 All Data Structures Files Functions Variables Enumerations Enumerator Groups
stm32f0xx_exti.c File Reference

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

#include "stm32f0xx_exti.h"


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


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:

MCD Application Team
  • Initialization and Configuration
  • Interrupts and flags management
                          ##### 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 19 is connected to the RTC Tamper and TimeStamp events
       (#) 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 25 is connected to the USART1 wakeup event
       (#) EXTI line 27 is connected to the CEC 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 
  (#) 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);

© 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:

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.