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