Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
cpu_load.h File Reference
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Typedefs

typedef void(* cpu_load_cb_t) (uint8_t percent)

Functions

void cpu_load_on_enter_idle (void)
 Hook called by the application specific hook on entering CPU idle.
void cpu_load_on_exit_idle (void)
 Hook called by the application specific hook on exiting CPU idle.
int cpu_load_get (bool reset)
 Get CPU load.
void cpu_load_log_control (bool enable)
 Control periodic CPU statistics report.
int cpu_load_cb_reg (cpu_load_cb_t cb, uint8_t threshold_percent)
 Optional registration of callback when load is greater or equal to the threshold.