]> git.sur5r.net Git - freertos/blobdiff - Demo/CORTEX_A2F200_IAR_and_Keil/FreeRTOSConfig.h
Continue work on the IAR Microsemi Smartfusion demo. Still a work in progress.
[freertos] / Demo / CORTEX_A2F200_IAR_and_Keil / FreeRTOSConfig.h
index de8dac3d1353a44f968eb6562e675dd0f3538597..1afb6e2483f0f919d61196f35a6205c7248bf8fa 100644 (file)
 #ifndef FREERTOS_CONFIG_H\r
 #define FREERTOS_CONFIG_H\r
 \r
+/* Use a guard to ensure the following few definitions are'nt included in\r
+assembly files that include this header file. */\r
 #ifdef __ICCARM__\r
        #include <stdint.h>\r
        #include <stddef.h>\r
        extern uint32_t SystemFrequency;\r
+       void vMainConfigureTimerForRunTimeStats( void );\r
+       unsigned long ulGetRunTimeCounterValue( void );\r
 #endif\r
 \r
 /*-----------------------------------------------------------\r
 #define configIDLE_SHOULD_YIELD                        1\r
 #define configUSE_MUTEXES                              1\r
 #define configQUEUE_REGISTRY_SIZE              0\r
-#define configGENERATE_RUN_TIME_STATS  0\r
+#define configGENERATE_RUN_TIME_STATS  1\r
 #define configCHECK_FOR_STACK_OVERFLOW 2\r
 #define configUSE_RECURSIVE_MUTEXES            1\r
 #define configUSE_MALLOC_FAILED_HOOK   1\r
@@ -129,6 +133,9 @@ to exclude the API function. */
 #define INCLUDE_vTaskDelayUntil                        1\r
 #define INCLUDE_vTaskDelay                             1\r
 \r
+#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vMainConfigureTimerForRunTimeStats()\r
+#define portGET_RUN_TIME_COUNTER_VALUE() ulGetRunTimeCounterValue()\r
+\r
 /* Use the system definition, if there is one */\r
 #ifdef __NVIC_PRIO_BITS\r
        #define configPRIO_BITS       __NVIC_PRIO_BITS\r