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.
Dependents: Space_Invaders_Demo neopixels gpio_test_stm32f3_discovery gpio_test_systimer ... more
stm32f30x_exti.c File Reference
This file provides firmware functions to manage the following functionalities of the EXTI peripheral: + Initialization and Configuration + Interrupts and flags management. More...
Go to the source code of this file.
Functions | |
| void | EXTI_DeInit (void) |
| Deinitializes the EXTI peripheral registers to their default reset values. | |
| void | EXTI_Init (EXTI_InitTypeDef *EXTI_InitStruct) |
| Initializes the EXTI peripheral according to the specified parameters in the EXTI_InitStruct. | |
| void | EXTI_StructInit (EXTI_InitTypeDef *EXTI_InitStruct) |
| Fills each EXTI_InitStruct member with its reset value. | |
| void | EXTI_GenerateSWInterrupt (uint32_t EXTI_Line) |
| Generates a Software interrupt on selected EXTI line. | |
| FlagStatus | EXTI_GetFlagStatus (uint32_t EXTI_Line) |
| Checks whether the specified EXTI line flag is set or not. | |
| void | EXTI_ClearFlag (uint32_t EXTI_Line) |
| Clears the EXTI's line pending flags. | |
| ITStatus | EXTI_GetITStatus (uint32_t EXTI_Line) |
| Checks whether the specified EXTI line is asserted or not. | |
| void | EXTI_ClearITPendingBit (uint32_t EXTI_Line) |
| Clears the EXTI's line pending bits. | |
Detailed Description
This file provides firmware functions to manage the following functionalities of the EXTI peripheral: + Initialization and Configuration + Interrupts and flags management.
- Version:
- V1.2.3
- Date:
- 10-July-2015
=============================================================================== ##### 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);
- Attention:
© COPYRIGHT 2015 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.
Definition in file stm32f30x_exti.c.
Generated on Tue Jul 12 2022 17:34:45 by
1.7.2