aboutsummaryrefslogtreecommitdiffstats
path: root/src/glutt-o-logique
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-14 20:44:22 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-14 20:45:04 +0200
commitb9da01524a915c5a97027ab38b3026d32e2764c7 (patch)
treee389dde377ec82bed22d9508d5c17a8b95f4c15e /src/glutt-o-logique
parenteab1a72287410908349edca76702faed7ac0e348 (diff)
downloadglutte-o-matic-b9da01524a915c5a97027ab38b3026d32e2764c7.tar.gz
glutte-o-matic-b9da01524a915c5a97027ab38b3026d32e2764c7.tar.bz2
glutte-o-matic-b9da01524a915c5a97027ab38b3026d32e2764c7.zip
Add task cpu usage printout code, disabled by default
Diffstat (limited to 'src/glutt-o-logique')
-rw-r--r--src/glutt-o-logique/FreeRTOSConfig.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glutt-o-logique/FreeRTOSConfig.h b/src/glutt-o-logique/FreeRTOSConfig.h
index a6ff6f3..5a799e9 100644
--- a/src/glutt-o-logique/FreeRTOSConfig.h
+++ b/src/glutt-o-logique/FreeRTOSConfig.h
@@ -1,3 +1,13 @@
#include "../common/src/Core/FreeRTOSConfig.h"
#define configCHECK_FOR_STACK_OVERFLOW 2 // Default: 2
+
+#if defined(configGENERATE_RUN_TIME_STATS)
+#undef configGENERATE_RUN_TIME_STATS
+#endif
+#define configGENERATE_RUN_TIME_STATS 0
+
+#if configGENERATE_RUN_TIME_STATS
+#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()
+#define portGET_RUN_TIME_COUNTER_VALUE() vGetTimerForRunTimeStats()
+#endif