| 
    software:firmware
    
   MakAir Firmware 
   | 
 
A CPU load estimation. More...
#include <stdint.h>Go to the source code of this file.
Macros | |
| #define | TIME_CPU_CYCLE_RESET 1000u | 
| Duration in ms after which the CPU cycle count is reset and the result is stored.  More... | |
| #define | COUNT_IDLE_CYCLE idleCyclesCount++ | 
| Increment the idle cycles counter.  More... | |
Functions | |
| uint8_t | readCpuLoadPercent (void) | 
| Get the value of the CPU load.  More... | |
Variables | |
| volatile uint32_t | idleCyclesCount | 
| Access to idleCyclesCount needed by the COUNT_IDLE_CYCLE macro.  More... | |
| #define COUNT_IDLE_CYCLE idleCyclesCount++ | 
Increment the idle cycles counter.
Definition at line 26 of file cpu_load.h.
| #define TIME_CPU_CYCLE_RESET 1000u | 
Duration in ms after which the CPU cycle count is reset and the result is stored.
Definition at line 17 of file cpu_load.h.
| uint8_t readCpuLoadPercent | ( | void | ) | 
Get the value of the CPU load.
Definition at line 39 of file cpu_load.cpp.
      
  | 
  extern | 
Access to idleCyclesCount needed by the COUNT_IDLE_CYCLE macro.
Definition at line 22 of file cpu_load.cpp.