]> git.sur5r.net Git - freertos/commitdiff
Run the peripheral clock at 48MHz. It was set to 96MHz which was too fast.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 10 Aug 2006 20:15:54 +0000 (20:15 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Thu, 10 Aug 2006 20:15:54 +0000 (20:15 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@21 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/ARM9_STR91X_IAR/FreeRTOSConfig.h
Demo/ARM9_STR91X_IAR/main.c

index c5aadadc5abf5546cced98757f87b3c64d897065..84ce2d673dff1015db45d1a66a51b2a5d9aa3dd1 100644 (file)
@@ -47,7 +47,7 @@
 #define configUSE_IDLE_HOOK                            0\r
 #define configUSE_TICK_HOOK                            0\r
 #define configCPU_CLOCK_HZ                             ( ( unsigned portLONG ) 96000000 )\r
-#define configCPU_PERIPH_HZ                            ( ( unsigned portLONG ) 96000000 )\r
+#define configCPU_PERIPH_HZ                            ( ( unsigned portLONG ) 48000000 )\r
 #define configTICK_RATE_HZ                             ( ( portTickType ) 1000 )\r
 #define configMAX_PRIORITIES                   ( ( unsigned portBASE_TYPE ) 5 )\r
 #define configMINIMAL_STACK_SIZE               ( ( unsigned portSHORT ) 180 )\r
index 1bdf0b2162e77f2e2b58dad641712a824efe68fa..2c7ab535d229b70cf03de4f5324393d22c7f786c 100644 (file)
@@ -228,7 +228,8 @@ static void prvSetupHardware( void )
        /* FMI Waite States */\r
        FMI_Config( FMI_READ_WAIT_STATE_2, FMI_WRITE_WAIT_STATE_0, FMI_PWD_ENABLE, FMI_LVD_ENABLE, FMI_FREQ_HIGH ); \r
 \r
-       /* Configure the FPLL = 96MHz */\r
+       /* Configure the FPLL = 96MHz, and APB to 48MHz. */\r
+       SCU_PCLKDivisorConfig( SCU_PCLK_Div2 );\r
        SCU_PLLFactorsConfig( 192, 25, 2 ); \r
        SCU_PLLCmd( ENABLE );\r
        SCU_MCLKSourceConfig( SCU_MCLK_PLL );\r