From b9da01524a915c5a97027ab38b3026d32e2764c7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 14 Apr 2019 20:44:22 +0200 Subject: Add task cpu usage printout code, disabled by default --- src/glutt-o-logique/FreeRTOSConfig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/glutt-o-logique') 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 -- cgit v1.2.3