Firmware
|
Print the current system load. More...
#include <px4_posix.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <systemlib/cpuload.h>
#include <systemlib/printload.h>
#include <drivers/drv_hrt.h>
Macros | |
#define | CL "\033[K" |
Functions | |
void | init_print_load_s (uint64_t t, struct print_load_s *s) |
void | print_load (uint64_t t, int fd, struct print_load_s *print_state) |
void | print_load_buffer (uint64_t t, char *buffer, int buffer_length, print_load_callback_f cb, void *user, struct print_load_s *print_state) |
Print load to a buffer, and call cb after each written line (buffer will not include ' ') | |
Variables | |
struct system_load_s | system_load |
Print the current system load.