diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.atsuo b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.atsuo
index b2cce4a678..d6467076a5 100644
Binary files a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.atsuo and b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.atsuo differ
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.cproj b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.cproj
index ec02a17b5f..9cc4c2e607 100644
--- a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.cproj
+++ b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/RTOSDemo.cproj
@@ -251,6 +251,9 @@
ARM_MATH_CM4=true
BOARD=SAM4S_EK
__SAM4S16C__
+ XMEGA=0
+ MEGA=0
+ UC3=0
@@ -271,17 +274,16 @@
../src/asf/thirdparty/CMSIS/Include
../src/asf/thirdparty/CMSIS/Lib/GCC
../src/config
- ../src/FreeRTOS-Source/include
- ../src/FreeRTOS-Source/portable/GCC/ARM_CM3
+ ../src/asf/thirdparty/FreeRTOS/include
+ ../src/asf/thirdparty/FreeRTOS/portable/GCC/ARM_CM3
../src/Common-Demo-Source/include
- Optimize (-O1)
-fdata-sections
True
Maximum (-g3)
True
- -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror-implicit-function-declaration -Wpointer-arith -std=gnu99 -ffunction-sections -fdata-sections -Wchar-subscripts -Wcomment -Wformat=2 -Wimplicit-int -Wmain -Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs -Wunused -Wuninitialized -Wunknown-pragmas -Wfloat-equal -Wundef -Wshadow -Wbad-function-cast -Wwrite-strings -Wsign-compare -Waggregate-return -Wmissing-declarations -Wformat -Wmissing-format-attribute -Wno-deprecated-declarations -Wpacked -Wredundant-decls -Wnested-externs -Winline -Wlong-long -Wunreachable-code -Wcast-align --param max-inline-insns-single=500 -Dprintf=iprintf
+ -pipe -Wall -Wextra -std=gnu99 -ffunction-sections -fdata-sections --param max-inline-insns-single=500 -Dprintf=iprintf
arm_cortexM4l_math
@@ -364,6 +366,60 @@
compile
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
+
+ compile
+
compile
@@ -427,37 +483,7 @@
compile
-
- compile
-
-
- compile
-
-
- compile
-
-
- compile
-
-
- compile
-
-
- compile
-
-
- compile
-
-
- compile
-
-
- compile
-
-
- compile
-
-
+
compile
@@ -783,15 +809,15 @@
+
+
+
+
+
+
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOSConfig.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOSConfig.h
index ff6deb110c..217b7bb8cb 100644
--- a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOSConfig.h
+++ b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOSConfig.h
@@ -73,7 +73,7 @@
* executed prior to this project being built. Once it has been executed
* remove the #error line below.
*/
-#error Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
+//#error Ensure CreateProjectDirectoryStructure.bat has been executed before building. See comment immediately above.
/*-----------------------------------------------------------
* Application specific definitions.
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/ParTest.c b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/ParTest.c
index 690cf3f6c6..b9e602a238 100644
--- a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/ParTest.c
+++ b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/ParTest.c
@@ -98,7 +98,7 @@ static const uint32_t ulLED[] = { LED2_GPIO, LED0_GPIO, LED1_GPIO };
void vParTestInitialise( void )
{
-long l;
+unsigned long ul;
for( l = 0; l < partestNUM_LEDS; l++ )
{
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/FreeRTOS.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/FreeRTOS.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/FreeRTOS.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/FreeRTOS.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/StackMacros.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/StackMacros.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/StackMacros.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/StackMacros.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/croutine.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/croutine.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/croutine.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/croutine.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/list.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/list.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/list.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/list.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/mpu_wrappers.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/mpu_wrappers.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/mpu_wrappers.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/mpu_wrappers.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/portable.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/portable.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/portable.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/portable.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/projdefs.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/projdefs.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/projdefs.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/projdefs.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/queue.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/queue.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/queue.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/queue.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/semphr.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/semphr.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/semphr.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/semphr.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/task.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/task.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/task.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/task.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/timers.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/timers.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/include/timers.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/include/timers.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/list.c b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/list.c
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/list.c
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/list.c
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/portable/GCC/ARM_CM3/port.c b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/portable/GCC/ARM_CM3/port.c
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/portable/GCC/ARM_CM3/port.c
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/portable/GCC/ARM_CM3/port.c
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/portable/GCC/ARM_CM3/portmacro.h b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/portable/GCC/ARM_CM3/portmacro.h
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/portable/GCC/ARM_CM3/portmacro.h
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/portable/GCC/ARM_CM3/portmacro.h
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/portable/MemMang/heap_2.c b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/portable/MemMang/heap_2.c
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/portable/MemMang/heap_2.c
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/portable/MemMang/heap_2.c
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/queue.c b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/queue.c
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/queue.c
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/queue.c
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/tasks.c b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/tasks.c
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/tasks.c
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/tasks.c
diff --git a/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/timers.c b/Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/timers.c
similarity index 100%
rename from Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/FreeRTOS/timers.c
rename to Demo/CORTEX_M4_ATSAM4S_AVR_Studio/src/asf/thirdparty/FreeRTOS/timers.c