Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_mon.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2010 Gautier Hattenberger
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21  */
22 
29 #ifndef SYS_MON_H
30 #define SYS_MON_H
31 
32 #include "std.h"
33 
34 struct SysMon {
41 };
42 
43 extern struct SysMon sys_mon;
44 
47 void init_sysmon(void);
48 
51 void periodic_report_sysmon(void);
52 
56 void periodic_sysmon(void);
57 
60 void event_sysmon(void);
61 
62 #endif
uint8_t cpu_load
Definition: sys_mon.h:35
unsigned short uint16_t
Definition: types.h:16
uint16_t event_number
Definition: sys_mon.h:40
void periodic_report_sysmon(void)
Report system status.
Definition: sys_mon.c:70
uint16_t periodic_cycle_max
in usec
Definition: sys_mon.h:39
uint16_t periodic_cycle
in usec
Definition: sys_mon.h:37
void init_sysmon(void)
Init system monitoring.
Definition: sys_mon.c:45
uint16_t periodic_cycle_min
in usec
Definition: sys_mon.h:38
unsigned char uint8_t
Definition: types.h:14
struct SysMon sys_mon
Definition: sys_mon.c:31
void event_sysmon(void)
Analyse event calls.
Definition: sys_mon.c:111
void periodic_sysmon(void)
Analyse periodic calls Should be run at the highest frequency.
Definition: sys_mon.c:89
uint16_t periodic_time
in usec
Definition: sys_mon.h:36
Definition: sys_mon.h:34