]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_MB9A310_IAR_Keil/main_blinky.c
Change version numbers ready for V8.0.0 release candidate 1 tag.
[freertos] / FreeRTOS / Demo / CORTEX_MB9A310_IAR_Keil / main_blinky.c
index a04d46c1798e85356677d18bae59dbc7dc51d7ad..79fcaa791bc02c56327c9192d4b313cb7cf7ed3c 100644 (file)
@@ -1,5 +1,6 @@
 /*\r
-    FreeRTOS V7.5.1 - 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
 \r
@@ -174,7 +175,7 @@ int main(void)
 {\r
        /* Configure the NVIC, LED outputs and button inputs. */\r
        prvSetupHardware();\r
-       \r
+\r
        /* Create the queue. */\r
        xQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( unsigned long ) );\r
 \r
@@ -182,17 +183,17 @@ int main(void)
        {\r
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
-               xTaskCreate( prvQueueReceiveTask, ( signed char * ) "Rx", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueReceiveTask, "Rx", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Create the software timer that is responsible for turning off the LED\r
                if the button is not pushed within 5000ms, as described at the top of\r
                this file. */\r
-               xLEDTimer = xTimerCreate(       ( const signed char * ) "LEDTimer", /* A text name, purely to help debugging. */\r
-                                                                       ( 5000 / portTICK_RATE_MS ),            /* The timer period, in this case 5000ms (5s). */\r
-                                                                       pdFALSE,                                                        /* This is a one shot timer, so xAutoReload is set to pdFALSE. */\r
-                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                       vLEDTimerCallback                                       /* The callback function that switches the LED off. */\r
+               xLEDTimer = xTimerCreate(       "LEDTimer",                                     /* A text name, purely to help debugging. */\r
+                                                                       ( 5000 / portTICK_RATE_MS ),    /* The timer period, in this case 5000ms (5s). */\r
+                                                                       pdFALSE,                                                /* This is a one shot timer, so xAutoReload is set to pdFALSE. */\r
+                                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       vLEDTimerCallback                               /* The callback function that switches the LED off. */\r
                                                                );\r
 \r
                /* Start the tasks and timer running. */\r
@@ -310,14 +311,14 @@ const unsigned short usButtonInputBit = 0x01U;
 \r
        SystemInit();\r
        SystemCoreClockUpdate();\r
-       \r
+\r
        /* Analog inputs are not used on the LED outputs. */\r
        FM3_GPIO->ADE  = 0x0000;\r
-       \r
+\r
        /* Set to output. */\r
        FM3_GPIO->DDR1 |= 0xFFFF;\r
        FM3_GPIO->DDR3 |= 0xFFFF;\r
-       \r
+\r
        /* Set as GPIO. */\r
        FM3_GPIO->PFR1 &= 0x0000;\r
        FM3_GPIO->PFR3 &= 0x0000;\r
@@ -325,14 +326,14 @@ const unsigned short usButtonInputBit = 0x01U;
        /* Start with all LEDs off. */\r
        FM3_GPIO->PDOR3 = 0xFFFF;\r
        FM3_GPIO->PDOR1 = 0xFFFF;\r
-       \r
+\r
        /* Set the switches to input (P18->P1F). */\r
        FM3_GPIO->DDR5 = 0x0000;\r
        FM3_GPIO->PFR5 = 0x0000;\r
 \r
        /* Assign the button input as GPIO. */\r
        FM3_GPIO->PFR5 |= usButtonInputBit;\r
-       \r
+\r
        /* Button interrupt on falling edge. */\r
        FM3_EXTI->ELVR  = 0x0003;\r
 \r
@@ -341,7 +342,7 @@ const unsigned short usButtonInputBit = 0x01U;
 \r
        /* Enable the button interrupt. */\r
        FM3_EXTI->ENIR |= usButtonInputBit;\r
-       \r
+\r
        /* Setup the GPIO and the NVIC for the switch used in this simple demo. */\r
        NVIC_SetPriority( EXINT0_7_IRQn, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );\r
     NVIC_EnableIRQ( EXINT0_7_IRQn );\r
@@ -359,7 +360,7 @@ void vApplicationMallocFailedHook( void )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName )\r
+void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )\r
 {\r
        ( void ) pcTaskName;\r
        ( void ) pxTask;\r