STM32 external interrupt common library functions

Publisher:心满意足Latest update time:2018-12-03 Source: eefocusKeywords:stm32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

void GPIO_EXTILineConfig(uint8_t GPIO_PortSource, uint8_t GPIO_PinSource);//Determine the mapping relationship between ports and interrupt lines

 

void EXTI_Init(EXTI_InitTypeDef* EXTI_InitStruct);//Initialize interrupt line, trigger mode

typedef struct

{

  uint32_t EXTI_Line;//Specify the interrupt line to be configured

   

  EXTIMode_TypeDef EXTI_Mode;//Mode: event or interrupt       

 

  EXTITrigger_TypeDef EXTI_Trigger;//Trigger mode: rising edge/falling edge/double edge

 

  FunctionalState EXTI_LineCmd; //Is it enabled?

}EXTI_InitTypeDef;

 

ITStatus EXTI_GetITStatus(uint32_t EXTI_Line);//Judge whether the interrupt line interrupt state occurs

 

void EXTI_ClearITPendingBit(uint32_t EXTI_Line);// Clear the interrupt flag on the interrupt line


Keywords:stm32 Reference address:STM32 external interrupt common library functions

Previous article:STM32 basic timer TIM6 and TIM7
Next article:STM32 IAP program interruption problem before and after jump

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号