FreeRTOS, interrupts and GPIO2
Posted: Fri Feb 19, 2016 9:20 am
I'm trying to trigger interrupts via GPIO2 and it's not working - can anyone tell me why? I'm using the FreeRTOS platform and the code that sets up the GPIO is as follows:
Something is not right because the interrupt routine is never triggered, even if I 'by hand' force GPIO2 high or low. So what's the key thing that I've missed?
Thanks,
Papadeltasierra
Code: Select all
GPIO_ConfigTypeDef gpio_def;
gpio_def.GPIO_IntrType = GPIO_PIN_INTR_ANYEDGE;
gpio_def.GPIO_Mode = GPIO_Mode_Input;
gpio_def.GPIO_Pin = GPIO_Pin_2;
gpio_def.GPIO_Pullup = GPIO_PullUp_DIS;
gpio_intr_handler_register(gpio_interrupt_handler, NULL);
gpio_config(&gpio_def);
Something is not right because the interrupt routine is never triggered, even if I 'by hand' force GPIO2 high or low. So what's the key thing that I've missed?
Thanks,
Papadeltasierra