From 1ad65e071828aa0593f42190d1bea925f9d376b0 Mon Sep 17 00:00:00 2001 From: Corvus Corax Date: Sat, 20 Aug 2011 15:04:00 +0200 Subject: [PATCH] Fixed include in sysstemmod. pios_config.h should not be included explicitly. --- flight/Modules/System/systemmod.c | 3 ++- flight/OpenPilot/System/inc/pios_config_posix.h | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/flight/Modules/System/systemmod.c b/flight/Modules/System/systemmod.c index 73c669acc..890fe3c31 100644 --- a/flight/Modules/System/systemmod.c +++ b/flight/Modules/System/systemmod.c @@ -49,7 +49,8 @@ #include "hwsettings.h" #include "watchdogstatus.h" #include "taskmonitor.h" -#include "pios_config.h" +//#include "pios_config.h" must not be included directly! - named differently on some platforms! +#include "pios.h" // Private constants diff --git a/flight/OpenPilot/System/inc/pios_config_posix.h b/flight/OpenPilot/System/inc/pios_config_posix.h index e8701be90..ce68a07b9 100644 --- a/flight/OpenPilot/System/inc/pios_config_posix.h +++ b/flight/OpenPilot/System/inc/pios_config_posix.h @@ -59,6 +59,14 @@ #define TELEM_QUEUE_SIZE 20 #define PIOS_TELEM_STACK_SIZE 2048 +/* Alarm Thresholds */ +#define HEAP_LIMIT_WARNING 4000 +#define HEAP_LIMIT_CRITICAL 1000 +#define IRQSTACK_LIMIT_WARNING 150 +#define IRQSTACK_LIMIT_CRITICAL 80 +#define CPULOAD_LIMIT_WARNING 80 +#define CPULOAD_LIMIT_CRITICAL 95 + /* Stabilization options */ #define PIOS_QUATERNION_STABILIZATION