diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-05-15 13:00:27 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-05-15 13:00:27 +0300 |
| commit | 3f6ff04da7c8c3fb2d41ee0d5f355d9bd449492a (patch) | |
| tree | 1e6eff8754e6505dba23ccb3f843b2306fa5ac5c /Software/Embedded_SW/Embedded/Common/Utilities | |
| parent | b02af867ffd45e22dfadc083f0fe6b1f57cb139c (diff) | |
| download | Tango-3f6ff04da7c8c3fb2d41ee0d5f355d9bd449492a.tar.gz Tango-3f6ff04da7c8c3fb2d41ee0d5f355d9bd449492a.zip | |
FPGA beautifying. some control improvements
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/Utilities')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c b/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c index 5f792e73d..7bd8274b4 100644 --- a/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c +++ b/Software/Embedded_SW/Embedded/Common/Utilities/idle_task.c @@ -24,6 +24,8 @@ #include <xdc/runtime/Error.h> #include <xdc/runtime/System.h> +#include "Modules/Control/Control.h" +#include "Modules/Control/MillisecTask.h" #define MAX_PRIORITY 10 #define SECOND_MAX_PRIORITY 9 #define MIN_PRIORITY 0 @@ -198,7 +200,17 @@ uint32_t unload_max_count=0; #endif } } - + uint32_t MillisecCounter = 0; + uint32_t ControlCounter = 0; + Void mySwitchFxn(Task_Handle from, Task_Handle to) + { + if (to == Control_Task_Handle) + ControlCounter++; + if (to == Millisecond_Task_Handle) + MillisecCounter++; + //idle_counter + // System_printf("mySwitchFxn: from = 0x%x, to = 0x%x", from, to); + } /********************************************************** Name : calculate_system_load |
