[SOLVED] redundant definitions in FreeRTOS.h and SEGGER_SYSVIEW_FreeRTOS.h

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] redundant definitions in FreeRTOS.h and SEGGER_SYSVIEW_FreeRTOS.h

    Dear all,

    it might be related to my project structure but I run into a large number of redundant definitions after I updated to FreeRTOS 11.0.1 and SysView 3.54. I realized that many definitions set in FreeRTOS.h are duplicated in SEGGER_SYSVIEW_FreeRTOS.h. It's all these traceXXX macros that are affected.
    The issue shows up when I complile SEGGER_SYSVIEW_FreeRTOS.c. This source file includes both header files at the beginning and therefore causes the warnings about reduandant definitions.

    #include "FreeRTOS.h"
    #include "task.h"
    #include "SEGGER_SYSVIEW.h"
    #include "SEGGER_SYSVIEW_FreeRTOS.h"
    #include "string.h" // Required for memset

    To comment out one of the header files doesn't work because task.h requires FreeRTOS.h to be included and commenting out both will lead to an error because portTICK_PERIOD_MS is not defined (used in _cbGetTime() ).

    I can live with the issue for the moment. However, getting about 190 warnings is not a very nice thing. Did I make a mistake in setting up my project or is this a known issue?

    Best Regards