~aleteoryx/muditaos

2b313398f026419ddc9e795974bcb7691144731b — Maciej Gibowicz 5 years ago 8f8a1b3
[EGD-6344] Fix SystemView compilation

Add necessary FreeRTOS configurations to run SystemView
1 files changed, 8 insertions(+), 2 deletions(-)

M module-os/systemviewPatch/FreeRTOSConfig.h
M module-os/systemviewPatch/FreeRTOSConfig.h => module-os/systemviewPatch/FreeRTOSConfig.h +8 -2
@@ 37,6 37,7 @@
 *
 * See http://www.freertos.org/a00110.html.
 *----------------------------------------------------------*/
#include <assert.h>
#include <stdint.h>
#include "log/log.hpp"



@@ 86,7 87,7 @@ extern uint32_t SystemCoreClock;
#define configUSE_DAEMON_TASK_STARTUP_HOOK      0

/* Run time and task stats gathering related definitions. */
#define configGENERATE_RUN_TIME_STATS           0
#define configGENERATE_RUN_TIME_STATS           1
#define configUSE_TRACE_FACILITY                1
#define configUSE_STATS_FORMATTING_FUNCTIONS    1
#define configRECORD_STACK_HIGH_ADDRESS		    1


@@ 116,7 117,7 @@ extern uint32_t SystemCoreClock;
#define INCLUDE_xTaskGetCurrentTaskHandle       1
#define INCLUDE_uxTaskGetStackHighWaterMark     1
#define INCLUDE_uxTaskGetStackHighWaterMark2    1
#define INCLUDE_xTaskGetIdleTaskHandle          0
#define INCLUDE_xTaskGetIdleTaskHandle          1
#define INCLUDE_eTaskGetState                   0
#define INCLUDE_xTimerPendFunctionCall          1
#define INCLUDE_xTaskAbortDelay                 0


@@ 166,4 167,9 @@ standard names. */
#include "../module-utils/segger/systemview/FreeRTOSV10/SEGGER_SYSVIEW_FreeRTOS.h"
#endif


extern uint32_t ulHighFrequencyTimerTicks(void);
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vConfigureTimerForRunTimeStats()
#define portGET_RUN_TIME_COUNTER_VALUE() ulHighFrequencyTimerTicks()

#endif /* FREERTOS_CONFIG_H */