]> git.sur5r.net Git - freertos/blobdiff - Demo/PC/main.c
Link the sUsingPreemption variable to the constant configUSE_PREEMPTION.
[freertos] / Demo / PC / main.c
index 59c44e8a6a208ca8f894d5ae90b0d030fcf18cbf..1b5f927d5aae58917b3700690ffaa434ad3f9efe 100644 (file)
@@ -1,24 +1,24 @@
 /*\r
-       FreeRTOS V4.0.1 - Copyright (C) 2003-2006 Richard Barry.\r
+       FreeRTOS.org V4.0.4 - Copyright (C) 2003-2006 Richard Barry.\r
 \r
-       This file is part of the FreeRTOS distribution.\r
+       This file is part of the FreeRTOS.org distribution.\r
 \r
-       FreeRTOS is free software; you can redistribute it and/or modify\r
+       FreeRTOS.org is free software; you can redistribute it and/or modify\r
        it under the terms of the GNU General Public License as published by\r
        the Free Software Foundation; either version 2 of the License, or\r
        (at your option) any later version.\r
 \r
-       FreeRTOS is distributed in the hope that it will be useful,\r
+       FreeRTOS.org is distributed in the hope that it will be useful,\r
        but WITHOUT ANY WARRANTY; without even the implied warranty of\r
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
        GNU General Public License for more details.\r
 \r
        You should have received a copy of the GNU General Public License\r
-       along with FreeRTOS; if not, write to the Free Software\r
+       along with FreeRTOS.org; if not, write to the Free Software\r
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
 \r
        A special exception to the GPL can be applied should you wish to distribute\r
-       a combined work that includes FreeRTOS, without being obliged to provide\r
+       a combined work that includes FreeRTOS.org, without being obliged to provide\r
        the source code for any proprietary components.  See the licensing section \r
        of http://www.FreeRTOS.org for full details of how and when the exception\r
        can be applied.\r
@@ -149,7 +149,7 @@ being used. */
 #endif\r
 \r
 /* Constant definition used to turn on/off the pre-emptive scheduler. */\r
-static const portSHORT sUsingPreemption = pdTRUE;\r
+static const portSHORT sUsingPreemption = configUSE_PREEMPTION;\r
 \r
 /* Start the math tasks appropriate to the build.  The Borland port does\r
 not yet support floating point so uses the integer equivalent. */\r