2020-04-29 06:59 PM
Hi all,
I would like to use LPTIM in STM32L0 to put my device in sleep mode for 200 ms. I have used the API HAL_LPTIM_TIMEOUT_START(LPTIM_HandleTypeDef * hlptim, uint32_t Period, uint32_t
Timeout), I pass 200 as value for both Period and Timeout.
I use HAL_LPTIM_CompareMatchCallback(LPTIM_HandleTypeDef * hlptim) as interrupt callback routine. But my application never goes to the interrupt/callback routine after HAL_LPTIM_TIMEOUT_START() have been called.
Whether the use of api HAL_LPTIM_TIMEOUT_START() suits my requirement as I did?
Can any of you help me with LPTIM configuration and method to be followed to put my device in sleep for 200 ms using LPTIM.