Difference in Low power sleep mode and sleep mode in stm32l053?
I went through the examples on the ST site which have the direct implementations (not using CubeIDE generated code HAL for GPIO, SystemClock, ... config implementation)https://github.com/STMicroelectronics/STM32CubeL0/blob/master/Projects/NUCLEO-L053...