LOW power timers in stm32g0
Hi,
I am working on STM32G0c1RET6 board and i want to understand the working of low power timer (LPTIM) in stop mode.
i am using the HAL_LPTIM_Counter_Start_IT(&hlptim1, 65534) to enable LPTIM1 and print a value in function
void HAL_LPTIM_AutoReloadMatchCallback(LPTIM_HandleTypeDef *hlptim) {
if (hlptim->Instance == LPTIM1) {/* If instance called for HEATER DRIVER */
printf("1\r\n");
}
}
is it the correct way to print the value. because at some places i have seen using
HAL_LPTIM_TimeOut_Start_IT() function. which one is correct ??
Edited to apply source code formatting - please see How to insert source code for future reference.
