Solved
How do I detect that the button connected to GPIO is still pressed?
I'm using 'stm32f103rc'.
I connected the button to the GPIO PIN.
If the button is still pressed, the HIGH signal will continue to occur.
So, how do you detect how long the HIGH signal has been pressed?
Because when the button is pressed for more than 0.5 seconds, you want to generate a specific function.
I lack knowledge of hardware.