I use FreeRTOS source 7.1.0 with Frescale IDE codewarrior special Edition, so i dont have any operating system for this version. But i has opensource 7.1.0 that i add to my project. It s works correctly.
My device is MC9S12XEQ512
I have two timer one of them is used to generate tickcount for RTOS and the second is used to calculate CPU charge using vTaskGetRunTimeStats.
I set in FreeRtosConfig.h :
#define configGENERATE_RUN_TIME_STATS 1
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() Timer_GetRunTime_OnInterrupt()
#define portGET_RUN_TIME_COUNTER_VALUE () ulHighFrequencyTimerTicks
the Timer_GetRunTime_OnInterrupt is a Interrupt for my second timer :
#pragma CODE_SEG __NEAR_SEG NON_BANKED
PITTF = 0x04U; /* Reset interrupt request flag */
Timer_GetRunTime_OnInterrupt(); /* Invoke user event */
#pragma CODE_SEG Timer_GetRunTime_CODE
the event “Timer_GetRunTime_OnInterrupt()” is defined into events.c as follow :
/* Write your code here … */
when i compile the “task. c” i have some errors
Thank you for your help