aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2020-05-26 17:03:25 +0300
committerAvi Levkovich <avi@twine-s.com>2020-05-26 17:03:25 +0300
commitfd326204404ee0932ea465efcdd41e21fd7f2b49 (patch)
treeffb38ac74dc86490a8581539cba7094452cb6ed6 /Software/Embedded_SW/Embedded/Common
parentf0fc1abe6628c903d2e58dcd1b1a88ef43d45057 (diff)
parent7102ed21905bc52c6aee506e919992ce1f98f641 (diff)
downloadTango-fd326204404ee0932ea465efcdd41e21fd7f2b49.tar.gz
Tango-fd326204404ee0932ea465efcdd41e21fd7f2b49.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common')
-rw-r--r--Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c b/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c
index 86c030dc0..54e186b28 100644
--- a/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c
+++ b/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c
@@ -51,7 +51,7 @@ static uint32_t idle_counter;
static long next_interval; /*by ticks*/
static bool first_time_after_init;
static int system_load;
-static int load;
+static int Load;
static int max_system_load;
static int max_load;
static uint32_t idle_load_table[101];
@@ -188,14 +188,14 @@ uint32_t unload_max_count=0;
calculate_system_load(current_load);
old_idle_counter = idle_counter;
time_interval = next_interval;
- load=current_load;
+ Load=current_load;
prev_load = current_load / 10;
- idle_load_table[load]++;
- if(load > max_load) max_load = load;
- //REPORT_MSG(load,"Real time load");
+ idle_load_table[Load]++;
+ if(Load > max_load) max_load = Load;
+ //REPORT_MSG(Load,"Real time load");
#ifdef DEBUG
- printf("c_ld=%d\n",load);
+ printf("c_ld=%d\n",Load);
#endif
}
}
@@ -239,7 +239,7 @@ static uint32_t number_of_load_samples;
first_time_after_init = FALSE;
system_load = current_load;
max_system_load = system_load;
- max_load = load;
+ max_load = Load;
number_of_load_samples = 1;
sum_of_previous_load = current_load;
}
@@ -299,7 +299,7 @@ extern int IDLE_TASK_get_load(void)
/***********************************************************/
extern int IDLE_TASK_get_current_load(void)
{
- return load;
+ return Load;
}
/***********************************************************/
@@ -320,7 +320,7 @@ extern int IDLE_TASK_get_load(void)
/***********************************************************/
/*export MN_uint32_t mn_get_curent_load(char *pParams)
{
- MN_printf("\n\rload=%d,max load=%d", load, max_load);
+ MN_printf("\n\rload=%d,max Load=%d", Load, max_load);
return(RET_OK);
}
*/