非常感大家来看我的贴子: 我想配置 PB2 低电平触发: #define RF_IQR_PIN GPIO_Pin_2 #define RF_IQR_PORT GPIOB GPIO_InitStruct.GPIO_Pin =RF_IQR_PIN; GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN; GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_UP; GPIO_InitStruct.GPIO_Speed = GPIO_Speed_Level_2; GPIO_Init(RF_IQR_PORT , &GPIO_InitStruct); SYSCFG_EXTILineConfig(EXTI_PortSourceGPIOB, GPIO_PinSource2); EXTI_InitStructure.EXTI_Line = EXTI_Line2; EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt; EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling; EXTI_InitStructure.EXTI_LineCmd = ENABLE; EXTI_Init(&EXTI_InitStructure); NVIC_InitStructure.NVIC_IRQChannel = EXTI2_3_IRQn ; ?? NVIC_InitStructure.NVIC_IRQChannelPriority = 0; NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; NVIC_Init(&NVIC_InitStructure); 我想问下: NVIC_InitStructure.NVIC_IRQChannel = EXTI2_3_IRQn ; 这个是怎么样配置的列,有哪位帮教教吗 |
【STM32F0开发日志/评测/笔记】+互补PWM波的产生
STM32F030 PB14和PB15无法输出PWM求助
【STM32F030探索套件】序列之五 外部中断
【STM32F0开发日志---二】+ucosii.2.92移植在STM32F030
上传个STM32F0+5110+内部温度传感器的菜鸟实例
【STM32F030探索套件使用问题】STM32F030 SPI方式驱动ST7565LCD失败
求一份STM32F051 I2C驱动LCD 12864的例程
STM32F0 M0 向结构体赋值进入HardFault异常
STM32F0 ADC-DMA方式采集2路数据时出现问题
STM32F030C8T6,TIM16定时慢很多问题?
评分
查看全部评分
谢谢你的热心回答,我后面才理解到PIN0,PIN1用EXTI0—1IRQn,PIN2,PIN3用EXTI2—3IRQn,PIN4-15用EXTI4—15IRQn。