From db03caa0d162bb8e16a58e9ac959c92d9f413ec7 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Mon, 25 Apr 2011 14:48:15 +0000 Subject: [PATCH] Continue work on the IAR Microsemi Smartfusion demo. Still a work in progress. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1390 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../FreeRTOSConfig.h | 9 +- .../RTOSDemo_IAR.ewp | 3 +- .../WebServer/httpd-cgi.c | 15 +- Demo/CORTEX_A2F200_IAR_and_Keil/main-full.c | 150 ++++++++++++------ 4 files changed, 109 insertions(+), 68 deletions(-) diff --git a/Demo/CORTEX_A2F200_IAR_and_Keil/FreeRTOSConfig.h b/Demo/CORTEX_A2F200_IAR_and_Keil/FreeRTOSConfig.h index de8dac3d1..1afb6e248 100644 --- a/Demo/CORTEX_A2F200_IAR_and_Keil/FreeRTOSConfig.h +++ b/Demo/CORTEX_A2F200_IAR_and_Keil/FreeRTOSConfig.h @@ -69,10 +69,14 @@ #ifndef FREERTOS_CONFIG_H #define FREERTOS_CONFIG_H +/* Use a guard to ensure the following few definitions are'nt included in +assembly files that include this header file. */ #ifdef __ICCARM__ #include #include extern uint32_t SystemFrequency; + void vMainConfigureTimerForRunTimeStats( void ); + unsigned long ulGetRunTimeCounterValue( void ); #endif /*----------------------------------------------------------- @@ -102,7 +106,7 @@ #define configIDLE_SHOULD_YIELD 1 #define configUSE_MUTEXES 1 #define configQUEUE_REGISTRY_SIZE 0 -#define configGENERATE_RUN_TIME_STATS 0 +#define configGENERATE_RUN_TIME_STATS 1 #define configCHECK_FOR_STACK_OVERFLOW 2 #define configUSE_RECURSIVE_MUTEXES 1 #define configUSE_MALLOC_FAILED_HOOK 1 @@ -129,6 +133,9 @@ to exclude the API function. */ #define INCLUDE_vTaskDelayUntil 1 #define INCLUDE_vTaskDelay 1 +#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() vMainConfigureTimerForRunTimeStats() +#define portGET_RUN_TIME_COUNTER_VALUE() ulGetRunTimeCounterValue() + /* Use the system definition, if there is one */ #ifdef __NVIC_PRIO_BITS #define configPRIO_BITS __NVIC_PRIO_BITS diff --git a/Demo/CORTEX_A2F200_IAR_and_Keil/RTOSDemo_IAR.ewp b/Demo/CORTEX_A2F200_IAR_and_Keil/RTOSDemo_IAR.ewp index 94dd369a3..a0e516dd6 100644 --- a/Demo/CORTEX_A2F200_IAR_and_Keil/RTOSDemo_IAR.ewp +++ b/Demo/CORTEX_A2F200_IAR_and_Keil/RTOSDemo_IAR.ewp @@ -1047,7 +1047,7 @@