User Activity

i am new in stm32 . i am using stm32lo31 series nucleo board . i want to read push button press timing so i am using polling method to detect read button press event. then i want time between press event to release. how can i configure systick to...
I am new on STM32.I have one switch that i define it's external interrupt. i want to put my mcu in sleep mode and at another interrupt i want my mcu wake up. i don't have any idea how to write routine for wake up and sleep mode API when interrupt oc...
Kudos from