/*\r
- FreeRTOS V7.5.3 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V8.0.0:rc1 - Copyright (C) 2014 Real Time Engineers Ltd.\r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
* defined and/or created within this file:\r
*\r
* "Check" task - This only executes every five seconds but has the highest\r
- * priority so is guaranteed to get processor time. Its main function is to \r
+ * priority so is guaranteed to get processor time. Its main function is to\r
* check that all the standard demo tasks are still operational. The check task\r
* will toggle LED 3 (PB11) every five seconds so long as no errors have been\r
- * detected. The toggle rate will increase to half a second if an error has \r
+ * detected. The toggle rate will increase to half a second if an error has\r
* been found in any task.\r
*\r
- * "Echo" task - This is a very basic task that simply echoes any characters \r
+ * "Echo" task - This is a very basic task that simply echoes any characters\r
* received on COM0 (USART1). This can be tested by transmitting a text file\r
* from a dumb terminal to the STM32 USART then observing or capturing the text\r
- * that is echoed back. Missing characters will be all the more obvious if the \r
+ * that is echoed back. Missing characters will be all the more obvious if the\r
* file contains a simple repeating string of fixed width.\r
*\r
- * Currently this demo does not include interrupt nesting examples. High \r
+ * Currently this demo does not include interrupt nesting examples. High\r
* frequency timer and simpler nesting examples can be found in most Cortex-M3\r
* demo applications.\r
*\r
- * The functions used to initialise, set and clear LED outputs are normally \r
- * defined in partest.c. This demo includes two partest files, one that is \r
- * configured for use with the Keil MCBSTM32 evaluation board (called \r
+ * The functions used to initialise, set and clear LED outputs are normally\r
+ * defined in partest.c. This demo includes two partest files, one that is\r
+ * configured for use with the Keil MCBSTM32 evaluation board (called\r
* ParTest_MCBSTM32.c) and one that is configured for use with the official\r
* ST Eval board (called ParTest_ST_Eval.c). One one of these files should be\r
- * included in the build at any one time, as appropriate for the hardware \r
+ * included in the build at any one time, as appropriate for the hardware\r
* actually being used.\r
*/\r
\r
/* The 'check' task as described at the top of this file. */\r
static void prvCheckTask( void *pvParameters );\r
\r
-/* A simple task that echoes all the characters that are received on COM0 \r
+/* A simple task that echoes all the characters that are received on COM0\r
(USART1). */\r
static void prvUSARTEchoTask( void *pvParameters );\r
\r
vStartRecursiveMutexTasks();\r
\r
/* Create the 'echo' task, which is also defined within this file. */\r
- xTaskCreate( prvUSARTEchoTask, ( signed char * ) "Echo", configMINIMAL_STACK_SIZE, NULL, mainECHO_TASK_PRIORITY, NULL );\r
+ xTaskCreate( prvUSARTEchoTask, "Echo", configMINIMAL_STACK_SIZE, NULL, mainECHO_TASK_PRIORITY, NULL );\r
\r
/* Create the 'check' task, which is also defined within this file. */\r
- xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+ xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
\r
/* Start the scheduler. */\r
vTaskStartScheduler();\r
\r
/* String declared static to ensure it does not end up on the stack, no matter\r
what the optimisation level. */\r
-static const char *pcLongishString = \r
+static const char *pcLongishString =\r
"ABBA was a Swedish pop music group formed in Stockholm in 1972, consisting of Anni-Frid Frida Lyngstad, "\r
"Björn Ulvaeus, Benny Andersson and Agnetha Fältskog. Throughout the band's existence, Fältskog and Ulvaeus "\r
"were a married couple, as were Lyngstad and Andersson - although both couples later divorced. They became one "\r
static void prvSetupHardware( void )\r
{\r
/* RCC system reset(for debug purpose). */\r
- RCC_DeInit (); \r
+ RCC_DeInit ();\r
\r
/* Enable HSE. */\r
- RCC_HSEConfig( RCC_HSE_ON ); \r
- \r
+ RCC_HSEConfig( RCC_HSE_ON );\r
+\r
/* Wait till HSE is ready. */\r
while (RCC_GetFlagStatus(RCC_FLAG_HSERDY) == RESET);\r
- \r
+\r
/* HCLK = SYSCLK. */\r
- RCC_HCLKConfig( RCC_SYSCLK_Div1 ); \r
+ RCC_HCLKConfig( RCC_SYSCLK_Div1 );\r
\r
/* PCLK2 = HCLK. */\r
- RCC_PCLK2Config( RCC_HCLK_Div1 ); \r
+ RCC_PCLK2Config( RCC_HCLK_Div1 );\r
\r
/* PCLK1 = HCLK/2. */\r
- RCC_PCLK1Config( RCC_HCLK_Div2 ); \r
+ RCC_PCLK1Config( RCC_HCLK_Div2 );\r
\r
/* ADCCLK = PCLK2/4. */\r
- RCC_ADCCLKConfig( RCC_PCLK2_Div4 ); \r
- \r
+ RCC_ADCCLKConfig( RCC_PCLK2_Div4 );\r
+\r
/* Flash 2 wait state. */\r
- *( volatile unsigned long * )0x40022000 = 0x01; \r
- \r
+ *( volatile unsigned long * )0x40022000 = 0x01;\r
+\r
/* PLLCLK = 8MHz * 9 = 72 MHz */\r
RCC_PLLConfig( RCC_PLLSource_HSE_Div1, RCC_PLLMul_9 );\r
- \r
+\r
/* Enable PLL. */\r
RCC_PLLCmd( ENABLE );\r
- \r
+\r
/* Wait till PLL is ready. */\r
while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET);\r
- \r
+\r
/* Select PLL as system clock source. */\r
RCC_SYSCLKConfig (RCC_SYSCLKSource_PLLCLK);\r
- \r
+\r
/* Wait till PLL is used as system clock source. */\r
while (RCC_GetSYSCLKSource() != 0x08);\r
\r
}\r
/*-----------------------------------------------------------*/\r
\r
-void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName )\r
+void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )\r
{\r
/* This function will get called if a task overflows its stack. If the\r
parameters are corrupt then inspect pxCurrentTCB to find which was the\r