AnsweredAssumed Answered

EXT Interrupts not happening ?

Question asked by burger.ben.001 on Nov 20, 2011
Latest reply on Nov 20, 2011 by Clive One
I use the STM32F103RTE6, I cannot get the EXT interrupts to happen:
I do the following:
- RCC config, all the IO port clock are set
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIO_DISCONNECT|RCC_APB1Periph_TIM2|RCC_APB1Periph_TIM3|RCC_APB2Periph_GPIOA | RCC_APB2Periph_GPIOB |
     RCC_APB2Periph_GPIOC | RCC_APB2Periph_GPIOD | RCC_APB2Periph_GPIOE | RCC_APB2Periph_AFIO, ENABLE );
- NVIC config, 
 NVIC_PriorityGroupConfig(NVIC_PriorityGroup_3);
 NVIC_InitStructure.NVIC_IRQChannel = EXTI9_5_IRQChannel|EXTI15_10_IRQChannel;
 NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0x1;
 NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x0;
 NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
 NVIC_Init(&NVIC_InitStructure);
- GPIO config, all the pins declared as inputs
  GPIO_InitStructure.GPIO_Pin = BUTTON_1|BUTTON_2|BUTTON_3|BUTTON_4;
  GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
  GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
  GPIO_Init(GPIOC, &GPIO_InitStructure);
- EXTI Lines configured ???? Not sure here
 GPIO_EXTILineConfig(GPIO_PortSourceGPIOA|GPIO_PortSourceGPIOB|GPIO_PortSourceGPIOC, (RF_RX_PIN|BUTTON_1_PIN));
 
   EXTI_InitStructure.EXTI_Line =(EXTI_LINE_RF|EXTI_LINE_BUTTON1);
   EXTI_InitStructure.EXTI_Mode = EXTI_Mode_Interrupt;
   EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Falling;
   EXTI_InitStructure.EXTI_LineCmd = ENABLE;
   EXTI_Init(&EXTI_InitStructure);  

 EXTI_GenerateSWInterrupt(BUTTON_1); //test the interrupt !! Nothing ???
The STM32F10x_it.c has all the right functions
Any suggestions
Thanks
Ben

Outcomes