38 #define TM_CPU_LOAD_H 100
71 #include "stm32fxxx_hal.h"
73 #include "tm_stm32_general.h"
uint32_t SCNT
Definition: tm_stm32_cpu_load.h:98
float Load
Definition: tm_stm32_cpu_load.h:95
CPU LOAD structure.
Definition: tm_stm32_cpu_load.h:94
uint8_t TM_CPULOAD_Init(TM_CPULOAD_t *CPU_Load)
Initializes DWT functionality for sleep counter and prepares everything for CPU LOAD measurement...
uint32_t WCNT
Definition: tm_stm32_cpu_load.h:97
uint8_t TM_CPULOAD_GoToSleepMode(TM_CPULOAD_t *CPU_Load)
Goes to low power mode and measures sleeping time and working time using DWT cycle counter...
uint8_t Updated
Definition: tm_stm32_cpu_load.h:96