]> git.sur5r.net Git - freertos/blobdiff - Demo/MSP430X_MSP430F5438_IAR/ParTest.c
Tidy up the IAR MSP430X demo serial.c file.
[freertos] / Demo / MSP430X_MSP430F5438_IAR / ParTest.c
index 477ff9836d59c6055e19fd7b419cce4ea985f259..9c57ac6be587732fe48a03cfc71dc374372b2c52 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V6.1.0 - Copyright (C) 2010 Real Time Engineers Ltd.\r
+    FreeRTOS V6.1.1 - Copyright (C) 2011 Real Time Engineers Ltd.\r
 \r
     ***************************************************************************\r
     *                                                                         *\r
@@ -74,6 +74,7 @@ void vParTestInitialise( void )
 \r
 void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )\r
 {\r
+       /* Only two LEDs are provided on the hardware. */\r
        taskENTER_CRITICAL();\r
        {\r
                if( xValue != pdFALSE )\r
@@ -85,6 +86,9 @@ void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
        \r
                                case 1: LED_PORT_OUT |= LED_2;\r
                                                break;\r
+                                               \r
+                               default: /* Nothing to do here, there are only two LEDs. */\r
+                                               break;\r
                        }\r
                }\r
                else\r
@@ -96,6 +100,8 @@ void vParTestSetLED( unsigned portBASE_TYPE uxLED, signed portBASE_TYPE xValue )
        \r
                                case 1: LED_PORT_OUT &= ~LED_2;\r
                                                break;\r
+                               default: /* Nothing to do here, there are only two LEDs. */\r
+                                               break;\r
                        }\r
                }\r
        }\r
@@ -128,6 +134,8 @@ void vParTestToggleLED( unsigned portBASE_TYPE uxLED )
                                                LED_PORT_OUT &= ~LED_2;\r
                                        }\r
                                        break;\r
+                       default: /* Nothing to do here, there are only two LEDs. */\r
+                                       break;\r
                }\r
        }\r
        taskEXIT_CRITICAL();\r