Change the configCPU_CLOCK_HZ setting in the SAM4E demo to use the SystemCoreClock variable.

This commit is contained in:
Richard Barry 2013-12-15 10:17:02 +00:00
parent a320d6dffd
commit 040a7c02df
4 changed files with 7 additions and 8 deletions

View File

@ -636,6 +636,9 @@
<None Include="src\config\conf_ili93xx.h">
<SubType>compile</SubType>
</None>
<Compile Include="src\config\FreeRTOSIPConfig.h">
<SubType>compile</SubType>
</Compile>
<Compile Include="src\FreeRTOS+\FreeRTOS+FAT SL\API\fat_sl.h">
<SubType>compile</SubType>
</Compile>
@ -734,9 +737,6 @@
<Compile Include="src\config\FreeRTOSConfig.h">
<SubType>compile</SubType>
</Compile>
<Compile Include="src\config\FreeRTOSIPConfig.h">
<SubType>compile</SubType>
</Compile>
<Compile Include="src\main.c">
<SubType>compile</SubType>
</Compile>
@ -1121,9 +1121,6 @@
<None Include="src\ASF\thirdparty\CMSIS\Include\core_cmInstr.h">
<SubType>compile</SubType>
</None>
<None Include="src\ASF\thirdparty\CMSIS\Lib\GCC\libarm_cortexM4lf_math.a">
<SubType>compile</SubType>
</None>
<None Include="src\ASF\thirdparty\CMSIS\README.txt">
<SubType>compile</SubType>
</None>

View File

@ -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 )

View File

@ -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
/*-----------------------------------------------------------*/