Minor change to SAM4L_low_power_tick_management.c to ensure the alarm value cannot be set to zero.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2120 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
STM32L discovery demo is now demonstrating three low power modes - still needs clean up.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2121 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Remove duplication of comments at the top of the file.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2122 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Tidy up STM32L low power demo and add 'comprehensive demo' option.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2123 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Remove unused files from STM32L discovery board demo directory structure and build.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2124 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Remove [unused] touch library files from the STM32L discovery demo.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2125 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Complete STM32L low power demo.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2126 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Comment typo correction only.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2127 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Add trace macros into the event groups implementation.
Add a task pre-delete hook to allow the insertion of any port specific clean up when a task is deleted.
Increase use of 'const' qualifiers.
Add vPortCloseRunningThread() into the Win32 port layer to attempt to allow Windows threads to be closed more gracefully when a task deletes itself.





git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2128 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Update Cortex-M3 and Cortex-M4F ports to allow the SysTick to be clocked at a different speed than the system clock (as is done in the recent STM32L demo. ).
Add additional asserts and isb instructions into the Cortex-M3 and Cortex-M4F ports.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2129 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Change the way one thread deletes another in the Windows simulator port (the way one thread deleted itself was already changed in a previous check-in).
Reset the expected block time variable when a task is suspended or deleted in case the value held in the variables was associated with the task just suspended or deleted.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2130 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Introduce prvResetNextTaskUnblockTime() to encapsulate functionality from various places in the code into a single function.


git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2131 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Update the ucQueueNumber member of the queue structure (used with FreeRTOS+Trace to be an unsigned portBASE_TYPE instead of an unsigned char.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2132 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Change the configCPU_CLOCK_HZ setting in the SAM4E demo to use the SystemCoreClock variable.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2133 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Force the SysTick clock bit to be set in Cortex-M3 and Cortex-M4F bits if configSYSTICK_CLOCK_HZ is not defined, otherwise leave the bit as it is found as the SysTick may use a divided clock.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2134 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Update GCC/Eclipse Win32 simulator port to make better use of Eclipse resource filters and match the functionality of the MSVC equivalent.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2135 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Change some task priorities in the MingW simulator demo.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2136 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
In process of module testing event_groups.c.
Introduce xPortRunning variable into Win32 simulator port layer.
Add port optimised task selection macro for the GCC Win32 port layer (the MSVC version has had one for a while).
Ensure the event list item value does not get modified by code in tasks.c (priority inheritance, or priority change) when it is in use by the event group implementation.


git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2137 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Add coverage test markers.

git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2138 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Move the event groups single tasks test out of the common demo file (they are now part of the module tests).


git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2139 1d2547de-c912-0410-9cb9-b8ca96c0e9e2