Hello,
Please let me ask the interruption behavior on GPIO especially edge detection.
I would like to detect the rising edge for GPIO, and I configure the GPIO_EnableIRQ() function as followings:
GPIO_EnableIRQ( GPIO_PORT_x, GPIO_PIN_x, GPIO1_IRQn,
false, // logic-High detection
true, // wait for key release after interrupt ( use as edge detection)
0 );
If the target Port/Pin has been already "High-signal" when I call above function, I get the interruption immediately.
Is this behavior expected? It works like as level-interruption...
(Regarding on the manual, the description for EDGE_LEVELNx register is defined as "wait for key release after interrupt was reset for IRQx." <-- there are no edge describing... but name is EDGE_LEVEL...)
Perhaps, I made a mistake for configuration before I call GPIO_EnableIRQ() function.
I would like to know whether this is a correct behavior or not. If you could feed any comments to me, it would be much helpful.
Best regards,
CD