From c3b62eb53ace4d18851a5fb6edb572f260795581 Mon Sep 17 00:00:00 2001 From: rtel Date: Sun, 15 Dec 2013 10:17:02 +0000 Subject: [PATCH] Change the configCPU_CLOCK_HZ setting in the SAM4E demo to use the SystemCoreClock variable. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2133 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../RTOSDemo.atsuo | Bin 95232 -> 102400 bytes .../RTOSDemo.cproj | 9 +++------ .../src/config/FreeRTOSConfig.h | 4 +++- .../CORTEX_M4_ATSAM4E_Atmel_Studio/src/main.c | 2 +- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/RTOSDemo.atsuo b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/RTOSDemo.atsuo index b648c532d25fef28eaeeadbbd0c352ab292e3dff..864edf72d853a115a559f324f30b9004bc0ab91d 100644 GIT binary patch delta 3738 zcmcIn3s98T75>levMldiAc%mnAOR$ZKzJA)x*#!{AOb=v0`d?MpF!Lvz7iK3Q)5tJ z4{%jTMM$+KK7gON#2^pRCL%$giKdyv5Skh$W6YW`w9*86?gEx+JJZf|dS|}*<- z*SY7lx*;=NjlAAjYW9pE2>CcmItMZ^M(S>pM&s3lbixYUBAubirQTXX0bw0s5mrcV z+a`+DM_zf@15%>sO2u8WT_9gd{STwXQL_Y@%!>M${gN63WeU_NWw^sK97!Wj%)-=!J zoRJmDW*&Sy-cm_jykAFO6JhEHH>9GB4{D!RV1I+APP4`l?HkpYeaA($W#!GhB`kDd9N8>ZoY~3?{_h`$H7a4^Wy;Hn0R>ye2NW&Cvd=b0d3E{bu)U@ zW@1gKEsaBIY>yqD7qIZlC1||lV!=a1CSmF(URd3#K*u&czSUX?Q@V-LH_Oasl2|L( z0M;bTrp3Z(+&*#P`YW5UwxdZjb_N2=+W^&Ka6mASjDlqNhS$*ltz>xHq`&MSu*B>- zIqDlm@bGB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+|C?hCS3rT6JdvChf!N-1Lz;gz73i21 z3eniQN6teF?!KPc@I{+Ku@&SUBH z?Fi`5*XR!hbY>)ay(p_cQuPKni78VI%t&S%9PDsfp59+A7@4ep8PvJGS^hdRMEX}Y zT*l^SA)Bx0CH;>#l`N3Qb}mjEB-{OEfX=^+;%^f0L0zUC)Fm|aPjG+tLj@L|;0oJT z=7rxq)5+d1eaD(}#ESGfv)0BX>H$5r43Y2e!I4NF8SD1me2 zUJuFGV)dhdXz)260B00(r=T`1Ocvz^+tDChMS;M5O>Vj~J9$(T0yaf9(4!DAYjT*K z*C}!pb%l)z%yd}s(5^ll1cfejcd#hXye*o%xJEo9t`Iqk|}}nBIILUVGmkk0X1Be%M+QrA%x!T4@2Oz90=MGB|;nkVl6jp(vk|3L|_kw8RyzJqh`r>H*^>bV4>jCg3xs$*h$X%=BJ=7`w zn5qXtJk?jg6zW+4u`bgfu=!%yKGVK5@WI(TQ}Efku2i1RMIsNIUE9qt7aUfIKz~Og zEuI8P@Qd9RIkLHDh&^^lQ_${Qn1uz0(lGDsI9gK3);?V`9NxjFi^lQR06Mu0Mx*^$Pt^TEONK;tfr;O6 zuA)L150HiksG{z8^8O0ZC4 zDf}6m`)FTm;ok#=VK3{60^y5VZ0Qs5D_Im| compile + + compile + compile @@ -734,9 +737,6 @@ compile - - compile - compile @@ -1121,9 +1121,6 @@ compile - - compile - compile diff --git a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSConfig.h b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSConfig.h index d7696232e..5037a1187 100644 --- a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSConfig.h @@ -82,12 +82,14 @@ * See http://www.freertos.org/a00110.html. *----------------------------------------------------------*/ +extern uint32_t SystemCoreClock; + #define configUSE_PREEMPTION 1 #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1 #define configUSE_QUEUE_SETS 1 #define configUSE_IDLE_HOOK 0 #define configUSE_TICK_HOOK 1 -#define configCPU_CLOCK_HZ ( ( unsigned long ) CHIP_FREQ_CPU_MAX ) +#define configCPU_CLOCK_HZ ( SystemCoreClock ) #define configTICK_RATE_HZ ( 1000 ) #define configMAX_PRIORITIES ( 5 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 130 ) diff --git a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main.c b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main.c index e7df6cbdf..ff6f7a864 100644 --- a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main.c +++ b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main.c @@ -88,7 +88,7 @@ /* Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to one to run the simple blinky demo, or 0 to run the more comprehensive demo application that includes add-on components. */ -#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY 0 +#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY 1 /*-----------------------------------------------------------*/ -- 2.39.5