]> git.sur5r.net Git - freertos/commitdiff
Start to remove unnecessary 'signed char *' casts from strings that are now just...
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 27 Dec 2013 14:43:48 +0000 (14:43 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 27 Dec 2013 14:43:48 +0000 (14:43 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2143 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

261 files changed:
FreeRTOS/Demo/ARM7_AT91FR40008_GCC/main.c
FreeRTOS/Demo/ARM7_AT91SAM7X256_Eclipse/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/ARM7_LPC2106_GCC/main.c
FreeRTOS/Demo/ARM7_LPC2138_Rowley/main.c
FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/main.c
FreeRTOS/Demo/ARM7_LPC2368_Eclipse/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/ARM7_LPC2368_Rowley/main.c
FreeRTOS/Demo/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c
FreeRTOS/Demo/ARM7_STR75x_GCC/main.c
FreeRTOS/Demo/ARM7_STR75x_IAR/main.c
FreeRTOS/Demo/ARM9_STR91X_IAR/lwip/api/sys_arch.c
FreeRTOS/Demo/ARM9_STR91X_IAR/lwip/netif/ethernetif.c
FreeRTOS/Demo/ARM9_STR91X_IAR/webserver/httpd-cgi.c
FreeRTOS/Demo/AVR32_UC3/main.c
FreeRTOS/Demo/AVR_ATMega323_WinAVR/main.c
FreeRTOS/Demo/AVR_ATMega323_WinAVR/regtest.c
FreeRTOS/Demo/CORTEX_A2F200_IAR_and_Keil/WebServer/httpd-cgi.c
FreeRTOS/Demo/CORTEX_A2F200_IAR_and_Keil/main-blinky.c
FreeRTOS/Demo/CORTEX_A2F200_IAR_and_Keil/main-full.c
FreeRTOS/Demo/CORTEX_A2F200_IAR_and_Keil/uIP_Task.c
FreeRTOS/Demo/CORTEX_A2F200_SoftConsole/WebServer/httpd-cgi.c
FreeRTOS/Demo/CORTEX_A2F200_SoftConsole/main-blinky.c
FreeRTOS/Demo/CORTEX_A2F200_SoftConsole/main-full.c
FreeRTOS/Demo/CORTEX_A2F200_SoftConsole/uIP_Task.c
FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Blinky-Demo/main_blinky.c
FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/Sample-CLI-commands.c
FreeRTOS/Demo/CORTEX_A9_RZ_R7S72100_IAR_DS-5/Source/Full-Demo/main_full.c
FreeRTOS/Demo/CORTEX_AT91SAM3U256_IAR/main.c
FreeRTOS/Demo/CORTEX_ATSAM3S-EK2_Atmel_Studio/src/Common-Demo-Source/comtest.c
FreeRTOS/Demo/CORTEX_ATSAM3S-EK2_Atmel_Studio/src/main_blinky.c
FreeRTOS/Demo/CORTEX_ATSAM3S-EK2_Atmel_Studio/src/main_full.c
FreeRTOS/Demo/CORTEX_ATSAM3X_Atmel_Studio/src/Common-Demo-Source/comtest.c
FreeRTOS/Demo/CORTEX_ATSAM3X_Atmel_Studio/src/main_blinky.c
FreeRTOS/Demo/CORTEX_ATSAM3X_Atmel_Studio/src/main_full.c
FreeRTOS/Demo/CORTEX_CY8C5588_PSoC_Creator_GCC/FreeRTOS_Demo.cydsn/main.c
FreeRTOS/Demo/CORTEX_CY8C5588_PSoC_Creator_Keil/FreeRTOS_Demo.cydsn/main.c
FreeRTOS/Demo/CORTEX_CY8C5588_PSoC_Creator_RVDS/FreeRTOS_Demo.cydsn/main.c
FreeRTOS/Demo/CORTEX_Kinetis_K60_Tower_IAR/main-full.c
FreeRTOS/Demo/CORTEX_Kinetis_K60_Tower_IAR/main_blinky.c
FreeRTOS/Demo/CORTEX_Kinetis_K60_Tower_IAR/uIP_Task.c
FreeRTOS/Demo/CORTEX_Kinetis_K60_Tower_IAR/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/main.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/webserver/emac.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_IAR_Keil/main.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_IAR_Keil/webserver/emac.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_IAR_Keil/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_Rowley/main.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_Rowley/webserver/emac.c
FreeRTOS/Demo/CORTEX_LM3Sxxxx_Rowley/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_LPC1768_GCC_RedSuite/src/main.c
FreeRTOS/Demo/CORTEX_LPC1768_GCC_RedSuite/src/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_LPC1768_GCC_Rowley/main.c
FreeRTOS/Demo/CORTEX_LPC1768_GCC_Rowley/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_LPC1768_IAR/main.c
FreeRTOS/Demo/CORTEX_LPC1768_IAR/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_M0+_Atmel_SAMD20_XPlained/RTOSDemo/src/Sample-CLI-commands.c
FreeRTOS/Demo/CORTEX_M0+_Atmel_SAMD20_XPlained/RTOSDemo/src/UARTCommandConsole.c
FreeRTOS/Demo/CORTEX_M0+_Atmel_SAMD20_XPlained/RTOSDemo/src/main-blinky.c
FreeRTOS/Demo/CORTEX_M0+_Atmel_SAMD20_XPlained/RTOSDemo/src/main-full.c
FreeRTOS/Demo/CORTEX_M0_Infineon_XMC1000_IAR_Keil_GCC/main-blinky.c
FreeRTOS/Demo/CORTEX_M0_Infineon_XMC1000_IAR_Keil_GCC/main-full.c
FreeRTOS/Demo/CORTEX_M0_LPC1114_LPCXpresso/RTOSDemo/Source/main-blinky.c
FreeRTOS/Demo/CORTEX_M0_LPC1114_LPCXpresso/RTOSDemo/Source/main-full.c
FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-blinky.c
FreeRTOS/Demo/CORTEX_M0_STM32F0518_IAR/main-full.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_GCC_Dave/main_blinky.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_GCC_Dave/main_full.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_IAR/main.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_IAR/main_blinky.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_IAR/main_full.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_Keil/main_blinky.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_Keil/main_full.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_Tasking/main_blinky.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_Tasking/main_full.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4500_GCC_Atollic/src/main_blinky.c
FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4500_GCC_Atollic/src/main_full.c
FreeRTOS/Demo/CORTEX_M4F_M0_LPC43xx_Keil/M4/ParTest.c
FreeRTOS/Demo/CORTEX_M4F_M0_LPC43xx_Keil/M4/main.c
FreeRTOS/Demo/CORTEX_M4F_STM32F407ZG-SK/main.c
FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main_blinky.c
FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main_full.c
FreeRTOS/Demo/CORTEX_M4_ATSAM4L_Atmel_Studio/src/main_full.c
FreeRTOS/Demo/CORTEX_M4_ATSAM4L_Atmel_Studio/src/main_low_power.c
FreeRTOS/Demo/CORTEX_M4_ATSAM4S_Atmel_Studio/src/Common-Demo-Source/comtest.c
FreeRTOS/Demo/CORTEX_M4_ATSAM4S_Atmel_Studio/src/main_blinky.c
FreeRTOS/Demo/CORTEX_M4_ATSAM4S_Atmel_Studio/src/main_full.c
FreeRTOS/Demo/CORTEX_MB9A310_IAR_Keil/main-full.c
FreeRTOS/Demo/CORTEX_MB9A310_IAR_Keil/main_blinky.c
FreeRTOS/Demo/CORTEX_MB9B500_IAR_Keil/main-full.c
FreeRTOS/Demo/CORTEX_MB9B500_IAR_Keil/main_blinky.c
FreeRTOS/Demo/CORTEX_MPU_LM3Sxxxx_Rowley/main.c
FreeRTOS/Demo/CORTEX_MPU_LPC1768_GCC_RedSuite/src/main.c
FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/flop_hercules.c
FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/main_blinky.c
FreeRTOS/Demo/CORTEX_R4_RM48_TMS570_CCS5/main_full.c
FreeRTOS/Demo/CORTEX_STM32F100_Atollic/Simple_Demo_Source/main.c
FreeRTOS/Demo/CORTEX_STM32F103_GCC_Rowley/main.c
FreeRTOS/Demo/CORTEX_STM32F103_IAR/main.c
FreeRTOS/Demo/CORTEX_STM32F103_Keil/main.c
FreeRTOS/Demo/CORTEX_STM32F103_Primer_GCC/main.c
FreeRTOS/Demo/CORTEX_STM32F107_GCC_Rowley/main.c
FreeRTOS/Demo/CORTEX_STM32F107_GCC_Rowley/webserver/httpd-cgi.c
FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/main_full.c
FreeRTOS/Demo/CORTEX_STM32L152_Discovery_IAR/main_low_power.c
FreeRTOS/Demo/CORTEX_STM32L152_IAR/main.c
FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/Blinky-Demo/main_blinky.c
FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/Full-Demo/Sample-CLI-commands.c
FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/Full-Demo/UARTCommandConsole.c
FreeRTOS/Demo/CORTEX_SmartFusion2_M2S050_SoftConsole/RTOSDemo/Full-Demo/main_full.c
FreeRTOS/Demo/CORTUS_APS3_GCC/Demo/7seg.c
FreeRTOS/Demo/CORTUS_APS3_GCC/Demo/RegTest.c
FreeRTOS/Demo/CORTUS_APS3_GCC/Demo/main.c
FreeRTOS/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/httpd/httpd-cgi.c
FreeRTOS/Demo/ColdFire_MCF51CN128_CodeWarrior/Sources/main.c
FreeRTOS/Demo/ColdFire_MCF52221_CodeWarrior/sources/main.c
FreeRTOS/Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/main.c
FreeRTOS/Demo/ColdFire_MCF52233_Eclipse/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/ColdFire_MCF52259_CodeWarrior/HTTPDemo.c
FreeRTOS/Demo/ColdFire_MCF52259_CodeWarrior/main.c
FreeRTOS/Demo/ColdFire_MCF5282_Eclipse/RTOSDemo/main.c
FreeRTOS/Demo/Common/Minimal/AltBlckQ.c
FreeRTOS/Demo/Common/Minimal/AltBlock.c
FreeRTOS/Demo/Common/Minimal/AltPollQ.c
FreeRTOS/Demo/Common/Minimal/AltQTest.c
FreeRTOS/Demo/Common/Minimal/BlockQ.c
FreeRTOS/Demo/Common/Minimal/EventGroupsDemo.c
FreeRTOS/Demo/Common/Minimal/GenQTest.c
FreeRTOS/Demo/Common/Minimal/IntQueue.c
FreeRTOS/Demo/Common/Minimal/PollQ.c
FreeRTOS/Demo/Common/Minimal/QPeek.c
FreeRTOS/Demo/Common/Minimal/QueueOverwrite.c
FreeRTOS/Demo/Common/Minimal/QueueSet.c
FreeRTOS/Demo/Common/Minimal/TimerDemo.c
FreeRTOS/Demo/Common/Minimal/blocktim.c
FreeRTOS/Demo/Common/Minimal/comtest.c
FreeRTOS/Demo/Common/Minimal/comtest_strings.c
FreeRTOS/Demo/Common/Minimal/countsem.c
FreeRTOS/Demo/Common/Minimal/death.c
FreeRTOS/Demo/Common/Minimal/dynamic.c
FreeRTOS/Demo/Common/Minimal/flash.c
FreeRTOS/Demo/Common/Minimal/flash_timer.c
FreeRTOS/Demo/Common/Minimal/flop.c
FreeRTOS/Demo/Common/Minimal/integer.c
FreeRTOS/Demo/Common/Minimal/recmutex.c
FreeRTOS/Demo/Common/Minimal/semtest.c
FreeRTOS/Demo/Common/Minimal/sp_flop.c
FreeRTOS/Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/ColdFire/MCF5225x_ethernetif.c
FreeRTOS/Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/ColdFire/__sys_arch.c
FreeRTOS/Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/sys_arch.c
FreeRTOS/Demo/Common/ethernet/lwIP_130/src/netif/stf91x_ethernetif.c
FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/ports/MicroBlaze-Ethernet-Lite/sys_arch.c
FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/ports/win32/WinPCap/arch.c
FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/ports/win32/ethernetif.c
FreeRTOS/Demo/Common/ethernet/lwip-1.4.0/ports/win32/sys_arch.c
FreeRTOS/Demo/H8S/RTOSDemo/main.c
FreeRTOS/Demo/MB91460_Softune/SRC/main.c
FreeRTOS/Demo/MB91460_Softune/SRC/utility/taskutility.c
FreeRTOS/Demo/MB91460_Softune/SRC/watchdog/watchdog.c
FreeRTOS/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/main.c
FreeRTOS/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/utility/taskutility.c
FreeRTOS/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/watchdog/watchdog.c
FreeRTOS/Demo/MB96350_Softune_Dice_Kit/SegmentToggleTasks.c
FreeRTOS/Demo/MB96350_Softune_Dice_Kit/main.c
FreeRTOS/Demo/MCF5235_GCC/demo.c
FreeRTOS/Demo/MSP430X_MSP430F5438_CCS/Demo_Source/main.c
FreeRTOS/Demo/MSP430X_MSP430F5438_IAR/main.c
FreeRTOS/Demo/MicroBlaze_Spartan-6_EthernetLite/KernelAwareBSPRepository/sw_apps/FreeRTOS_Hello_World/src/FreeRTOS-main.c
FreeRTOS/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemo/lwIP/lwIP_Apps/lwIP_Apps.c
FreeRTOS/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemo/main-blinky.c
FreeRTOS/Demo/MicroBlaze_Spartan-6_EthernetLite/SDKProjects/RTOSDemo/main-full.c
FreeRTOS/Demo/PIC18_MPLAB/main1.c
FreeRTOS/Demo/PIC18_MPLAB/main2.c
FreeRTOS/Demo/PIC18_MPLAB/main3.c
FreeRTOS/Demo/PIC18_WizC/Demo2/main.c
FreeRTOS/Demo/PIC18_WizC/Demo3/main.c
FreeRTOS/Demo/PIC18_WizC/Demo4/main.c
FreeRTOS/Demo/PIC18_WizC/Demo5/main.c
FreeRTOS/Demo/PIC18_WizC/Demo6/main.c
FreeRTOS/Demo/PIC18_WizC/Demo7/main.c
FreeRTOS/Demo/PIC24_MPLAB/lcd.c
FreeRTOS/Demo/PIC24_MPLAB/main.c
FreeRTOS/Demo/PIC32MX_MPLAB/lcd.c
FreeRTOS/Demo/PIC32MX_MPLAB/main_blinky.c
FreeRTOS/Demo/PIC32MX_MPLAB/main_full.c
FreeRTOS/Demo/PIC32MZ_MPLAB/ISRTriggeredTask.c
FreeRTOS/Demo/PIC32MZ_MPLAB/main_blinky.c
FreeRTOS/Demo/PIC32MZ_MPLAB/main_full.c
FreeRTOS/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop-reg-test.c
FreeRTOS/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop.c
FreeRTOS/Demo/PPC405_FPU_Xilinx_Virtex4_GCC/RTOSDemo/main.c
FreeRTOS/Demo/PPC405_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop-reg-test.c
FreeRTOS/Demo/PPC405_Xilinx_Virtex4_GCC/RTOSDemo/flop/flop.c
FreeRTOS/Demo/PPC405_Xilinx_Virtex4_GCC/RTOSDemo/main.c
FreeRTOS/Demo/PPC440_DP_FPU_Xilinx_Virtex5_GCC/RTOSDemo/flop/flop-reg-test.c
FreeRTOS/Demo/PPC440_DP_FPU_Xilinx_Virtex5_GCC/RTOSDemo/flop/flop.c
FreeRTOS/Demo/PPC440_DP_FPU_Xilinx_Virtex5_GCC/RTOSDemo/main.c
FreeRTOS/Demo/PPC440_SP_FPU_Xilinx_Virtex5_GCC/RTOSDemo/flop/flop-reg-test.c
FreeRTOS/Demo/PPC440_SP_FPU_Xilinx_Virtex5_GCC/RTOSDemo/flop/flop.c
FreeRTOS/Demo/PPC440_SP_FPU_Xilinx_Virtex5_GCC/RTOSDemo/main.c
FreeRTOS/Demo/PPC440_Xilinx_Virtex5_GCC/RTOSDemo/flop/flop-reg-test.c
FreeRTOS/Demo/PPC440_Xilinx_Virtex5_GCC/RTOSDemo/flop/flop.c
FreeRTOS/Demo/PPC440_Xilinx_Virtex5_GCC/RTOSDemo/main.c
FreeRTOS/Demo/RL78_E2Studio_GCC/src/Common-Demo-Tasks/blocktim.c
FreeRTOS/Demo/RL78_E2Studio_GCC/src/FreeRTOS_Source/timers.c
FreeRTOS/Demo/RL78_E2Studio_GCC/src/main_full.c
FreeRTOS/Demo/RL78_RL78G13_Promo_Board_IAR/main.c
FreeRTOS/Demo/RL78_multiple_IAR/main_blinky.c
FreeRTOS/Demo/RL78_multiple_IAR/main_full.c
FreeRTOS/Demo/RX100-RSK_GCC_e2studio/RTOSDemo/main_full.c
FreeRTOS/Demo/RX100-RSK_IAR/main_full.c
FreeRTOS/Demo/RX100-RSK_Renesas_e2studio/RTOSDemo/main_full.c
FreeRTOS/Demo/RX200_RX210-RSK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX62N-RDK_GNURX/RTOSDemo/main-blinky.c
FreeRTOS/Demo/RX600_RX62N-RDK_GNURX/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX62N-RDK_GNURX/RTOSDemo/uIP_Task.c
FreeRTOS/Demo/RX600_RX62N-RDK_GNURX/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/RX600_RX62N-RDK_IAR/webserver/httpd-cgi.c
FreeRTOS/Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/uIP_Task.c
FreeRTOS/Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/RX600_RX62N-RSK_GNURX/RTOSDemo/main-blinky.c
FreeRTOS/Demo/RX600_RX62N-RSK_GNURX/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX62N-RSK_GNURX/RTOSDemo/uIP_Task.c
FreeRTOS/Demo/RX600_RX62N-RSK_GNURX/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/RX600_RX62N-RSK_IAR/webserver/httpd-cgi.c
FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/uIP_Task.c
FreeRTOS/Demo/RX600_RX62N-RSK_Renesas/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/RX600_RX630-RSK_Renesas/RTOSDemo/main-full.c
FreeRTOS/Demo/RX600_RX63N-RDK_Renesas/RTOSDemo/uIP_Task.c
FreeRTOS/Demo/RX600_RX63N-RDK_Renesas/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/uIP_Task.c
FreeRTOS/Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/SuperH_SH7216_Renesas/RTOSDemo/flop.c
FreeRTOS/Demo/SuperH_SH7216_Renesas/RTOSDemo/webserver/httpd-cgi.c
FreeRTOS/Demo/TriCore_TC1782_TriBoard_GCC/RTOSDemo/InterruptNestTest.c
FreeRTOS/Demo/TriCore_TC1782_TriBoard_GCC/RTOSDemo/main.c
FreeRTOS/Demo/WIN32-MSVC-lwIP/lwIP_Apps/lwIP_Apps.c
FreeRTOS/Demo/WIN32-MSVC-lwIP/main.c
FreeRTOS/Demo/WIN32-MSVC/DemosModifiedForLowTickRate/recmutex.c
FreeRTOS/Demo/WIN32-MSVC/main.c
FreeRTOS/Demo/WIN32-MSVC/main_blinky.c
FreeRTOS/Demo/WIN32-MSVC/main_full.c
FreeRTOS/Demo/WIN32-MingW/DemosModifiedForLowTickRate/recmutex.c
FreeRTOS/Demo/WIN32-MingW/main.c
FreeRTOS/Demo/WIN32-MingW/main_blinky.c
FreeRTOS/Demo/WIN32-MingW/main_full.c
FreeRTOS/Demo/WizNET_DEMO_GCC_ARM7/main.c
FreeRTOS/Demo/WizNET_DEMO_TERN_186/HTTPTask.c
FreeRTOS/Demo/dsPIC_MPLAB/lcd.c
FreeRTOS/Demo/dsPIC_MPLAB/main.c
FreeRTOS/Demo/lwIP_AVR32_UC3/NETWORK/BasicWEB/BasicWEB.c
FreeRTOS/Demo/lwIP_AVR32_UC3/NETWORK/lwip-port/AT32UC3A/ethernetif.c
FreeRTOS/Demo/lwIP_AVR32_UC3/NETWORK/lwip-port/AT32UC3A/sys_arch.c
FreeRTOS/Demo/lwIP_Demo_Rowley_ARM7/BasicWEB.c
FreeRTOS/Demo/lwIP_Demo_Rowley_ARM7/lwip-1.1.0/contrib/port/FreeRTOS/AT91SAM7X/sys_arch.c
FreeRTOS/Demo/lwIP_Demo_Rowley_ARM7/lwip-1.1.0/src/netif/ethernetif.c
FreeRTOS/Demo/lwIP_Demo_Rowley_ARM7/main.c
FreeRTOS/Demo/lwIP_MCF5235_GCC/demo.c
FreeRTOS/Demo/lwIP_MCF5235_GCC/web.c
FreeRTOS/Demo/msp430_CrossWorks/main.c
FreeRTOS/Demo/msp430_IAR/main.c

index fde25852d2dba66cdcc500ce1f1be7f8ebd45218..278ac2196c3682f614945fad870c9ea90b8d2d46 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -63,9 +63,9 @@
     1 tab == 4 spaces!\r
 */\r
 \r
-/* \r
+/*\r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used.\r
 /*\r
  * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
  * documentation provides more details of the demo application tasks.\r
- * \r
- * Main.c also creates a task called "Check".  This only executes every three \r
- * seconds but has the highest priority so is guaranteed to get processor time.  \r
+ *\r
+ * Main.c also creates a task called "Check".  This only executes every three\r
+ * seconds but has the highest priority so is guaranteed to get processor time.\r
  * Its main function is to check that all the other tasks are still operational.\r
- * Each task (other than the "flash" tasks) maintains a unique count that is \r
- * incremented each time the task successfully completes its function.  Should \r
- * any error occur within such a task the count is permanently halted.  The \r
+ * Each task (other than the "flash" tasks) maintains a unique count that is\r
+ * incremented each time the task successfully completes its function.  Should\r
+ * any error occur within such a task the count is permanently halted.  The\r
  * check task inspects the count of each task to ensure it has changed since\r
- * the last time the check task executed.  If all the count variables have \r
+ * the last time the check task executed.  If all the count variables have\r
  * changed all the tasks are still executing error free, and the check task\r
- * toggles the onboard LED.  Should any task contain an error at any time \r
+ * toggles the onboard LED.  Should any task contain an error at any time\r
  * the LED toggle rate will change from 3 seconds to 500ms.\r
  *\r
- * To check the operation of the memory allocator the check task also \r
- * dynamically creates a task before delaying, and deletes it again when it \r
+ * To check the operation of the memory allocator the check task also\r
+ * dynamically creates a task before delaying, and deletes it again when it\r
  * wakes.  If memory cannot be allocated for the new task the call to xTaskCreate\r
  * will fail and an error is signalled.  The dynamically created task itself\r
  * allocates and frees memory just to give the allocator a bit more exercise.\r
 #define mainSEM_TEST_PRIORITY          ( tskIDLE_PRIORITY + 1 )\r
 #define mainBLOCK_Q_PRIORITY           ( tskIDLE_PRIORITY + 2 )\r
 \r
-/* The rate at which the on board LED will toggle when there is/is not an \r
+/* The rate at which the on board LED will toggle when there is/is not an\r
 error. */\r
 #define mainNO_ERROR_FLASH_PERIOD      ( ( portTickType ) 3000 / portTICK_RATE_MS  )\r
 #define mainERROR_FLASH_PERIOD         ( ( portTickType ) 500 / portTICK_RATE_MS  )\r
@@ -171,7 +171,7 @@ static const unsigned long ululCSRWaitValues[ MAX_WAIT_STATES + 1 ] =
 static long prvCheckOtherTasksAreStillRunning( unsigned long ulMemCheckTaskCount );\r
 \r
 /*\r
- * The task that executes at the highest priority and calls \r
+ * The task that executes at the highest priority and calls\r
  * prvCheckOtherTasksAreStillRunning().  See the description at the top\r
  * of the file.\r
  */\r
@@ -193,7 +193,7 @@ static void prvSetupHardware( void );
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
- * Starts all the other tasks, then starts the scheduler. \r
+ * Starts all the other tasks, then starts the scheduler.\r
  */\r
 int main( void )\r
 {\r
@@ -207,16 +207,16 @@ int main( void )
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
        vStartMathTasks( tskIDLE_PRIORITY );\r
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
-       vStartDynamicPriorityTasks();   \r
+       vStartDynamicPriorityTasks();\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
 \r
        /* Start the check task - which is defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Now all the tasks have been started - start the scheduler.\r
 \r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used here. */\r
@@ -239,24 +239,24 @@ xTaskHandle xCreatedTask;
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error.  If an error is detected then the delay period\r
        is decreased from mainNO_ERROR_FLASH_PERIOD to mainERROR_FLASH_PERIOD so\r
-       the on board LED flash rate will increase. \r
-       \r
+       the on board LED flash rate will increase.\r
+\r
        In addition to the standard tests the memory allocator is tested through\r
-       the dynamic creation and deletion of a task each cycle.  Each time the \r
+       the dynamic creation and deletion of a task each cycle.  Each time the\r
        task is created memory must be allocated for its stack.  When the task is\r
-       deleted this memory is returned to the heap.  If the task cannot be created \r
+       deleted this memory is returned to the heap.  If the task cannot be created\r
        then it is likely that the memory allocation failed. */\r
 \r
        for( ;; )\r
        {\r
-               /* Reset xCreatedTask.  This is modified by the task about to be \r
+               /* Reset xCreatedTask.  This is modified by the task about to be\r
                created so we can tell if it is executing correctly or not. */\r
                xCreatedTask = mainNO_TASK;\r
 \r
-               /* Dynamically create a task - passing ulMemCheckTaskRunningCount as a \r
+               /* Dynamically create a task - passing ulMemCheckTaskRunningCount as a\r
                parameter. */\r
-               ulMemCheckTaskRunningCount = mainCOUNT_INITIAL_VALUE;           \r
-               if( xTaskCreate( vMemCheckTask, ( signed char * ) "MEM_CHECK", configMINIMAL_STACK_SIZE, ( void * ) &ulMemCheckTaskRunningCount, tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
+               ulMemCheckTaskRunningCount = mainCOUNT_INITIAL_VALUE;\r
+               if( xTaskCreate( vMemCheckTask, "MEM_CHECK", configMINIMAL_STACK_SIZE, ( void * ) &ulMemCheckTaskRunningCount, tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
                {\r
                        /* Could not create the task - we have probably run out of heap. */\r
                        xDelayPeriod = mainERROR_FLASH_PERIOD;\r
@@ -271,7 +271,7 @@ xTaskHandle xCreatedTask;
                        vTaskDelete( xCreatedTask );\r
                }\r
 \r
-               /* Check all the standard demo application tasks are executing without \r
+               /* Check all the standard demo application tasks are executing without\r
                error.  ulMemCheckTaskRunningCount is checked to ensure it was\r
                modified by the task just deleted. */\r
                if( prvCheckOtherTasksAreStillRunning( ulMemCheckTaskRunningCount ) != pdPASS )\r
@@ -323,7 +323,7 @@ long lCount;
                ulCSRWaitValue = WaitState5;\r
 \r
                AT91C_BASE_EBI->EBI_CSR[ 0 ] = ulCSRWaitValue | DataBus16 | WaitStateEnable\r
-                                                                          | PageSize1M | tDF_0cycle \r
+                                                                          | PageSize1M | tDF_0cycle\r
                                                                           | ByteWriteAccessType | CSEnable\r
                                                                           | 0x00000000 /* Base Address */;\r
        }\r
@@ -352,7 +352,7 @@ long lCount;
        /* Clear all interrupts at the AIC level initially... */\r
        AT91C_BASE_AIC->AIC_ICCR = 0xFFFFFFFF;\r
 \r
-       /* Perform 8 "End Of Interrupt" cmds to make sure AIC will not Lock out \r
+       /* Perform 8 "End Of Interrupt" cmds to make sure AIC will not Lock out\r
        nIRQ */\r
        for( lCount = 0; lCount < 8; lCount++ )\r
        {\r
@@ -428,10 +428,10 @@ static long lErrorOccurred = pdFALSE;
        vErrorChecks task to check the operation of the memory allocator.  Each time\r
        the task is created memory is allocated for the stack and TCB.  Each time\r
        the task is deleted this memory is returned to the heap.  This task itself\r
-       exercises the allocator by allocating and freeing blocks. \r
-       \r
-       The task executes at the idle priority so does not require a delay. \r
-       \r
+       exercises the allocator by allocating and freeing blocks.\r
+\r
+       The task executes at the idle priority so does not require a delay.\r
+\r
        pulMemCheckTaskRunningCounter is incremented each cycle to indicate to the\r
        vErrorChecks() task that this task is still executing without error. */\r
 \r
@@ -446,12 +446,12 @@ static long lErrorOccurred = pdFALSE;
                }\r
                else\r
                {\r
-                       /* There has been an error so reset the counter so the check task \r
+                       /* There has been an error so reset the counter so the check task\r
                        can tell that an error occurred. */\r
                        *pulMemCheckTaskRunningCounter = mainCOUNT_INITIAL_VALUE;\r
                }\r
 \r
-               /* Allocate some memory - just to give the allocator some extra \r
+               /* Allocate some memory - just to give the allocator some extra\r
                exercise.  This has to be in a critical section to ensure the\r
                task does not get deleted while it has memory allocated. */\r
                vTaskSuspendAll();\r
index 43b7afba253ccf0cb7ef43dce02291047353dfd4..14bf2c8ef6a86345e3c60e04441e734f527c9d2d 100644 (file)
@@ -98,7 +98,7 @@ PT_THREAD(file_stats(struct httpd_state *s, char *ptr))
   PSOCK_BEGIN(&s->sout);\r
 \r
   PSOCK_GENERATOR_SEND(&s->sout, generate_file_stats, strchr(ptr, ' ') + 1);\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -139,14 +139,14 @@ static const char *states[] = {
   closing,\r
   time_wait,\r
   last_ack};\r
-  \r
+\r
 \r
 static unsigned short\r
 generate_tcp_stats(void *arg)\r
 {\r
   struct uip_conn *conn;\r
   struct httpd_state *s = (struct httpd_state *)arg;\r
-    \r
+\r
   conn = &uip_conns[s->count];\r
   return snprintf((char *)uip_appdata, UIP_APPDATA_SIZE,\r
                 "<tr><td>%d</td><td>%u.%u.%u.%u:%u</td><td>%s</td><td>%u</td><td>%u</td><td>%c %c</td></tr>\r\n",\r
@@ -166,7 +166,7 @@ generate_tcp_stats(void *arg)
 static\r
 PT_THREAD(tcp_stats(struct httpd_state *s, char *ptr))\r
 {\r
-  \r
+\r
   PSOCK_BEGIN(&s->sout);\r
 \r
   for(s->count = 0; s->count < UIP_CONNS; ++s->count) {\r
@@ -197,14 +197,14 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
       ++s->count) {\r
     PSOCK_GENERATOR_SEND(&s->sout, generate_net_stats, s);\r
   }\r
-  \r
+\r
 #endif /* UIP_STATISTICS */\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -212,9 +212,9 @@ generate_rtos_stats(void *arg)
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %ld", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
-  \r
+\r
        return strlen( uip_appdata );\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -224,7 +224,7 @@ static
 PT_THREAD(rtos_stats(struct httpd_state *s, char *ptr))\r
 {\r
   PSOCK_BEGIN(&s->sout);\r
-  PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);  \r
+  PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -247,7 +247,7 @@ static unsigned short generate_io_state( void *arg )
        sprintf( uip_appdata,\r
                "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED DS4,"\\r
                "<p>",\r
-               pcStatus ); \r
+               pcStatus );\r
 \r
        return strlen( uip_appdata );\r
 }\r
index 4acb43e0ec46ddb111ff4c7617622488b90426da..f7ef6102d47ee2d6b34c57c51653f3be9bdd146c 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -63,9 +63,9 @@
     1 tab == 4 spaces!\r
 */\r
 \r
-/* \r
+/*\r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used.\r
 /*\r
  * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
  * documentation provides more details of the demo application tasks.\r
- * \r
- * Main.c also creates a task called "Check".  This only executes every three \r
- * seconds but has the highest priority so is guaranteed to get processor time.  \r
+ *\r
+ * Main.c also creates a task called "Check".  This only executes every three\r
+ * seconds but has the highest priority so is guaranteed to get processor time.\r
  * Its main function is to check that all the other tasks are still operational.\r
- * Each task (other than the "flash" tasks) maintains a unique count that is \r
- * incremented each time the task successfully completes its function.  Should \r
- * any error occur within such a task the count is permanently halted.  The \r
+ * Each task (other than the "flash" tasks) maintains a unique count that is\r
+ * incremented each time the task successfully completes its function.  Should\r
+ * any error occur within such a task the count is permanently halted.  The\r
  * check task inspects the count of each task to ensure it has changed since\r
- * the last time the check task executed.  If all the count variables have \r
+ * the last time the check task executed.  If all the count variables have\r
  * changed all the tasks are still executing error free, and the check task\r
- * toggles the onboard LED.  Should any task contain an error at any time \r
+ * toggles the onboard LED.  Should any task contain an error at any time\r
  * the LED toggle rate will change from 3 seconds to 500ms.\r
  *\r
- * To check the operation of the memory allocator the check task also \r
- * dynamically creates a task before delaying, and deletes it again when it \r
+ * To check the operation of the memory allocator the check task also\r
+ * dynamically creates a task before delaying, and deletes it again when it\r
  * wakes.  If memory cannot be allocated for the new task the call to xTaskCreate\r
  * will fail and an error is signalled.  The dynamically created task itself\r
  * allocates and frees memory just to give the allocator a bit more exercise.\r
  *\r
  */\r
 \r
-/* \r
+/*\r
        Changes from V2.4.2\r
 \r
        + The vErrorChecks() task now dynamically creates then deletes a task each\r
          cycle.  This tests the operation of the memory allocator.\r
 \r
        Changes from V2.5.2\r
-               \r
-       + vParTestInitialise() is called during initialisation to ensure all the \r
+\r
+       + vParTestInitialise() is called during initialisation to ensure all the\r
          LED's start off.\r
 */\r
 \r
 #define mainSEM_TEST_PRIORITY          ( tskIDLE_PRIORITY + 0 )\r
 #define mainBLOCK_Q_PRIORITY           ( tskIDLE_PRIORITY + 2 )\r
 \r
-/* The rate at which the on board LED will toggle when there is/is not an \r
+/* The rate at which the on board LED will toggle when there is/is not an\r
 error. */\r
 #define mainNO_ERROR_FLASH_PERIOD      ( ( portTickType ) 3000 / portTICK_RATE_MS  )\r
 #define mainERROR_FLASH_PERIOD         ( ( portTickType ) 500 / portTICK_RATE_MS  )\r
@@ -184,7 +184,7 @@ error. */
 \r
 /*\r
  * The Olimex demo board has a single built in LED.  This function simply\r
- * toggles its state. \r
+ * toggles its state.\r
  */\r
 void prvToggleOnBoardLED( void );\r
 \r
@@ -195,7 +195,7 @@ void prvToggleOnBoardLED( void );
 static long prvCheckOtherTasksAreStillRunning( unsigned long ulMemCheckTaskCount );\r
 \r
 /*\r
- * The task that executes at the highest priority and calls \r
+ * The task that executes at the highest priority and calls\r
  * prvCheckOtherTasksAreStillRunning().  See the description at the top\r
  * of the file.\r
  */\r
@@ -217,7 +217,7 @@ static void prvSetupHardware( void );
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
- * Starts all the other tasks, then starts the scheduler. \r
+ * Starts all the other tasks, then starts the scheduler.\r
  */\r
 int main( void )\r
 {\r
@@ -235,12 +235,12 @@ int main( void )
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
 \r
        /* Start the check task - which is defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Now all the tasks have been started - start the scheduler.\r
 \r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used here. */\r
@@ -263,22 +263,22 @@ xTaskHandle xCreatedTask;
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error.  If an error is detected then the delay period\r
        is decreased from mainNO_ERROR_FLASH_PERIOD to mainERROR_FLASH_PERIOD so\r
-       the on board LED flash rate will increase. \r
-       \r
+       the on board LED flash rate will increase.\r
+\r
        In addition to the standard tests the memory allocator is tested through\r
-       the dynamic creation and deletion of a task each cycle.  Each time the \r
+       the dynamic creation and deletion of a task each cycle.  Each time the\r
        task is created memory must be allocated for its stack.  When the task is\r
-       deleted this memory is returned to the heap.  If the task cannot be created \r
+       deleted this memory is returned to the heap.  If the task cannot be created\r
        then it is likely that the memory allocation failed. */\r
 \r
        for( ;; )\r
        {\r
-               /* Dynamically create a task - passing ulMemCheckTaskRunningCount as a \r
+               /* Dynamically create a task - passing ulMemCheckTaskRunningCount as a\r
                parameter. */\r
                ulMemCheckTaskRunningCount = mainCOUNT_INITIAL_VALUE;\r
                xCreatedTask = mainNO_TASK;\r
 \r
-               if( xTaskCreate( vMemCheckTask, ( signed char * ) "MEM_CHECK", configMINIMAL_STACK_SIZE, ( void * ) &ulMemCheckTaskRunningCount, tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
+               if( xTaskCreate( vMemCheckTask, "MEM_CHECK", configMINIMAL_STACK_SIZE, ( void * ) &ulMemCheckTaskRunningCount, tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
                {\r
                        /* Could not create the task - we have probably run out of heap. */\r
                        xDelayPeriod = mainERROR_FLASH_PERIOD;\r
@@ -286,14 +286,14 @@ xTaskHandle xCreatedTask;
 \r
                /* Delay until it is time to execute again. */\r
                vTaskDelay( xDelayPeriod );\r
-       \r
+\r
                /* Delete the dynamically created task. */\r
                if( xCreatedTask != mainNO_TASK )\r
                {\r
                        vTaskDelete( xCreatedTask );\r
                }\r
 \r
-               /* Check all the standard demo application tasks are executing without \r
+               /* Check all the standard demo application tasks are executing without\r
                error.  ulMemCheckTaskRunningCount is checked to ensure it was\r
                modified by the task just deleted. */\r
                if( prvCheckOtherTasksAreStillRunning( ulMemCheckTaskRunningCount ) != pdPASS )\r
@@ -318,8 +318,8 @@ static void prvSetupHardware( void )
        PCB_PINSEL0 |= mainTX_ENABLE;\r
        PCB_PINSEL0 |= mainRX_ENABLE;\r
 \r
-       /* Set all GPIO to output other than the P0.14 (BSL), and the JTAG pins.  \r
-       The JTAG pins are left as input as I'm not sure what will happen if the \r
+       /* Set all GPIO to output other than the P0.14 (BSL), and the JTAG pins.\r
+       The JTAG pins are left as input as I'm not sure what will happen if the\r
        Wiggler is connected after powerup - not that it would be a good idea to\r
        do that anyway. */\r
        GPIO_IODIR = ~( mainP0_14 + mainJTAG_PORT );\r
@@ -349,7 +349,7 @@ static void prvSetupHardware( void )
 \r
        /* Setup the peripheral bus to be the same as the PLL output. */\r
        SCB_VPBDIV = mainBUS_CLK_FULL;\r
-       \r
+\r
        /* Initialise LED outputs. */\r
        vParTestInitialise();\r
 }\r
@@ -367,7 +367,7 @@ unsigned long ulState;
        else\r
        {\r
                GPIO_IOSET = mainON_BOARD_LED_BIT;\r
-       }       \r
+       }\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -435,10 +435,10 @@ static long lErrorOccurred = pdFALSE;
        vErrorChecks task to check the operation of the memory allocator.  Each time\r
        the task is created memory is allocated for the stack and TCB.  Each time\r
        the task is deleted this memory is returned to the heap.  This task itself\r
-       exercises the allocator by allocating and freeing blocks. \r
-       \r
-       The task executes at the idle priority so does not require a delay. \r
-       \r
+       exercises the allocator by allocating and freeing blocks.\r
+\r
+       The task executes at the idle priority so does not require a delay.\r
+\r
        pulMemCheckTaskRunningCounter is incremented each cycle to indicate to the\r
        vErrorChecks() task that this task is still executing without error. */\r
 \r
@@ -452,7 +452,7 @@ static long lErrorOccurred = pdFALSE;
                        ( *pulMemCheckTaskRunningCounter )++;\r
                }\r
 \r
-               /* Allocate some memory - just to give the allocator some extra \r
+               /* Allocate some memory - just to give the allocator some extra\r
                exercise.  This has to be in a critical section to ensure the\r
                task does not get deleted while it has memory allocated. */\r
                vTaskSuspendAll();\r
index f66977fcb7f290a13143fdf9aa72eda821ada012..c13b5462fd21718fa70261645dbfd450c2370fd1 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -217,10 +217,10 @@ int main( void )
     vStartRecursiveMutexTasks();\r
 \r
        /* Start the tasks defined within this file. */\r
-       xTaskCreate( vLEDTask, ( signed char * ) "LED", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY, NULL );\r
-    xTaskCreate( vCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
-    xTaskCreate( vPrintTask, ( signed char * ) "Print", configMINIMAL_STACK_SIZE, NULL, mainPRINT_TASK_PRIORITY, NULL );\r
-    xTaskCreate( vButtonHandlerTask, ( signed char * ) "Button", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vLEDTask, "LED", configMINIMAL_STACK_SIZE, NULL, mainLED_TASK_PRIORITY, NULL );\r
+    xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+    xTaskCreate( vPrintTask, "Print", configMINIMAL_STACK_SIZE, NULL, mainPRINT_TASK_PRIORITY, NULL );\r
+    xTaskCreate( vButtonHandlerTask, "Button", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -357,8 +357,8 @@ char *pcMessage;
 \r
 static void vButtonHandlerTask( void *pvParameters )\r
 {\r
-static signed char cListBuffer[ mainLIST_BUFFER_SIZE ];\r
-const signed char *pcList = &( cListBuffer[ 0 ] );\r
+static char cListBuffer[ mainLIST_BUFFER_SIZE ];\r
+const char *pcList = &( cListBuffer[ 0 ] );\r
 const char * const pcHeader = "\nTask          State  Priority  Stack  #\n************************************************";\r
 extern void (vButtonISRWrapper) ( void );\r
 \r
index 973e73254f1856e841f54dd50418633c77126055..e6357c4115ceb16b3530767542b01f9240cd6327 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * for messages - waking and displaying the messages as they arrive.\r
  *\r
  * "Check" hook -  This only executes every five seconds from the tick hook.\r
- * Its main function is to check that all the standard demo tasks are still \r
- * operational.  Should any unexpected behaviour within a demo task be discovered \r
- * the tick hook will write an error to the LCD (via the LCD task).  If all the \r
- * demo tasks are executing with their expected behaviour then the check task \r
+ * Its main function is to check that all the standard demo tasks are still\r
+ * operational.  Should any unexpected behaviour within a demo task be discovered\r
+ * the tick hook will write an error to the LCD (via the LCD task).  If all the\r
+ * demo tasks are executing with their expected behaviour then the check task\r
  * writes PASS to the LCD (again via the LCD task), as described above.\r
  *\r
  * "uIP" task -  This is the task that handles the uIP stack.  All TCP/IP\r
 #define mainBLOCK_Q_PRIORITY                           ( tskIDLE_PRIORITY + 2 )\r
 #define mainFLASH_PRIORITY                  ( tskIDLE_PRIORITY + 2 )\r
 #define mainCREATOR_TASK_PRIORITY           ( tskIDLE_PRIORITY + 3 )\r
-#define mainGEN_QUEUE_TASK_PRIORITY                    ( tskIDLE_PRIORITY ) \r
+#define mainGEN_QUEUE_TASK_PRIORITY                    ( tskIDLE_PRIORITY )\r
 \r
 /* Constants to setup the PLL. */\r
 #define mainPLL_MUL                    ( ( unsigned portLONG ) ( 8 - 1 ) )\r
 #define mainMAM_TIM_3          ( ( unsigned portCHAR ) 0x03 )\r
 #define mainMAM_MODE_FULL      ( ( unsigned portCHAR ) 0x02 )\r
 \r
-/* \r
+/*\r
  * The task that handles the uIP stack.  All TCP/IP processing is performed in\r
  * this task.\r
  */\r
 extern void vuIP_Task( void *pvParameters );\r
 \r
 /*\r
- * The LCD is written two by more than one task so is controlled by a \r
- * 'gatekeeper' task.  This is the only task that is actually permitted to \r
+ * The LCD is written two by more than one task so is controlled by a\r
+ * 'gatekeeper' task.  This is the only task that is actually permitted to\r
  * access the LCD directly.  Other tasks wanting to display a message send\r
  * the message to the gatekeeper.\r
  */\r
@@ -159,31 +159,31 @@ xQueueHandle xLCDQueue;
 int main( void )\r
 {\r
        prvSetupHardware();\r
-       \r
+\r
        /* Create the queue used by the LCD task.  Messages for display on the LCD\r
        are received via this queue. */\r
        xLCDQueue = xQueueCreate( mainQUEUE_SIZE, sizeof( xLCDMessage ) );\r
 \r
        /* Create the uIP task.  This uses the lwIP RTOS abstraction layer.*/\r
-    xTaskCreate( vuIP_Task, ( signed portCHAR * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+    xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
 \r
        /* Start the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
     vCreateBlockTimeTasks();\r
     vStartLEDFlashTasks( mainFLASH_PRIORITY );\r
     vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );\r
-    vStartQueuePeekTasks();   \r
+    vStartQueuePeekTasks();\r
     vStartDynamicPriorityTasks();\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-       xTaskCreate( vLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+       xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
 \r
     /* Will only get here if there was insufficient memory to create the idle\r
     task. */\r
-       return 0; \r
+       return 0;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -200,7 +200,7 @@ static portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
        if( ulTicksSinceLastDisplay >= mainCHECK_DELAY )\r
        {\r
                ulTicksSinceLastDisplay = 0;\r
-               \r
+\r
                /* Has an error been found in any task? */\r
 \r
         if( xAreBlockingQueuesStillRunning() != pdTRUE )\r
@@ -217,17 +217,17 @@ static portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
                {\r
                        xMessage.pcMessage = "ERROR - GENQ";\r
                }\r
-               \r
+\r
                if( xAreQueuePeekTasksStillRunning() != pdTRUE )\r
                {\r
                        xMessage.pcMessage = "ERROR - PEEKQ";\r
-               }       \r
-               \r
+               }\r
+\r
                if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
                {\r
                        xMessage.pcMessage = "ERROR - DYNAMIC";\r
                }\r
-        \r
+\r
         xMessage.xColumn++;\r
 \r
                /* Send the message to the LCD gatekeeper for display. */\r
@@ -244,7 +244,7 @@ xLCDMessage xMessage;
        /* Initialise the LCD and display a startup message. */\r
        LCD_init();\r
        LCD_cur_off();\r
-    LCD_cls();    \r
+    LCD_cls();\r
     LCD_gotoxy( 1, 1 );\r
     LCD_puts( "www.FreeRTOS.org" );\r
 \r
@@ -252,7 +252,7 @@ xLCDMessage xMessage;
        {\r
                /* Wait for a message to arrive that requires displaying. */\r
                while( xQueueReceive( xLCDQueue, &xMessage, portMAX_DELAY ) != pdPASS );\r
-               \r
+\r
                /* Display the message.  Print each message to a different position. */\r
                LCD_cls();\r
                LCD_gotoxy( ( xMessage.xColumn & 0x07 ) + 1, ( xMessage.xColumn & 0x01 ) + 1 );\r
@@ -268,17 +268,17 @@ static void prvSetupHardware( void )
                /* Remap the interrupt vectors to RAM if we are are running from RAM. */\r
                SCB_MEMMAP = 2;\r
        #endif\r
-       \r
+\r
        /* Disable the PLL. */\r
        PLLCON = 0;\r
        PLLFEED = mainPLL_FEED_BYTE1;\r
        PLLFEED = mainPLL_FEED_BYTE2;\r
-       \r
+\r
        /* Configure clock source. */\r
        SCS |= mainOSC_ENABLE;\r
        while( !( SCS & mainOSC_STAT ) );\r
-       CLKSRCSEL = mainOSC_SELECT; \r
-       \r
+       CLKSRCSEL = mainOSC_SELECT;\r
+\r
        /* Setup the PLL to multiply the XTAL input by 4. */\r
        PLLCFG = ( mainPLL_MUL | mainPLL_DIV );\r
        PLLFEED = mainPLL_FEED_BYTE1;\r
@@ -288,20 +288,20 @@ static void prvSetupHardware( void )
        PLLCON = mainPLL_ENABLE;\r
        PLLFEED = mainPLL_FEED_BYTE1;\r
        PLLFEED = mainPLL_FEED_BYTE2;\r
-       CCLKCFG = mainCPU_CLK_DIV;      \r
+       CCLKCFG = mainCPU_CLK_DIV;\r
        while( !( PLLSTAT & mainPLL_LOCK ) );\r
-       \r
+\r
        /* Connecting the clock. */\r
        PLLCON = mainPLL_CONNECT;\r
        PLLFEED = mainPLL_FEED_BYTE1;\r
        PLLFEED = mainPLL_FEED_BYTE2;\r
-       while( !( PLLSTAT & mainPLL_CONNECTED ) ); \r
-       \r
-       /* \r
+       while( !( PLLSTAT & mainPLL_CONNECTED ) );\r
+\r
+       /*\r
        This code is commented out as the MAM does not work on the original revision\r
        LPC2368 chips.  If using Rev B chips then you can increase the speed though\r
        the use of the MAM.\r
-       \r
+\r
        Setup and turn on the MAM.  Three cycle access is used due to the fast\r
        PLL used.  It is possible faster overall performance could be obtained by\r
        tuning the MAM and PLL settings.\r
@@ -309,7 +309,7 @@ static void prvSetupHardware( void )
        MAMTIM = mainMAM_TIM_3;\r
        MAMCR = mainMAM_MODE_FULL;\r
        */\r
-       \r
+\r
        /* Setup the led's on the MCB2300 board */\r
        vParTestInitialise();\r
 }\r
index 7126f6cd5b55e4bb5f0bec15f7696a658fec475b..02cf3b9f26349c40462bbe268176da1ef8f1a25c 100644 (file)
@@ -98,7 +98,7 @@ PT_THREAD(file_stats(struct httpd_state *s, char *ptr))
   PSOCK_BEGIN(&s->sout);\r
 \r
   PSOCK_GENERATOR_SEND(&s->sout, generate_file_stats, strchr(ptr, ' ') + 1);\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -139,14 +139,14 @@ static const char *states[] = {
   closing,\r
   time_wait,\r
   last_ack};\r
-  \r
+\r
 \r
 static unsigned short\r
 generate_tcp_stats(void *arg)\r
 {\r
   struct uip_conn *conn;\r
   struct httpd_state *s = (struct httpd_state *)arg;\r
-    \r
+\r
   conn = &uip_conns[s->count];\r
   return snprintf((char *)uip_appdata, UIP_APPDATA_SIZE,\r
                 "<tr><td>%d</td><td>%u.%u.%u.%u:%u</td><td>%s</td><td>%u</td><td>%u</td><td>%c %c</td></tr>\r\n",\r
@@ -166,7 +166,7 @@ generate_tcp_stats(void *arg)
 static\r
 PT_THREAD(tcp_stats(struct httpd_state *s, char *ptr))\r
 {\r
-  \r
+\r
   PSOCK_BEGIN(&s->sout);\r
 \r
   for(s->count = 0; s->count < UIP_CONNS; ++s->count) {\r
@@ -197,14 +197,14 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
       ++s->count) {\r
     PSOCK_GENERATOR_SEND(&s->sout, generate_net_stats, s);\r
   }\r
-  \r
+\r
 #endif /* UIP_STATISTICS */\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -212,9 +212,9 @@ generate_rtos_stats(void *arg)
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %ld", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
-  \r
+\r
        return strlen( uip_appdata );\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -224,7 +224,7 @@ static
 PT_THREAD(rtos_stats(struct httpd_state *s, char *ptr))\r
 {\r
   PSOCK_BEGIN(&s->sout);\r
-  PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);  \r
+  PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -253,8 +253,8 @@ static unsigned short generate_io_state( void *arg )
                "<input type=\"checkbox\" name=\"LED2\" value=\"1\" %s>LED 2.7"\\r
                "<p>"\\r
                "<input type=\"text\" name=\"LCD\" value=\"Enter LCD text\" size=\"16\">",\r
-               pcStatus[ 0 ], \r
-               pcStatus[ 1 ], \r
+               pcStatus[ 0 ],\r
+               pcStatus[ 1 ],\r
                pcStatus[ 2 ] );\r
 \r
        return strlen( uip_appdata );\r
index 14d588a650f003521e4596d65428afa9053c9977..afcb87fa36ec4d53bdf1e116df66a227a9c4bcad 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
 static void vCheckTask( void *pvParameters );\r
 \r
-/* \r
+/*\r
  * The task that handles the uIP stack.  All TCP/IP processing is performed in\r
  * this task.\r
  */\r
 extern void vuIP_Task( void *pvParameters );\r
 \r
 /*\r
- * The LCD is written two by more than one task so is controlled by a \r
- * 'gatekeeper' task.  This is the only task that is actually permitted to \r
+ * The LCD is written two by more than one task so is controlled by a\r
+ * 'gatekeeper' task.  This is the only task that is actually permitted to\r
  * access the LCD directly.  Other tasks wanting to display a message send\r
  * the message to the gatekeeper.\r
  */\r
@@ -138,7 +138,7 @@ int main (void)
        xLCDQueue = xQueueCreate( mainQUEUE_SIZE, sizeof( xLCDMessage ) );\r
 \r
        /* Create the lwIP task.  This uses the lwIP RTOS abstraction layer.*/\r
-    xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+    xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
 \r
        /* Start the standard demo tasks - these serve no useful purpose other than\r
        to demonstrate the FreeRTOS API being used and to test the port. */\r
@@ -150,8 +150,8 @@ int main (void)
     vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-    xTaskCreate( vCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
-       xTaskCreate( vLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+    xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
@@ -163,7 +163,7 @@ int main (void)
 \r
     /* Will only get here if there was insufficient memory to create the idle\r
     task. */\r
-       return 0; \r
+       return 0;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -238,7 +238,7 @@ xLCDMessage xMessage;
        /* Initialise the LCD and display a startup message. */\r
        LCD_init();\r
        LCD_cur_off();\r
-    LCD_cls();    \r
+    LCD_cls();\r
     LCD_gotoxy( 1, 1 );\r
     LCD_puts( ( signed char * ) "www.FreeRTOS.org" );\r
 \r
@@ -246,7 +246,7 @@ xLCDMessage xMessage;
        {\r
                /* Wait for a message to arrive that requires displaying. */\r
                while( xQueueReceive( xLCDQueue, &xMessage, portMAX_DELAY ) != pdPASS );\r
-               \r
+\r
                /* Display the message.  Print each message to a different position. */\r
                LCD_cls();\r
                LCD_gotoxy( ( xMessage.xColumn & 0x07 ) + 1, ( xMessage.xColumn & 0x01 ) + 1 );\r
index fb87c478f0b6352e98611aef59dcd9fa9f9eea6e..2f9f9e0a2462f99739d283f32c5c07997298d001 100644 (file)
@@ -98,7 +98,7 @@ PT_THREAD(file_stats(struct httpd_state *s, char *ptr))
   PSOCK_BEGIN(&s->sout);\r
 \r
   PSOCK_GENERATOR_SEND(&s->sout, generate_file_stats, strchr(ptr, ' ') + 1);\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -139,14 +139,14 @@ static const char *states[] = {
   closing,\r
   time_wait,\r
   last_ack};\r
-  \r
+\r
 \r
 static unsigned short\r
 generate_tcp_stats(void *arg)\r
 {\r
   struct uip_conn *conn;\r
   struct httpd_state *s = (struct httpd_state *)arg;\r
-    \r
+\r
   conn = &uip_conns[s->count];\r
   return snprintf((char *)uip_appdata, UIP_APPDATA_SIZE,\r
                 "<tr><td>%d</td><td>%u.%u.%u.%u:%u</td><td>%s</td><td>%u</td><td>%u</td><td>%c %c</td></tr>\r\n",\r
@@ -166,7 +166,7 @@ generate_tcp_stats(void *arg)
 static\r
 PT_THREAD(tcp_stats(struct httpd_state *s, char *ptr))\r
 {\r
-  \r
+\r
   PSOCK_BEGIN(&s->sout);\r
 \r
   for(s->count = 0; s->count < UIP_CONNS; ++s->count) {\r
@@ -197,14 +197,14 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
       ++s->count) {\r
     PSOCK_GENERATOR_SEND(&s->sout, generate_net_stats, s);\r
   }\r
-  \r
+\r
 #endif /* UIP_STATISTICS */\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -212,9 +212,9 @@ generate_rtos_stats(void *arg)
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
-  \r
+\r
        return strlen( uip_appdata );\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -224,7 +224,7 @@ static
 PT_THREAD(rtos_stats(struct httpd_state *s, char *ptr))\r
 {\r
   PSOCK_BEGIN(&s->sout);\r
-  PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);  \r
+  PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -253,8 +253,8 @@ static unsigned short generate_io_state( void *arg )
                "<input type=\"checkbox\" name=\"LED2\" value=\"1\" %s>LED 2.7"\\r
                "<p>"\\r
                "<input type=\"text\" name=\"LCD\" value=\"Enter LCD text\" size=\"16\">",\r
-               pcStatus[ 0 ], \r
-               pcStatus[ 1 ], \r
+               pcStatus[ 0 ],\r
+               pcStatus[ 1 ],\r
                pcStatus[ 2 ] );\r
 \r
        return strlen( uip_appdata );\r
index 1529c225c57e42bf55b5dd27e544ee860d3ceee7..0ad51e301091c9719ff3e26686f0fecbac849332 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -180,8 +180,8 @@ int main( void )
        vParTestInitialise();\r
 \r
        /* Create the queue used to communicate with the LCD print task. */\r
-       xLCDQueue = xQueueCreate( mainLCD_QUEUE_LENGTH, sizeof( LCDMessage ) ); \r
-       \r
+       xLCDQueue = xQueueCreate( mainLCD_QUEUE_LENGTH, sizeof( LCDMessage ) );\r
+\r
        /* Create the standard demo application tasks.  See the WEB documentation\r
        for more information on these tasks. */\r
        vCreateBlockTimeTasks();\r
@@ -190,13 +190,13 @@ int main( void )
        vStartDynamicPriorityTasks();\r
        vStartLEDFlashTasks( mainLED_TASK_PRIORITY );\r
        vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
-       \r
+\r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( vPrintTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
-       xTaskCreate( vCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
-       \r
+       xTaskCreate( vPrintTask, "LCD", configMINIMAL_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* Execution will only reach here if there was insufficient heap to\r
        start the scheduler. */\r
        return 0;\r
@@ -205,7 +205,7 @@ int main( void )
 \r
 static void vCheckTask( void *pvParameters )\r
 {\r
-static unsigned long ulErrorDetected = pdFALSE;        \r
+static unsigned long ulErrorDetected = pdFALSE;\r
 portTickType xLastExecutionTime;\r
 unsigned char *ucErrorMessage = ( unsigned char * )"              FAIL";\r
 unsigned char *ucSuccessMessage = ( unsigned char * )"              PASS";\r
@@ -222,7 +222,7 @@ LCDMessage xMessage;
                vTaskDelayUntil( &xLastExecutionTime, mainCHECK_TASK_CYCLE_TIME );\r
 \r
                /* Has an error been found in any of the standard demo tasks? */\r
-               \r
+\r
                if( xAreIntegerMathsTaskStillRunning() != pdTRUE )\r
                {\r
                        ulErrorDetected = pdTRUE;\r
@@ -237,17 +237,17 @@ LCDMessage xMessage;
                {\r
                        ulErrorDetected = pdTRUE;\r
                }\r
-               \r
+\r
                if( xAreComTestTasksStillRunning() != pdTRUE )\r
                {\r
                        ulErrorDetected = pdTRUE;\r
-               }               \r
-               \r
+               }\r
+\r
                if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
                {\r
                        ulErrorDetected = pdTRUE;\r
-               }               \r
-       \r
+               }\r
+\r
                /* Calculate the LCD line on which we would like the message to\r
                be displayed.  The column variable is used for convenience as\r
                it is incremented each cycle anyway. */\r
@@ -256,19 +256,19 @@ LCDMessage xMessage;
                /* The message displayed depends on whether an error was found or\r
                not.  Any discovered error is latched.  Here the column variable\r
                is used as an index into the text string as a simple way of moving\r
-               the text from column to column. */              \r
+               the text from column to column. */\r
                if( ulErrorDetected == pdFALSE )\r
                {\r
                        xMessage.pucString = ucSuccessMessage + uxColumn;\r
                }\r
                else\r
                {\r
-                       xMessage.pucString = ucErrorMessage + uxColumn;                 \r
-               }               \r
+                       xMessage.pucString = ucErrorMessage + uxColumn;\r
+               }\r
 \r
                /* Send the message to the print task for display. */\r
                xQueueSend( xLCDQueue, ( void * ) &xMessage, mainNO_DELAY );\r
-               \r
+\r
                /* Make sure the message is printed in a different column the next\r
                time around. */\r
                uxColumn--;\r
@@ -289,7 +289,7 @@ LCDMessage xMessage;
        {\r
                /* Wait until a message arrives. */\r
                while( xQueueReceive( xLCDQueue, ( void * ) &xMessage, portMAX_DELAY ) != pdPASS );\r
-               \r
+\r
                /* The message contains the text to display, and the line on which the\r
                text should be displayed. */\r
                LCD_Clear();\r
@@ -300,51 +300,51 @@ LCDMessage xMessage;
 \r
 static void prvSetupHardware(void)\r
 {\r
-ErrorStatus OSC4MStartUpStatus01;      \r
+ErrorStatus OSC4MStartUpStatus01;\r
 \r
        /* ST provided routine. */\r
 \r
        /* MRCC system reset */\r
        MRCC_DeInit();\r
-       \r
+\r
        /* Wait for OSC4M start-up */\r
        OSC4MStartUpStatus01 = MRCC_WaitForOSC4MStartUp();\r
-       \r
+\r
        if(OSC4MStartUpStatus01 == SUCCESS)\r
        {\r
                /* Set HCLK to 60MHz */\r
                MRCC_HCLKConfig(MRCC_CKSYS_Div1);\r
-               \r
+\r
                /* Set CKTIM to 60MHz */\r
                MRCC_CKTIMConfig(MRCC_HCLK_Div1);\r
-               \r
+\r
                /* Set PCLK to 30MHz */\r
                MRCC_PCLKConfig(MRCC_CKTIM_Div2);\r
-               \r
+\r
                /* Enable Flash Burst mode */\r
                CFG_FLASHBurstConfig(CFG_FLASHBurst_Enable);\r
-               \r
+\r
                /* Set CK_SYS to 60 MHz */\r
                MRCC_CKSYSConfig(MRCC_CKSYS_OSC4MPLL, MRCC_PLL_Mul_15);\r
        }\r
-       \r
+\r
        /* GPIO pins optimized for 3V3 operation */\r
        MRCC_IOVoltageRangeConfig(MRCC_IOVoltageRange_3V3);\r
-       \r
+\r
        /* GPIO clock source enable */\r
        MRCC_PeripheralClockConfig(MRCC_Peripheral_GPIO, ENABLE);\r
-       \r
+\r
        /* EXTIT clock source enable */\r
        MRCC_PeripheralClockConfig(MRCC_Peripheral_EXTIT, ENABLE);\r
        /* TB clock source enable */\r
        MRCC_PeripheralClockConfig(MRCC_Peripheral_TB, ENABLE);\r
-       \r
+\r
        /* Initialize the demonstration menu */\r
        LCD_Init();\r
-       \r
+\r
        LCD_DisplayString(Line1, ( unsigned char * ) "www.FreeRTOS.org", BlackText);\r
        LCD_DisplayString(Line2, ( unsigned char * ) "  STR750 Demo  ", BlackText);\r
-       \r
+\r
        EIC_IRQCmd(ENABLE);\r
 }\r
 /*-----------------------------------------------------------*/\r
index a66542b3122c861f2e401de64e95a08e7458dfc0..b6a6de29f036f4768ac557d2acbbbebc8ce0660c 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -180,8 +180,8 @@ void main( void )
        vParTestInitialise();\r
 \r
        /* Create the queue used to communicate with the LCD print task. */\r
-       xLCDQueue = xQueueCreate( mainLCD_QUEUE_LENGTH, sizeof( LCDMessage ) ); \r
-       \r
+       xLCDQueue = xQueueCreate( mainLCD_QUEUE_LENGTH, sizeof( LCDMessage ) );\r
+\r
        /* Create the standard demo application tasks.  See the WEB documentation\r
        for more information on these tasks. */\r
        vCreateBlockTimeTasks();\r
@@ -190,13 +190,13 @@ void main( void )
        vStartDynamicPriorityTasks();\r
        vStartLEDFlashTasks( mainLED_TASK_PRIORITY );\r
        vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
-       \r
+\r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( vPrintTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
-       xTaskCreate( vCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
-       \r
+       xTaskCreate( vPrintTask, "LCD", configMINIMAL_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* Execution will only reach here if there was insufficient heap to\r
        start the scheduler. */\r
 }\r
@@ -204,7 +204,7 @@ void main( void )
 \r
 static void vCheckTask( void *pvParameters )\r
 {\r
-static unsigned long ulErrorDetected = pdFALSE;        \r
+static unsigned long ulErrorDetected = pdFALSE;\r
 portTickType xLastExecutionTime;\r
 unsigned char *cErrorMessage = "              FAIL";\r
 unsigned char *cSuccessMessage = "              PASS";\r
@@ -221,7 +221,7 @@ LCDMessage xMessage;
                vTaskDelayUntil( &xLastExecutionTime, mainCHECK_TASK_CYCLE_TIME );\r
 \r
                /* Has an error been found in any of the standard demo tasks? */\r
-               \r
+\r
                if( xAreIntegerMathsTaskStillRunning() != pdTRUE )\r
                {\r
                        ulErrorDetected = pdTRUE;\r
@@ -236,17 +236,17 @@ LCDMessage xMessage;
                {\r
                        ulErrorDetected = pdTRUE;\r
                }\r
-               \r
+\r
                if( xAreComTestTasksStillRunning() != pdTRUE )\r
                {\r
                        ulErrorDetected = pdTRUE;\r
-               }               \r
-               \r
+               }\r
+\r
                if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
                {\r
                        ulErrorDetected = pdTRUE;\r
-               }               \r
-       \r
+               }\r
+\r
                /* Calculate the LCD line on which we would like the message to\r
                be displayed.  The column variable is used for convenience as\r
                it is incremented each cycle anyway. */\r
@@ -255,19 +255,19 @@ LCDMessage xMessage;
                /* The message displayed depends on whether an error was found or\r
                not.  Any discovered error is latched.  Here the column variable\r
                is used as an index into the text string as a simple way of moving\r
-               the text from column to column. */              \r
+               the text from column to column. */\r
                if( ulErrorDetected == pdFALSE )\r
                {\r
                        xMessage.pucString = cSuccessMessage + uxColumn;\r
                }\r
                else\r
                {\r
-                       xMessage.pucString = cErrorMessage + uxColumn;                  \r
-               }               \r
+                       xMessage.pucString = cErrorMessage + uxColumn;\r
+               }\r
 \r
                /* Send the message to the print task for display. */\r
                xQueueSend( xLCDQueue, ( void * ) &xMessage, mainNO_DELAY );\r
-               \r
+\r
                /* Make sure the message is printed in a different column the next\r
                time around. */\r
                uxColumn--;\r
@@ -287,7 +287,7 @@ LCDMessage xMessage;
        {\r
                /* Wait until a message arrives. */\r
                while( xQueueReceive( xLCDQueue, ( void * ) &xMessage, portMAX_DELAY ) != pdPASS );\r
-               \r
+\r
                /* The message contains the text to display, and the line on which the\r
                text should be displayed. */\r
                LCD_Clear();\r
@@ -298,51 +298,51 @@ LCDMessage xMessage;
 \r
 static void prvSetupHardware(void)\r
 {\r
-ErrorStatus OSC4MStartUpStatus01;      \r
+ErrorStatus OSC4MStartUpStatus01;\r
 \r
        /* ST provided routine. */\r
 \r
        /* MRCC system reset */\r
        MRCC_DeInit();\r
-       \r
+\r
        /* Wait for OSC4M start-up */\r
        OSC4MStartUpStatus01 = MRCC_WaitForOSC4MStartUp();\r
-       \r
+\r
        if(OSC4MStartUpStatus01 == SUCCESS)\r
        {\r
                /* Set HCLK to 60MHz */\r
                MRCC_HCLKConfig(MRCC_CKSYS_Div1);\r
-               \r
+\r
                /* Set CKTIM to 60MHz */\r
                MRCC_CKTIMConfig(MRCC_HCLK_Div1);\r
-               \r
+\r
                /* Set PCLK to 30MHz */\r
                MRCC_PCLKConfig(MRCC_CKTIM_Div2);\r
-               \r
+\r
                /* Enable Flash Burst mode */\r
                CFG_FLASHBurstConfig(CFG_FLASHBurst_Enable);\r
-               \r
+\r
                /* Set CK_SYS to 60 MHz */\r
                MRCC_CKSYSConfig(MRCC_CKSYS_OSC4MPLL, MRCC_PLL_Mul_15);\r
        }\r
-       \r
+\r
        /* GPIO pins optimized for 3V3 operation */\r
        MRCC_IOVoltageRangeConfig(MRCC_IOVoltageRange_3V3);\r
-       \r
+\r
        /* GPIO clock source enable */\r
        MRCC_PeripheralClockConfig(MRCC_Peripheral_GPIO, ENABLE);\r
-       \r
+\r
        /* EXTIT clock source enable */\r
        MRCC_PeripheralClockConfig(MRCC_Peripheral_EXTIT, ENABLE);\r
        /* TB clock source enable */\r
        MRCC_PeripheralClockConfig(MRCC_Peripheral_TB, ENABLE);\r
-       \r
+\r
        /* Initialize the demonstration menu */\r
        LCD_Init();\r
-       \r
+\r
        LCD_DisplayString(Line1, "www.FreeRTOS.org", BlackText);\r
        LCD_DisplayString(Line2, "  STR750 Demo  ", BlackText);\r
-       \r
+\r
        EIC_IRQCmd(ENABLE);\r
 }\r
 /*-----------------------------------------------------------*/\r
index 968ac860b97462ecfadaa41e5f927680fa822246..0fb46cd506173192f84db07e8cade12f89991b2f 100644 (file)
@@ -123,7 +123,7 @@ portTickType StartTime, EndTime, Elapsed;
        {\r
                msg = &dummyptr;\r
        }\r
-               \r
+\r
        if(     timeout != 0 )\r
        {\r
                if(pdTRUE == xQueueReceive( mbox, &(*msg), timeout ) )\r
@@ -154,7 +154,7 @@ portTickType StartTime, EndTime, Elapsed;
                {\r
                        Elapsed = 1;\r
                }\r
-               return ( Elapsed ); // return time blocked TBD test     \r
+               return ( Elapsed ); // return time blocked TBD test\r
        }\r
 }\r
 \r
@@ -217,7 +217,7 @@ portTickType StartTime, EndTime, Elapsed;
                        {\r
                                Elapsed = 1;\r
                        }\r
-                       return (Elapsed); // return time blocked TBD test       \r
+                       return (Elapsed); // return time blocked TBD test\r
                }\r
                else\r
                {\r
@@ -237,8 +237,8 @@ portTickType StartTime, EndTime, Elapsed;
                        Elapsed = 1;\r
                }\r
 \r
-               return ( Elapsed ); // return time blocked      \r
-               \r
+               return ( Elapsed ); // return time blocked\r
+\r
        }\r
 }\r
 \r
@@ -275,7 +275,7 @@ sys_init(void)
 \r
        // keep track of how many threads have been created\r
        nextthread = 0;\r
-       \r
+\r
        s_sys_arch_state.nTaskCount = 0;\r
        sys_set_default_state();\r
 }\r
@@ -329,7 +329,7 @@ sys_thread_t sys_thread_new(void (* thread)(void *arg), void *arg, int prio)
 xTaskHandle CreatedTask;\r
 int result;\r
 \r
-       result = xTaskCreate(thread, ( signed char * ) s_sys_arch_state.cTaskName, s_sys_arch_state.nStackDepth, arg, prio, &CreatedTask );\r
+       result = xTaskCreate(thread, s_sys_arch_state.cTaskName, s_sys_arch_state.nStackDepth, arg, prio, &CreatedTask );\r
 \r
        // For each task created, store the task handle (pid) in the timers array.\r
        // This scheme doesn't allow for threads to be deleted\r
@@ -338,7 +338,7 @@ int result;
        if(result == pdPASS)\r
        {\r
                ++s_sys_arch_state.nTaskCount;\r
-               \r
+\r
                return CreatedTask;\r
        }\r
        else\r
index 53a91c212ded2ed0fe214e6f943c2d611390b48e..5dbd0452c0bb075732e16ba3f2e359ea08ff0861 100644 (file)
@@ -116,23 +116,23 @@ static void low_level_init(struct netif *netif)
   ENET_InitClocksGPIO();\r
   ENET_Init();\r
   ENET_Start();\r
-       \r
+\r
   portENTER_CRITICAL();\r
   {\r
       /*set MAC physical*/\r
       ENET_MAC->MAH = (MAC_ADDR5<<8) + MAC_ADDR4;\r
       ENET_MAC->MAL = (MAC_ADDR3<<24) + (MAC_ADDR2<<16) + (MAC_ADDR1<<8) + MAC_ADDR0;\r
-       \r
+\r
       VIC_Config( ENET_ITLine, VIC_IRQ, 1 );\r
-      VIC_ITCmd( ENET_ITLine, ENABLE );        \r
+      VIC_ITCmd( ENET_ITLine, ENABLE );\r
       ENET_DMA->ISR = DMI_RX_CURRENT_DONE;\r
       ENET_DMA->IER = DMI_RX_CURRENT_DONE;\r
   }\r
   portEXIT_CRITICAL();\r
 \r
   /* Create the task that handles the EMAC. */\r
-  xTaskCreate( ethernetif_input, ( signed char * ) "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, NULL, netifINTERFACE_TASK_PRIORITY, NULL );\r
-}      \r
+  xTaskCreate( ethernetif_input, "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, NULL, netifINTERFACE_TASK_PRIORITY, NULL );\r
+}\r
 \r
 \r
 /*\r
@@ -303,17 +303,17 @@ static void ethernetif_input( void * pvParameters )
                do\r
                {\r
                        ethernetif = s_pxNetIf->state;\r
-                       \r
+\r
                        /* move received packet into a new pbuf */\r
                        p = low_level_input( s_pxNetIf );\r
-                       \r
+\r
                        if( p == NULL )\r
                        {\r
                                /* No packet could be read.  Wait a for an interrupt to tell us\r
                                there is more data available. */\r
                                vEMACWaitForInput();\r
                        }\r
-               \r
+\r
                } while( p == NULL );\r
 \r
                /* points to packet payload, which starts with an Ethernet header */\r
@@ -336,12 +336,12 @@ static void ethernetif_input( void * pvParameters )
                                /* pass to network layer */\r
                                s_pxNetIf->input(p, s_pxNetIf);\r
                                break;\r
-               \r
+\r
                        case ETHTYPE_ARP:\r
                                  /* pass p to ARP module  */\r
                                  etharp_arp_input(s_pxNetIf, ethernetif->ethaddr, p);\r
                                  break;\r
-                               \r
+\r
                        default:\r
                                  pbuf_free(p);\r
                                  p = NULL;\r
@@ -394,7 +394,7 @@ ethernetif_init(struct netif *netif)
        netif->ifoutnucastpkts = 0;\r
        netif->ifoutdiscards = 0;\r
 #endif\r
-       \r
+\r
   netif->state = ethernetif;\r
   netif->name[0] = IFNAME0;\r
   netif->name[1] = IFNAME1;\r
@@ -419,11 +419,11 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
 \r
        /* Give the semaphore in case the lwIP task needs waking. */\r
        xSemaphoreGiveFromISR( s_xSemaphore, &xHigherPriorityTaskWoken );\r
-       \r
+\r
        /* Clear the interrupt. */\r
        ENET_DMA->ISR = DMI_RX_CURRENT_DONE;\r
-       \r
-       /* Switch tasks if necessary. */        \r
+\r
+       /* Switch tasks if necessary. */\r
        portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 6ad2b9b2dbc253f3db7a53f0e17de60ec8586fa0..ecbe93822a3980ac0869a368eb69cba61679e34e 100644 (file)
@@ -97,7 +97,7 @@ PT_THREAD(file_stats(struct httpd_state *s, char *ptr))
   PSOCK_BEGIN(&s->sout);\r
 \r
   PSOCK_GENERATOR_SEND(&s->sout, generate_file_stats, strchr(ptr, ' ') + 1);\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -138,14 +138,14 @@ static const char *states[] = {
   closing,\r
   time_wait,\r
   last_ack};\r
-  \r
+\r
 \r
 static unsigned short\r
 generate_tcp_stats(void *arg)\r
 {\r
   struct uip_conn *conn;\r
   struct httpd_state *s = (struct httpd_state *)arg;\r
-    \r
+\r
   conn = &uip_conns[s->count];\r
   return snprintf((char *)uip_appdata, UIP_APPDATA_SIZE,\r
                 "<tr><td>%d</td><td>%u.%u.%u.%u:%u</td><td>%s</td><td>%u</td><td>%u</td><td>%c %c</td></tr>\r\n",\r
@@ -165,7 +165,7 @@ generate_tcp_stats(void *arg)
 static\r
 PT_THREAD(tcp_stats(struct httpd_state *s, char *ptr))\r
 {\r
-  \r
+\r
   PSOCK_BEGIN(&s->sout);\r
 \r
   for(s->count = 0; s->count < UIP_CONNS; ++s->count) {\r
@@ -196,14 +196,14 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
       ++s->count) {\r
     PSOCK_GENERATOR_SEND(&s->sout, generate_net_stats, s);\r
   }\r
-  \r
+\r
 #endif /* UIP_STATISTICS */\r
-  \r
+\r
   PSOCK_END(&s->sout);\r
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -211,9 +211,9 @@ generate_rtos_stats(void *arg)
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
-  \r
+\r
   return strlen( uip_appdata );\r
 }\r
 /*---------------------------------------------------------------------------*/\r
@@ -225,7 +225,7 @@ PT_THREAD(rtos_stats(struct httpd_state *s, char *ptr))
   PSOCK_BEGIN(&s->sout);\r
 //     for( s->count = 0; s->count < 4; ++s->count )\r
 //     {\r
-               PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);  \r
+               PSOCK_GENERATOR_SEND(&s->sout, generate_rtos_stats, NULL);\r
 //     }\r
   PSOCK_END(&s->sout);\r
 }\r
index 4ecb23c1a1d1bc57e925fe3e806aabb7c275138e..fefab0cf64597a4eb077862ce73afa83035768f6 100644 (file)
@@ -30,7 +30,7 @@
  *****************************************************************************/\r
 \r
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -223,7 +223,7 @@ int main( void )
        task as described at the top of this file. */\r
        xTaskCreate(\r
                vErrorChecks\r
-               ,  (const signed portCHAR *)"ErrCheck"\r
+               ,  "ErrCheck"\r
                ,  configMINIMAL_STACK_SIZE\r
                ,  NULL\r
                ,  mainCHECK_TASK_PRIORITY\r
@@ -288,7 +288,7 @@ portBASE_TYPE bSuicidalTask = 0;
                ulMemCheckTaskRunningCount = mainCOUNT_INITIAL_VALUE;\r
 \r
                if( xTaskCreate( vMemCheckTask,\r
-                       ( signed portCHAR * ) "MEM_CHECK",\r
+                       "MEM_CHECK",\r
                        configMINIMAL_STACK_SIZE,\r
                        ( void * ) &ulMemCheckTaskRunningCount,\r
                        tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
index d101306dfa729001948d79dcae2b4515e375074d..0ae0020d9cdc2c0df3eb79f5699f67035436bacf 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
  * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
  * documentation provides more details of the demo application tasks.\r
- * \r
- * Main. c also creates a task called "Check".  This only executes every three \r
- * seconds but has the highest priority so is guaranteed to get processor time.  \r
- * Its main function is to check that all the other tasks are still operational.  \r
- * Each task that does not flash an LED maintains a unique count that is \r
- * incremented each time the task successfully completes its function.  Should \r
- * any error occur within such a task the count is permanently halted.  The \r
+ *\r
+ * Main. c also creates a task called "Check".  This only executes every three\r
+ * seconds but has the highest priority so is guaranteed to get processor time.\r
+ * Its main function is to check that all the other tasks are still operational.\r
+ * Each task that does not flash an LED maintains a unique count that is\r
+ * incremented each time the task successfully completes its function.  Should\r
+ * any error occur within such a task the count is permanently halted.  The\r
  * check task inspects the count of each task to ensure it has changed since\r
- * the last time the check task executed.  If all the count variables have \r
+ * the last time the check task executed.  If all the count variables have\r
  * changed all the tasks are still executing error free, and the check task\r
  * toggles an LED.  Should any task contain an error at any time the LED toggle\r
  * will stop.\r
 \r
 /*\r
 Changes from V1.2.0\r
-       \r
+\r
        + Changed the baud rate for the serial test from 19200 to 57600.\r
 \r
 Changes from V1.2.3\r
 \r
-       + The integer and comtest tasks are now used when the cooperative scheduler \r
+       + The integer and comtest tasks are now used when the cooperative scheduler\r
          is being used.  Previously they were only used with the preemptive\r
          scheduler.\r
 \r
@@ -118,7 +118,7 @@ Changes from V4.0.5
 \r
 #ifdef GCC_MEGA_AVR\r
        /* EEPROM routines used only with the WinAVR compiler. */\r
-       #include <avr/eeprom.h> \r
+       #include <avr/eeprom.h>\r
 #endif\r
 \r
 /* Scheduler include files. */\r
@@ -173,12 +173,12 @@ static void vErrorChecks( void *pvParameters );
 \r
 /*\r
  * Checks the unique counts of other tasks to ensure they are still operational.\r
- * Flashes an LED if everything is okay. \r
+ * Flashes an LED if everything is okay.\r
  */\r
 static void prvCheckOtherTasksAreStillRunning( void );\r
 \r
 /*\r
- * Called on boot to increment a count stored in the EEPROM.  This is used to \r
+ * Called on boot to increment a count stored in the EEPROM.  This is used to\r
  * ensure the CPU does not reset unexpectedly.\r
  */\r
 static void prvIncrementResetCount( void );\r
@@ -202,15 +202,15 @@ short main( void )
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
        vStartRegTestTasks();\r
-       \r
+\r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( vErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Create the co-routines that flash the LED's. */\r
        vStartFlashCoRoutines( mainNUM_FLASH_COROUTINES );\r
-       \r
-       /* In this port, to use preemptive scheduler define configUSE_PREEMPTION \r
-       as 1 in portmacro.h.  To use the cooperative scheduler define \r
+\r
+       /* In this port, to use preemptive scheduler define configUSE_PREEMPTION\r
+       as 1 in portmacro.h.  To use the cooperative scheduler define\r
        configUSE_PREEMPTION as 0. */\r
        vTaskStartScheduler();\r
 \r
@@ -231,11 +231,11 @@ static volatile unsigned long ulDummyVariable = 3UL;
        {\r
                vTaskDelay( mainCHECK_PERIOD );\r
 \r
-               /* Perform a bit of 32bit maths to ensure the registers used by the \r
-               integer tasks get some exercise. The result here is not important - \r
+               /* Perform a bit of 32bit maths to ensure the registers used by the\r
+               integer tasks get some exercise. The result here is not important -\r
                see the demo application documentation for more info. */\r
                ulDummyVariable *= 3;\r
-               \r
+\r
                prvCheckOtherTasksAreStillRunning();\r
        }\r
 }\r
@@ -264,7 +264,7 @@ static portBASE_TYPE xErrorHasOccurred = pdFALSE;
        {\r
                xErrorHasOccurred = pdTRUE;\r
        }\r
-       \r
+\r
        if( xErrorHasOccurred == pdFALSE )\r
        {\r
                /* Toggle the LED if everything is okay so we know if an error occurs even if not\r
index 273920dc706abe4758480748d7a90bcfaaf4aab3..71c2c69f1f58c4b8bb4da7d0afb2129fb35b5be2 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -84,8 +84,8 @@ portBASE_TYPE xRegTestError = pdFALSE;
 \r
 void vStartRegTestTasks( void )\r
 {\r
-       xTaskCreate( prvRegisterCheck1, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegisterCheck2, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );             \r
+       xTaskCreate( prvRegisterCheck1, "Reg1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegisterCheck2, "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -103,7 +103,7 @@ portBASE_TYPE xReturn;
        {\r
                xReturn = pdFALSE;\r
        }\r
-       \r
+\r
        return xReturn;\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -114,7 +114,7 @@ static void prvRegisterCheck1( void *pvParameters )
 \r
        for( ;; )\r
        {\r
-               asm(    "LDI    r31,    5"              );              \r
+               asm(    "LDI    r31,    5"              );\r
                asm(    "MOV    r0,             r31"    );\r
                asm(    "LDI    r31,    6"              );\r
                asm(    "MOV    r1,             r31"    );\r
@@ -257,7 +257,7 @@ static void prvRegisterCheck2( void *pvParameters )
 \r
        for( ;; )\r
        {\r
-               asm(    "LDI    r31,    1"              );              \r
+               asm(    "LDI    r31,    1"              );\r
                asm(    "MOV    r0,             r31"    );\r
                asm(    "LDI    r31,    2"              );\r
                asm(    "MOV    r1,             r31"    );\r
index 4fb459b25c0835714f1dd78fc4e9c8fb51068c38..494396e4fe2db922786ca15da5468d6659c94f45 100644 (file)
@@ -105,7 +105,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -178,7 +178,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -187,7 +187,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -225,22 +225,22 @@ static unsigned short generate_io_state( void *arg )
                pcStatus = "";\r
        }\r
 \r
-       usRawVoltage = ( unsigned short ) ACE_get_ppe_sample( xVoltageChannel );        \r
+       usRawVoltage = ( unsigned short ) ACE_get_ppe_sample( xVoltageChannel );\r
        sprintf( uip_appdata, "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED<p><p><p>Raw voltage input is %d", pcStatus, usRawVoltage );\r
 \r
        return strlen( uip_appdata );\r
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static unsigned short generate_runtime_stats( void *arg )\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
-       vTaskGetRunTimeStats( uip_appdata );\r
+\r
+       vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index b0d7049cde90266d1daa8b09ac7cfb3a29b66bef..8c2095e361fef18ac457d971073d44411fb2261c 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -188,17 +188,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
index 2948390e61a989b029643fa32da3eb6decb93b48..9c3626af73bb0c7fc2621f59d1cba36c34f78013 100644 (file)
@@ -302,27 +302,27 @@ int main(void)
        {\r
                /* Start the three application specific demo tasks, as described in the\r
                comments at the top of this     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( prvOLEDTask, ( signed char * ) "OLED", configMINIMAL_STACK_SIZE, NULL, mainOLED_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
+               xTaskCreate( prvOLEDTask, "OLED", configMINIMAL_STACK_SIZE, NULL, mainOLED_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
-                                                                       ( mainLED_TIMER_PERIOD_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
-                                                                       prvLEDTimerCallback                                     /* The callback function that switches the LED off. */\r
+               xLEDTimer = xTimerCreate(       "LEDTimer",                                     /* A text name, purely to help debugging. */\r
+                                                                       ( mainLED_TIMER_PERIOD_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
+                                                                       prvLEDTimerCallback                             /* The callback function that switches the LED off. */\r
                                                                );\r
 \r
                /* Create the software timer that performs the 'check' functionality,\r
                as described at the top of this file. */\r
-               xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+               xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                                  );\r
 \r
                /* Create a lot of 'standard demo' tasks. */\r
@@ -336,7 +336,7 @@ int main(void)
                vStartTimerDemoTask( mainTIMER_TEST_PERIOD );\r
 \r
                /* Create the web server task. */\r
-               xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
+               xTaskCreate( vuIP_Task, "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
                \r
                /* The suicide tasks must be created last, as they need to know how many\r
                tasks were running prior to their creation in order to ascertain whether\r
index b23e38aa725ad4405de4bb1b1257896b4a428ee7..5f56642c347273e03ffbade0558d0e13780a4991 100644 (file)
@@ -300,14 +300,14 @@ xTimerHandle xARPTimer, xPeriodicTimer;
        xEMACEventQueue = xQueueCreate( uipEVENT_QUEUE_LENGTH, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( signed char * ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer",                                     /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( signed char * ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 500UL / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
index 4fb459b25c0835714f1dd78fc4e9c8fb51068c38..494396e4fe2db922786ca15da5468d6659c94f45 100644 (file)
@@ -105,7 +105,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -178,7 +178,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -187,7 +187,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -225,22 +225,22 @@ static unsigned short generate_io_state( void *arg )
                pcStatus = "";\r
        }\r
 \r
-       usRawVoltage = ( unsigned short ) ACE_get_ppe_sample( xVoltageChannel );        \r
+       usRawVoltage = ( unsigned short ) ACE_get_ppe_sample( xVoltageChannel );\r
        sprintf( uip_appdata, "<input type=\"checkbox\" name=\"LED0\" value=\"1\" %s>LED<p><p><p>Raw voltage input is %d", pcStatus, usRawVoltage );\r
 \r
        return strlen( uip_appdata );\r
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static unsigned short generate_runtime_stats( void *arg )\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
-       vTaskGetRunTimeStats( uip_appdata );\r
+\r
+       vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index b0d7049cde90266d1daa8b09ac7cfb3a29b66bef..9fab4301799376cd418c40f282ada3e6198dcde8 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -188,17 +188,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
index 2948390e61a989b029643fa32da3eb6decb93b48..eaead76670c955a878a93aed09fdda9d02411a87 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -302,27 +302,27 @@ int main(void)
        {\r
                /* Start the three application specific demo tasks, as described in the\r
                comments at the top of this     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( prvOLEDTask, ( signed char * ) "OLED", configMINIMAL_STACK_SIZE, NULL, mainOLED_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
+               xTaskCreate( prvOLEDTask, "OLED", configMINIMAL_STACK_SIZE, NULL, mainOLED_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
-                                                                       ( mainLED_TIMER_PERIOD_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
-                                                                       prvLEDTimerCallback                                     /* The callback function that switches the LED off. */\r
+               xLEDTimer = xTimerCreate(       "LEDTimer",                                     /* A text name, purely to help debugging. */\r
+                                                                       ( mainLED_TIMER_PERIOD_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
+                                                                       prvLEDTimerCallback                             /* The callback function that switches the LED off. */\r
                                                                );\r
 \r
                /* Create the software timer that performs the 'check' functionality,\r
                as described at the top of this file. */\r
-               xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+               xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                                  );\r
 \r
                /* Create a lot of 'standard demo' tasks. */\r
@@ -336,8 +336,8 @@ int main(void)
                vStartTimerDemoTask( mainTIMER_TEST_PERIOD );\r
 \r
                /* Create the web server task. */\r
-               xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
-               \r
+               xTaskCreate( vuIP_Task, "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
+\r
                /* The suicide tasks must be created last, as they need to know how many\r
                tasks were running prior to their creation in order to ascertain whether\r
                or not the correct/expected number of tasks are running at any given\r
@@ -462,8 +462,8 @@ const unsigned long ulValueToSend = 100UL;
 \r
        /* The timer command queue will have been filled when the timer test tasks\r
        were created in main() (this is part of the test they perform).  Therefore,\r
-       while the check timer can be created in main(), it cannot be started from \r
-       main().  Once the scheduler has started, the timer service task will drain \r
+       while the check timer can be created in main(), it cannot be started from\r
+       main().  Once the scheduler has started, the timer service task will drain\r
        the command queue, and now the check timer can be started successfully. */\r
        xTimerStart( xCheckTimer, portMAX_DELAY );\r
 \r
@@ -539,10 +539,10 @@ static portTickType xLastScrollTime = 0UL;
        {\r
                /* Wait until it is time to update the OLED again. */\r
                vTaskDelayUntil( &xLastScrollTime, mainOLED_PERIOD_MS );\r
-               \r
+\r
                xOLEDData.char_offset1   = ucOffset1++;\r
                xOLEDData.char_offset2   = ucOffset2++;\r
-       \r
+\r
                OLED_write_data( &xOLEDData, BOTH_LINES );\r
        }\r
 }\r
@@ -551,13 +551,13 @@ static portTickType xLastScrollTime = 0UL;
 static void prvSetupHardware( void )\r
 {\r
        SystemCoreClockUpdate();\r
-       \r
+\r
        /* Disable the Watch Dog Timer */\r
        MSS_WD_disable( );\r
 \r
        /* Configure the GPIO for the LEDs. */\r
        vParTestInitialise();\r
-       \r
+\r
        /* ACE Initialization */\r
        ACE_init();\r
 \r
@@ -646,12 +646,12 @@ unsigned long *pulHighWord, *pulLowWord;
 \r
        pulHighWord = ( unsigned long * ) &ullCurrentValue;\r
        pulLowWord = pulHighWord++;\r
-       \r
+\r
        MSS_TIM64_get_current_value( ( uint32_t * ) pulHighWord, ( uint32_t * ) pulLowWord );\r
-       \r
+\r
        /* Convert the down count into an upcount. */\r
        ullCurrentValue = ulMax64BitValue - ullCurrentValue;\r
-       \r
+\r
        /* Scale to a 32bit number of suitable frequency. */\r
        ullCurrentValue >>= 13;\r
 \r
index b23e38aa725ad4405de4bb1b1257896b4a428ee7..0098d3aea0b2d14f6cdd5ff39971d028735deb34 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -192,7 +192,7 @@ long lPacketLength;
                if( ( lPacketLength > 0 ) && ( uip_buf != NULL ) )\r
                {\r
                        uip_len = ( u16_t ) lPacketLength;\r
-                       \r
+\r
                        /* Standard uIP loop taken from the uIP manual. */\r
                        if( xHeader->type == htons( UIP_ETHTYPE_IP ) )\r
                        {\r
@@ -237,7 +237,7 @@ long lPacketLength;
                                for( i = 0; i < UIP_CONNS; i++ )\r
                                {\r
                                        uip_periodic( i );\r
-       \r
+\r
                                        /* If the above function invocation resulted in data that\r
                                        should be sent out on the network, the global variable\r
                                        uip_len is set to a value > 0. */\r
@@ -300,14 +300,14 @@ xTimerHandle xARPTimer, xPeriodicTimer;
        xEMACEventQueue = xQueueCreate( uipEVENT_QUEUE_LENGTH, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( signed char * ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( signed char * ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 500UL / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -418,7 +418,7 @@ char *c;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 21214a388d4c781a396e70b536b1ebfd0a6875fb..011577b1f509c6d1b4d874e883fc9550669ef973 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -154,14 +154,14 @@ void main_blinky( void )
        {\r
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
-               xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
-                                       configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
-                                       NULL,                                                                   /* The parameter passed to the task - not used in this case. */\r
-                                       mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
-                                       NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
-\r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueReceiveTask,                               /* The function that implements the task. */\r
+                                       "Rx",                                                           /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       configMINIMAL_STACK_SIZE,                       /* The size of the stack to allocate to the task. */\r
+                                       NULL,                                                           /* The parameter passed to the task - not used in this case. */\r
+                                       mainQUEUE_RECEIVE_TASK_PRIORITY,        /* The priority assigned to the task. */\r
+                                       NULL );                                                         /* The task handle is not required, so NULL is passed. */\r
+\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index b1c0f5ece1643a19347b216850fade29aae8a34a..cc529774d2f307467fa30c08e79da77954391f41 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME.  PLEASE VISIT\r
@@ -205,7 +205,7 @@ void vRegisterSampleCLICommands( void )
 \r
 static portBASE_TYPE prvTaskStatsCommand( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString )\r
 {\r
-const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stack      #\r\n************************************************\r\n";\r
+const char *const pcHeader = "Task          State  Priority  Stack     #\r\n************************************************\r\n";\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -215,8 +215,8 @@ const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stac
        configASSERT( pcWriteBuffer );\r
 \r
        /* Generate a table of task stats. */\r
-       strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
-       vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+       strcpy( ( char * ) pcWriteBuffer, pcHeader );\r
+       vTaskList( pcWriteBuffer + strlen( pcHeader ) );\r
 \r
        /* There is no more data to return after this single string, so return\r
        pdFALSE. */\r
@@ -226,7 +226,7 @@ const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stac
 \r
 static portBASE_TYPE prvRunTimeStatsCommand( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString )\r
 {\r
-const int8_t * const pcHeader = ( int8_t * ) "Task            Abs Time      % Time\r\n****************************************\r\n";\r
+const char * const pcHeader = "Task            Abs Time      % Time\r\n****************************************\r\n";\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -236,8 +236,8 @@ const int8_t * const pcHeader = ( int8_t * ) "Task            Abs Time      % Ti
        configASSERT( pcWriteBuffer );\r
 \r
        /* Generate a table of task stats. */\r
-       strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
-       vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+       strcpy( ( char * ) pcWriteBuffer, pcHeader );\r
+       vTaskGetRunTimeStats( ( ( char * ) pcWriteBuffer ) + strlen( pcHeader ) );\r
 \r
        /* There is no more data to return after this single string, so return\r
        pdFALSE. */\r
index d89e08f080c8ed7511b1bc73e0cf31c0333cd173..ae04a9e98ceb0d939187042eacdeb44b5a7118cd 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -317,12 +317,12 @@ void main_full( void )
 \r
        /* Create the register check tasks, as described at the top of this\r
        file */\r
-       xTaskCreate( prvRegTestTaskEntry1, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, mainREG_TEST_TASK_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTestTaskEntry2, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, mainREG_TEST_TASK_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTaskEntry1, "Reg1", configMINIMAL_STACK_SIZE, mainREG_TEST_TASK_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTaskEntry2, "Reg2", configMINIMAL_STACK_SIZE, mainREG_TEST_TASK_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the task that performs the 'check' functionality,     as described at\r
        the top of this file. */\r
-       xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The set of tasks created by the following function call have to be\r
        created last as they keep account of the number of tasks they expect to see\r
index de336cd98f028c76aa399604b4fd4d154acaabf2..27fe55a810e361e19407b4e23aba6407ee59f94c 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -194,17 +194,17 @@ int main( void )
        port and provide some APU usage examples. */\r
     vStartIntegerMathTasks( mainINTEGER_TASK_PRIORITY );\r
     vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );\r
-       vStartRecursiveMutexTasks();    \r
+       vStartRecursiveMutexTasks();\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
        vCreateBlockTimeTasks();\r
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
-       vStartQueuePeekTasks(); \r
-       vStartLEDFlashTasks( mainLED_TASK_PRIORITY );   \r
+       vStartQueuePeekTasks();\r
+       vStartLEDFlashTasks( mainLED_TASK_PRIORITY );\r
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainBAUD_RATE, mainCOM_TEST_LED );\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-       xTaskCreate( prvLCDTask, ( signed char * ) "LCD", mainLCD_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvLCDTask, "LCD", mainLCD_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -234,7 +234,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
        if( ulTicksSinceLastDisplay >= mainCHECK_DELAY )\r
        {\r
                ulTicksSinceLastDisplay = 0;\r
-               \r
+\r
                /* Has an error been found in any task? */\r
                if( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
                {\r
@@ -263,16 +263,16 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
                else if( xAreQueuePeekTasksStillRunning() != pdTRUE )\r
                {\r
                        xMessage.pcMessage = "ERROR IN PEEK Q";\r
-               }                       \r
+               }\r
                else if( xAreRecursiveMutexTasksStillRunning() != pdTRUE )\r
                {\r
                        xMessage.pcMessage = "ERROR IN REC MUTEX";\r
-               }               \r
+               }\r
                else if( xAreComTestTasksStillRunning() != pdTRUE )\r
                {\r
                        xMessage.pcMessage = "ERROR IN COMTEST";\r
                }\r
-               \r
+\r
                /* Send the message to the LCD gatekeeper for display. */\r
                xHigherPriorityTaskWoken = pdFALSE;\r
                xQueueSendFromISR( xLCDQueue, &xMessage, &xHigherPriorityTaskWoken );\r
@@ -300,10 +300,10 @@ const unsigned long ulMaxY = 250, ulYIncrement = 22, ulWidth = 250, ulHeight = 2
 \r
     /* Initialize LCD. */\r
     LCDD_Initialize();\r
-    LCDD_Start();      \r
+    LCDD_Start();\r
        LCDD_Fill( ( void * ) BOARD_LCD_BASE, COLOR_WHITE );\r
        LCDD_DrawString( ( void * ) BOARD_LCD_BASE, 1, ulY + 3, "  www.FreeRTOS.org", COLOR_BLACK );\r
-       \r
+\r
        for( ;; )\r
        {\r
                /* Wait for a message from the check function (which is executed in\r
@@ -312,10 +312,10 @@ const unsigned long ulMaxY = 250, ulYIncrement = 22, ulWidth = 250, ulHeight = 2
 \r
                /* Clear the space where the old message was. */\r
         LCDD_DrawRectangle( ( void * ) BOARD_LCD_BASE, 0, ulY, ulWidth, ulHeight, COLOR_WHITE );\r
-               \r
+\r
                /* Increment to the next drawing position. */\r
                ulY += ulYIncrement;\r
-               \r
+\r
                /* Have the Y position moved past the end of the LCD? */\r
                if( ulY >= ulMaxY )\r
                {\r
@@ -324,7 +324,7 @@ const unsigned long ulMaxY = 250, ulYIncrement = 22, ulWidth = 250, ulHeight = 2
 \r
                /* Draw a new rectangle, in which the message will be written. */\r
         LCDD_DrawRectangle( ( void * ) BOARD_LCD_BASE, 0, ulY, ulWidth, ulHeight, COLOR_GREEN );\r
-               \r
+\r
                /* Write the message. */\r
         LCDD_DrawString( ( void * ) BOARD_LCD_BASE, ulX, ulY + 3, xMessage.pcMessage, COLOR_BLACK );\r
        }\r
index d7d38c885e7aa4c88db6579b7640be719eaa6807..d611d7cd4cf1d4c77bb535ddf4a4ce29470188b3 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -158,8 +158,8 @@ void vAltStartComTestTasks( unsigned portBASE_TYPE uxPriority, unsigned long ulB
        xSerialPortInitMinimal( ulBaudRate, comBUFFER_LEN );\r
 \r
        /* The Tx task is spawned with a lower priority than the Rx task. */\r
-       xTaskCreate( vComTxTask, ( signed char * ) "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
-       xTaskCreate( vComRxTask, ( signed char * ) "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComTxTask, "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComRxTask, "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index daf616980e911be96769ddd1c6f1bc5261ad5ae6..8a433acd025837a0ad1b6a36be89d2d59bba3a15 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -127,7 +127,7 @@ will remove items as they are added, meaning the send task should always find
 the queue empty. */\r
 #define mainQUEUE_LENGTH                                       ( 1 )\r
 \r
-/* Values passed to the two tasks just to check the task parameter \r
+/* Values passed to the two tasks just to check the task parameter\r
 functionality. */\r
 #define mainQUEUE_SEND_PARAMETER                       ( 0x1111UL )\r
 #define mainQUEUE_RECEIVE_PARAMETER                    ( 0x22UL )\r
@@ -163,13 +163,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 5af883b04c3c4a21dbae4553e8e5b33a39d5ddc2..7d608d457bece2c54044780f46724c9d8258d6fb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -76,8 +76,8 @@
  ******************************************************************************\r
  *\r
  * main_full() creates all the demo application tasks and a software timer, then\r
- * starts the scheduler.  The web documentation provides more details of the \r
- * standard demo application tasks, which provide no particular functionality, \r
+ * starts the scheduler.  The web documentation provides more details of the\r
+ * standard demo application tasks, which provide no particular functionality,\r
  * but do provide a good example of how to use the FreeRTOS API.\r
  *\r
  * In addition to the standard demo tasks, the following tasks and tests are\r
  *\r
  * "Check" timer - The check software timer period is initially set to three\r
  * seconds.  The callback function associated with the check software timer\r
- * checks that all the standard demo tasks are not only still executing, but \r
- * are executing without reporting any errors.  If the check software timer \r
- * discovers that a task has either stalled, or reported an error, then it \r
- * changes its own execution period from the initial three seconds, to just \r
- * 200ms.  The check software timer callback function also toggles the green \r
- * LED each time it is called.  This provides a visual indication of the system \r
- * status:  If the green LED toggles every three seconds, then no issues have \r
- * been discovered.  If the green LED toggles every 200ms, then an issue has \r
+ * checks that all the standard demo tasks are not only still executing, but\r
+ * are executing without reporting any errors.  If the check software timer\r
+ * discovers that a task has either stalled, or reported an error, then it\r
+ * changes its own execution period from the initial three seconds, to just\r
+ * 200ms.  The check software timer callback function also toggles the green\r
+ * LED each time it is called.  This provides a visual indication of the system\r
+ * status:  If the green LED toggles every three seconds, then no issues have\r
+ * been discovered.  If the green LED toggles every 200ms, then an issue has\r
  * been discovered with at least one task.\r
  *\r
  * See the documentation page for this demo on the FreeRTOS.org web site for\r
- * full information, including hardware setup requirements. \r
+ * full information, including hardware setup requirements.\r
  */\r
 \r
 /* Standard includes. */\r
@@ -191,35 +191,35 @@ xTimerHandle xCheckTimer = NULL;
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
        vStartLEDFlashTimers( mainNUMBER_OF_FLASH_TIMERS_LEDS );\r
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
-       \r
+\r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                                         );    \r
-       \r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                         );\r
+\r
        if( xCheckTimer != NULL )\r
        {\r
                xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
        }\r
 \r
-       /* The set of tasks created by the following function call have to be \r
-       created last as they keep account of the number of tasks they expect to see \r
+       /* The set of tasks created by the following function call have to be\r
+       created last as they keep account of the number of tasks they expect to see\r
        running. */\r
        vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* If all is well, the scheduler will now be running, and the following line\r
        will never be reached.  If the following line does execute, then there was\r
        insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
        to be created.  See the memory management section on the FreeRTOS web site\r
        for more details. */\r
-       for( ;; );      \r
+       for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -275,7 +275,7 @@ unsigned long ulErrorFound = pdFALSE;
        {\r
                ulErrorFound = pdTRUE;\r
        }\r
-       \r
+\r
        if( xAreComTestTasksStillRunning() != pdTRUE )\r
        {\r
                ulErrorFound = pdTRUE;\r
@@ -285,7 +285,7 @@ unsigned long ulErrorFound = pdFALSE;
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
        vParTestToggleLED( mainCHECK_LED );\r
-       \r
+\r
        /* Have any errors been latch in ulErrorFound?  If so, shorten the\r
        period of the check timer to mainERROR_CHECK_TIMER_PERIOD_MS milliseconds.\r
        This will result in an increase in the rate at which mainCHECK_LED\r
@@ -295,7 +295,7 @@ unsigned long ulErrorFound = pdFALSE;
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
+\r
                        /* This call to xTimerChangePeriod() uses a zero block time.\r
                        Functions called from inside of a timer callback function must\r
                        *never* attempt to block. */\r
index d7d38c885e7aa4c88db6579b7640be719eaa6807..d611d7cd4cf1d4c77bb535ddf4a4ce29470188b3 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -158,8 +158,8 @@ void vAltStartComTestTasks( unsigned portBASE_TYPE uxPriority, unsigned long ulB
        xSerialPortInitMinimal( ulBaudRate, comBUFFER_LEN );\r
 \r
        /* The Tx task is spawned with a lower priority than the Rx task. */\r
-       xTaskCreate( vComTxTask, ( signed char * ) "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
-       xTaskCreate( vComRxTask, ( signed char * ) "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComTxTask, "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComRxTask, "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index daf616980e911be96769ddd1c6f1bc5261ad5ae6..8a433acd025837a0ad1b6a36be89d2d59bba3a15 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -127,7 +127,7 @@ will remove items as they are added, meaning the send task should always find
 the queue empty. */\r
 #define mainQUEUE_LENGTH                                       ( 1 )\r
 \r
-/* Values passed to the two tasks just to check the task parameter \r
+/* Values passed to the two tasks just to check the task parameter\r
 functionality. */\r
 #define mainQUEUE_SEND_PARAMETER                       ( 0x1111UL )\r
 #define mainQUEUE_RECEIVE_PARAMETER                    ( 0x22UL )\r
@@ -163,13 +163,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 5af883b04c3c4a21dbae4553e8e5b33a39d5ddc2..7d608d457bece2c54044780f46724c9d8258d6fb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -76,8 +76,8 @@
  ******************************************************************************\r
  *\r
  * main_full() creates all the demo application tasks and a software timer, then\r
- * starts the scheduler.  The web documentation provides more details of the \r
- * standard demo application tasks, which provide no particular functionality, \r
+ * starts the scheduler.  The web documentation provides more details of the\r
+ * standard demo application tasks, which provide no particular functionality,\r
  * but do provide a good example of how to use the FreeRTOS API.\r
  *\r
  * In addition to the standard demo tasks, the following tasks and tests are\r
  *\r
  * "Check" timer - The check software timer period is initially set to three\r
  * seconds.  The callback function associated with the check software timer\r
- * checks that all the standard demo tasks are not only still executing, but \r
- * are executing without reporting any errors.  If the check software timer \r
- * discovers that a task has either stalled, or reported an error, then it \r
- * changes its own execution period from the initial three seconds, to just \r
- * 200ms.  The check software timer callback function also toggles the green \r
- * LED each time it is called.  This provides a visual indication of the system \r
- * status:  If the green LED toggles every three seconds, then no issues have \r
- * been discovered.  If the green LED toggles every 200ms, then an issue has \r
+ * checks that all the standard demo tasks are not only still executing, but\r
+ * are executing without reporting any errors.  If the check software timer\r
+ * discovers that a task has either stalled, or reported an error, then it\r
+ * changes its own execution period from the initial three seconds, to just\r
+ * 200ms.  The check software timer callback function also toggles the green\r
+ * LED each time it is called.  This provides a visual indication of the system\r
+ * status:  If the green LED toggles every three seconds, then no issues have\r
+ * been discovered.  If the green LED toggles every 200ms, then an issue has\r
  * been discovered with at least one task.\r
  *\r
  * See the documentation page for this demo on the FreeRTOS.org web site for\r
- * full information, including hardware setup requirements. \r
+ * full information, including hardware setup requirements.\r
  */\r
 \r
 /* Standard includes. */\r
@@ -191,35 +191,35 @@ xTimerHandle xCheckTimer = NULL;
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
        vStartLEDFlashTimers( mainNUMBER_OF_FLASH_TIMERS_LEDS );\r
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
-       \r
+\r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                                         );    \r
-       \r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                         );\r
+\r
        if( xCheckTimer != NULL )\r
        {\r
                xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
        }\r
 \r
-       /* The set of tasks created by the following function call have to be \r
-       created last as they keep account of the number of tasks they expect to see \r
+       /* The set of tasks created by the following function call have to be\r
+       created last as they keep account of the number of tasks they expect to see\r
        running. */\r
        vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* If all is well, the scheduler will now be running, and the following line\r
        will never be reached.  If the following line does execute, then there was\r
        insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
        to be created.  See the memory management section on the FreeRTOS web site\r
        for more details. */\r
-       for( ;; );      \r
+       for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -275,7 +275,7 @@ unsigned long ulErrorFound = pdFALSE;
        {\r
                ulErrorFound = pdTRUE;\r
        }\r
-       \r
+\r
        if( xAreComTestTasksStillRunning() != pdTRUE )\r
        {\r
                ulErrorFound = pdTRUE;\r
@@ -285,7 +285,7 @@ unsigned long ulErrorFound = pdFALSE;
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
        vParTestToggleLED( mainCHECK_LED );\r
-       \r
+\r
        /* Have any errors been latch in ulErrorFound?  If so, shorten the\r
        period of the check timer to mainERROR_CHECK_TIMER_PERIOD_MS milliseconds.\r
        This will result in an increase in the rate at which mainCHECK_LED\r
@@ -295,7 +295,7 @@ unsigned long ulErrorFound = pdFALSE;
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
+\r
                        /* This call to xTimerChangePeriod() uses a zero block time.\r
                        Functions called from inside of a timer callback function must\r
                        *never* attempt to block. */\r
index f49dfcc80495aa6ca6c539789f1fb1cc2a995b4e..548f042c5011d03aa24145cd3a151069b14f2064 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -122,7 +122,7 @@ extern void vSetupTimerTest( void );
 /*\r
  * The Check task periodical interrogates each of the running tests to\r
  * ensure that they are still executing correctly.\r
- * If all the tests pass, then the LCD is updated with Pass, the number of \r
+ * If all the tests pass, then the LCD is updated with Pass, the number of\r
  * iterations and the Jitter time calculated but the Fast Interrupt Test.\r
  * If any one of the tests fail, it is indicated with an error code printed on\r
  * the display. This indicator won't disappear until the device is reset.\r
@@ -157,7 +157,7 @@ void main( void )
        vStartInterruptQueueTasks();\r
 \r
        /* Start the error checking task. */\r
-       ( void ) xTaskCreate( vCheckTask, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       ( void ) xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Configure the timers used by the fast interrupt timer test. */\r
        vSetupTimerTest();\r
@@ -204,14 +204,14 @@ extern cyisraddress CyRamVectors[];
 \r
        /* Start the UART. */\r
        UART_1_Start();\r
-       \r
+\r
        /* Initialise the LEDs. */\r
        vParTestInitialise();\r
-       \r
+\r
        /* Start the PWM modules that drive the IntQueue tests. */\r
        High_Frequency_PWM_0_Start();\r
        High_Frequency_PWM_1_Start();\r
-       \r
+\r
        /* Start the timers for the Jitter test. */\r
        Timer_20KHz_Start();\r
        Timer_48MHz_Start();\r
@@ -228,73 +228,73 @@ extern unsigned portSHORT usMaxJitter;
 \r
        /* Intialise the sleeper. */\r
        xDelay = xTaskGetTickCount();\r
-       \r
+\r
        for( ;; )\r
        {\r
                /* Perform this check every mainCHECK_DELAY milliseconds. */\r
                vTaskDelayUntil( &xDelay, mainCHECK_DELAY );\r
-               \r
+\r
                /* Check that all of the Demo tasks are still running. */\r
                if( pdTRUE != xAreBlockingQueuesStillRunning() )\r
                {\r
                        usErrorCode |= 0x1;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreBlockTimeTestTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x2;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreCountingSemaphoreTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x4;\r
                }\r
-               \r
+\r
                if( pdTRUE != xIsCreateTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x8;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreDynamicPriorityTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x10;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreMathsTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x20;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreGenericQueueTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x40;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreIntegerMathsTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x80;\r
                }\r
-               \r
+\r
                if( pdTRUE != xArePollingQueuesStillRunning() )\r
                {\r
                        usErrorCode |= 0x100;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreQueuePeekTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x200;\r
                }\r
-                               \r
+\r
                if( pdTRUE != xAreSemaphoreTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x400;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreComTestTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x800;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreIntQueueTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x1000;\r
index f49dfcc80495aa6ca6c539789f1fb1cc2a995b4e..548f042c5011d03aa24145cd3a151069b14f2064 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -122,7 +122,7 @@ extern void vSetupTimerTest( void );
 /*\r
  * The Check task periodical interrogates each of the running tests to\r
  * ensure that they are still executing correctly.\r
- * If all the tests pass, then the LCD is updated with Pass, the number of \r
+ * If all the tests pass, then the LCD is updated with Pass, the number of\r
  * iterations and the Jitter time calculated but the Fast Interrupt Test.\r
  * If any one of the tests fail, it is indicated with an error code printed on\r
  * the display. This indicator won't disappear until the device is reset.\r
@@ -157,7 +157,7 @@ void main( void )
        vStartInterruptQueueTasks();\r
 \r
        /* Start the error checking task. */\r
-       ( void ) xTaskCreate( vCheckTask, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       ( void ) xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Configure the timers used by the fast interrupt timer test. */\r
        vSetupTimerTest();\r
@@ -204,14 +204,14 @@ extern cyisraddress CyRamVectors[];
 \r
        /* Start the UART. */\r
        UART_1_Start();\r
-       \r
+\r
        /* Initialise the LEDs. */\r
        vParTestInitialise();\r
-       \r
+\r
        /* Start the PWM modules that drive the IntQueue tests. */\r
        High_Frequency_PWM_0_Start();\r
        High_Frequency_PWM_1_Start();\r
-       \r
+\r
        /* Start the timers for the Jitter test. */\r
        Timer_20KHz_Start();\r
        Timer_48MHz_Start();\r
@@ -228,73 +228,73 @@ extern unsigned portSHORT usMaxJitter;
 \r
        /* Intialise the sleeper. */\r
        xDelay = xTaskGetTickCount();\r
-       \r
+\r
        for( ;; )\r
        {\r
                /* Perform this check every mainCHECK_DELAY milliseconds. */\r
                vTaskDelayUntil( &xDelay, mainCHECK_DELAY );\r
-               \r
+\r
                /* Check that all of the Demo tasks are still running. */\r
                if( pdTRUE != xAreBlockingQueuesStillRunning() )\r
                {\r
                        usErrorCode |= 0x1;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreBlockTimeTestTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x2;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreCountingSemaphoreTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x4;\r
                }\r
-               \r
+\r
                if( pdTRUE != xIsCreateTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x8;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreDynamicPriorityTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x10;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreMathsTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x20;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreGenericQueueTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x40;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreIntegerMathsTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x80;\r
                }\r
-               \r
+\r
                if( pdTRUE != xArePollingQueuesStillRunning() )\r
                {\r
                        usErrorCode |= 0x100;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreQueuePeekTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x200;\r
                }\r
-                               \r
+\r
                if( pdTRUE != xAreSemaphoreTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x400;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreComTestTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x800;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreIntQueueTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x1000;\r
index f49dfcc80495aa6ca6c539789f1fb1cc2a995b4e..548f042c5011d03aa24145cd3a151069b14f2064 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -122,7 +122,7 @@ extern void vSetupTimerTest( void );
 /*\r
  * The Check task periodical interrogates each of the running tests to\r
  * ensure that they are still executing correctly.\r
- * If all the tests pass, then the LCD is updated with Pass, the number of \r
+ * If all the tests pass, then the LCD is updated with Pass, the number of\r
  * iterations and the Jitter time calculated but the Fast Interrupt Test.\r
  * If any one of the tests fail, it is indicated with an error code printed on\r
  * the display. This indicator won't disappear until the device is reset.\r
@@ -157,7 +157,7 @@ void main( void )
        vStartInterruptQueueTasks();\r
 \r
        /* Start the error checking task. */\r
-       ( void ) xTaskCreate( vCheckTask, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       ( void ) xTaskCreate( vCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Configure the timers used by the fast interrupt timer test. */\r
        vSetupTimerTest();\r
@@ -204,14 +204,14 @@ extern cyisraddress CyRamVectors[];
 \r
        /* Start the UART. */\r
        UART_1_Start();\r
-       \r
+\r
        /* Initialise the LEDs. */\r
        vParTestInitialise();\r
-       \r
+\r
        /* Start the PWM modules that drive the IntQueue tests. */\r
        High_Frequency_PWM_0_Start();\r
        High_Frequency_PWM_1_Start();\r
-       \r
+\r
        /* Start the timers for the Jitter test. */\r
        Timer_20KHz_Start();\r
        Timer_48MHz_Start();\r
@@ -228,73 +228,73 @@ extern unsigned portSHORT usMaxJitter;
 \r
        /* Intialise the sleeper. */\r
        xDelay = xTaskGetTickCount();\r
-       \r
+\r
        for( ;; )\r
        {\r
                /* Perform this check every mainCHECK_DELAY milliseconds. */\r
                vTaskDelayUntil( &xDelay, mainCHECK_DELAY );\r
-               \r
+\r
                /* Check that all of the Demo tasks are still running. */\r
                if( pdTRUE != xAreBlockingQueuesStillRunning() )\r
                {\r
                        usErrorCode |= 0x1;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreBlockTimeTestTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x2;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreCountingSemaphoreTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x4;\r
                }\r
-               \r
+\r
                if( pdTRUE != xIsCreateTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x8;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreDynamicPriorityTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x10;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreMathsTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x20;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreGenericQueueTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x40;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreIntegerMathsTaskStillRunning() )\r
                {\r
                        usErrorCode |= 0x80;\r
                }\r
-               \r
+\r
                if( pdTRUE != xArePollingQueuesStillRunning() )\r
                {\r
                        usErrorCode |= 0x100;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreQueuePeekTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x200;\r
                }\r
-                               \r
+\r
                if( pdTRUE != xAreSemaphoreTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x400;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreComTestTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x800;\r
                }\r
-               \r
+\r
                if( pdTRUE != xAreIntQueueTasksStillRunning() )\r
                {\r
                        usErrorCode |= 0x1000;\r
index bcb3dd493a00f900ca5fa4c31dd1bf950a820e05..80800ccea10477d34695c15340bb976803cd6b6a 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * main-full.c (this file) defines a comprehensive demo that creates many\r
  * tasks, queues, semaphores and timers.  It also demonstrates how Cortex-M3\r
  * interrupts can interact with FreeRTOS tasks/timers, a simple web server, and\r
- * run time statistics gathering functionality.  ***IF YOU ARE LOOKING FOR A \r
+ * run time statistics gathering functionality.  ***IF YOU ARE LOOKING FOR A\r
  * SIMPLER STARTING POINT THEN USE THE "BLINKY" BUILD CONFIGURATION FIRST.***\r
  *\r
- * If the Ethernet functionality is excluded, then this demo will run 'stand \r
- * alone' (without the rest of the tower system) on the TWR-K60N512 tower \r
+ * If the Ethernet functionality is excluded, then this demo will run 'stand\r
+ * alone' (without the rest of the tower system) on the TWR-K60N512 tower\r
  * module.  If the Ethernet functionality is included, then the full Freescale\r
- * K60 tower kit, including both the TWR-K60N512 and TWR-SER modules, is \r
- * required (as the Ethernet connector is on the TWR-SER).  The TWR-K60N512 is \r
+ * K60 tower kit, including both the TWR-K60N512 and TWR-SER modules, is\r
+ * required (as the Ethernet connector is on the TWR-SER).  The TWR-K60N512 is\r
  * populated with a K60N512 Cortex-M4 microcontroller.\r
  *\r
  * The main() Function:\r
  * main() creates four demo specific software timers, and one demo specific\r
  * task (the web server task).  It also creates a whole host of 'standard\r
- * demo' tasks/queues/semaphores/timers, before starting the scheduler.  The \r
- * demo specific tasks and timers are described in the comments here.  The \r
+ * demo' tasks/queues/semaphores/timers, before starting the scheduler.  The\r
+ * demo specific tasks and timers are described in the comments here.  The\r
  * standard demo tasks are described on the FreeRTOS.org web site.\r
  *\r
  * The standard demo tasks provide no specific functionality.  They are\r
  *\r
  * The Demo Specific "LED" Timers and Callback Function:\r
  * Two very simple LED timers are created.  All they do is toggle an LED each\r
- * when the timer callback function is executed.  The two timers share a \r
- * callback function, so the callback function parameter is used to determine \r
- * which timer actually expired, and therefore, which LED to toggle.  Both \r
- * timers use a different frequency, one toggles the blue LED and the other the \r
+ * when the timer callback function is executed.  The two timers share a\r
+ * callback function, so the callback function parameter is used to determine\r
+ * which timer actually expired, and therefore, which LED to toggle.  Both\r
+ * timers use a different frequency, one toggles the blue LED and the other the\r
  * green LED.\r
  *\r
  * The LED/Button Software Timer and the Button Interrupt:\r
  * The user button SW2 is configured to generate an interrupt each time it is\r
- * pressed.  The interrupt service routine switches the orange/yellow LED on, \r
- * and resets the LED software timer.  The LED timer has a 5000 millisecond (5 \r
- * second) period, and uses a callback function that is defined to just turn the \r
- * LED off again.  Therefore, pressing the user button will turn the LED on, and \r
- * the LED will remain on until a full five seconds pass without the button \r
+ * pressed.  The interrupt service routine switches the orange/yellow LED on,\r
+ * and resets the LED software timer.  The LED timer has a 5000 millisecond (5\r
+ * second) period, and uses a callback function that is defined to just turn the\r
+ * LED off again.  Therefore, pressing the user button will turn the LED on, and\r
+ * the LED will remain on until a full five seconds pass without the button\r
  * being pressed.\r
  *\r
  * The Demo Specific "Check" Timer and Callback Function:\r
- * The check timer period is initially set to three seconds.  The check timer \r
- * callback function checks that all the standard demo tasks are not only still \r
- * executing, but are executing without reporting any errors.  If the check \r
- * timer discovers that a task has either stalled, or reported an error, then it \r
- * changes its own period from the initial three seconds, to just 200ms.  The \r
- * check timer callback function also toggles the orange/red LED each time it is \r
- * called.  This provides a visual indication of the system status:  If the LED \r
- * toggles every three seconds, then no issues have been discovered.  If the LED \r
- * toggles every 200ms, then an issue has been discovered with at least one \r
- * task.  The last reported issue is latched into the pcStatusMessage variable, \r
- * and displayed at the bottom of the "task stats" web page served by the \r
+ * The check timer period is initially set to three seconds.  The check timer\r
+ * callback function checks that all the standard demo tasks are not only still\r
+ * executing, but are executing without reporting any errors.  If the check\r
+ * timer discovers that a task has either stalled, or reported an error, then it\r
+ * changes its own period from the initial three seconds, to just 200ms.  The\r
+ * check timer callback function also toggles the orange/red LED each time it is\r
+ * called.  This provides a visual indication of the system status:  If the LED\r
+ * toggles every three seconds, then no issues have been discovered.  If the LED\r
+ * toggles every 200ms, then an issue has been discovered with at least one\r
+ * task.  The last reported issue is latched into the pcStatusMessage variable,\r
+ * and displayed at the bottom of the "task stats" web page served by the\r
  * embedded web server task.\r
  *\r
  * The web server task:\r
  * The Demo Specific Tick Hook Function:\r
  * The tick hook function is used to test the interrupt safe software timer\r
  * functionality.\r
- * \r
+ *\r
  */\r
 \r
 /* Kernel includes. */\r
@@ -204,7 +204,7 @@ reported in one of the standard demo tasks.  ms are converted to the equivalent
 in ticks using the portTICK_RATE_MS constant. */\r
 #define mainERROR_CHECK_TIMER_PERIOD_MS        ( 200UL / portTICK_RATE_MS )\r
 \r
-/* The LED that is turned on by pressing SW2 remains on until the button has not \r
+/* The LED that is turned on by pressing SW2 remains on until the button has not\r
 been pushed for a full 5000ms. */\r
 #define mainBUTTON_LED_TIMER_PERIOD_MS         ( 5000UL / portTICK_RATE_MS )\r
 \r
@@ -234,7 +234,7 @@ static void prvSetupHardware( void );
 static void prvCreateDemoSpecificTimers( void );\r
 \r
 /*\r
- * The LED/button timer callback function.  This does nothing but switch an LED \r
+ * The LED/button timer callback function.  This does nothing but switch an LED\r
  * off.\r
  */\r
 static void prvButtonLEDTimerCallback( xTimerHandle xTimer );\r
@@ -258,7 +258,7 @@ extern void vuIP_Task( void *pvParameters );
 \r
 /*-----------------------------------------------------------*/\r
 \r
-/* The LED/Button software timer.  This uses prvButtonLEDTimerCallback() as it's \r
+/* The LED/Button software timer.  This uses prvButtonLEDTimerCallback() as it's\r
 callback function. */\r
 static xTimerHandle xLEDButtonTimer = NULL;\r
 \r
@@ -302,7 +302,7 @@ void main( void )
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
        vStartCountingSemaphoreTasks();\r
        vStartDynamicPriorityTasks();\r
-       \r
+\r
        /* The web server task. */\r
        xTaskCreate( vuIP_Task, "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
 \r
@@ -381,12 +381,12 @@ static long lChangedTimerPeriodAlready = pdFALSE;
        {\r
                pcStatusMessage = "Error: CountSem\n";\r
        }\r
-       \r
+\r
        if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
        {\r
                pcStatusMessage = "Error: DynamicPriority\n";\r
        }\r
-       \r
+\r
        /* Toggle the check LED to give an indication of the system status.  If\r
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
@@ -401,9 +401,9 @@ static long lChangedTimerPeriodAlready = pdFALSE;
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
-                       /* This call to xTimerChangePeriod() uses a zero block time.  \r
-                       Functions called from inside of a timer callback function must \r
+\r
+                       /* This call to xTimerChangePeriod() uses a zero block time.\r
+                       Functions called from inside of a timer callback function must\r
                        *never* attempt to block. */\r
                        xTimerChangePeriod( xCheckTimer, ( mainERROR_CHECK_TIMER_PERIOD_MS ), mainDONT_BLOCK );\r
                }\r
@@ -464,11 +464,11 @@ static void prvSetupHardware( void )
        taskDISABLE_INTERRUPTS();\r
        PORTE_PCR26 = PORT_PCR_MUX( 1 ) | PORT_PCR_IRQC( 0xA ) | PORT_PCR_PE_MASK | PORT_PCR_PS_MASK;\r
        enable_irq( mainGPIO_E_VECTOR );\r
-       \r
+\r
        /* The interrupt calls an interrupt safe API function - so its priority must\r
        be equal to or lower than configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY. */\r
        set_irq_priority( mainGPIO_E_VECTOR, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );\r
-       \r
+\r
        /* Configure the LED outputs. */\r
        vParTestInitialise();\r
 }\r
@@ -477,48 +477,48 @@ static void prvSetupHardware( void )
 static void prvCreateDemoSpecificTimers( void )\r
 {\r
        /* This function creates the timers, but does not start them.  This is\r
-       because the standard demo timer test is started from main(), after this \r
-       function is     called.  The standard demo timer test will deliberately fill the \r
-       timer command queue - and will fail the test if the command queue already \r
-       holds start commands for the timers created here.  Instead, the timers \r
-       created in this function are started from the idle task, at which time, the \r
-       timer service/daemon task will be running, and will have drained the timer \r
+       because the standard demo timer test is started from main(), after this\r
+       function is     called.  The standard demo timer test will deliberately fill the\r
+       timer command queue - and will fail the test if the command queue already\r
+       holds start commands for the timers created here.  Instead, the timers\r
+       created in this function are started from the idle task, at which time, the\r
+       timer service/daemon task will be running, and will have drained the timer\r
        command queue. */\r
-       \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
-       xLEDButtonTimer = xTimerCreate(         ( const signed char * ) "ButtonLEDTimer",       /* A text name, purely to help debugging. */\r
-                                                               ( mainBUTTON_LED_TIMER_PERIOD_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
-                                                               prvButtonLEDTimerCallback                                       /* The callback function that switches the LED off. */\r
+       xLEDButtonTimer = xTimerCreate( "ButtonLEDTimer",                                       /* A text name, purely to help debugging. */\r
+                                                                       ( mainBUTTON_LED_TIMER_PERIOD_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
+                                                                       prvButtonLEDTimerCallback                       /* The callback function that switches the LED off. */\r
                                                        );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                               /* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
                                                                prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
-       \r
+\r
        /* Create the software timers used to simply flash LEDs.  These two timers\r
        share a callback function, so the callback parameter is used to pass in the\r
        LED that should be toggled. */\r
-       xLED1Timer = xTimerCreate( ( const signed char * ) "LED1Timer",/* A text name, purely to help debugging. */\r
-                                                               ( mainLED1_TIMER_PERIOD_MS ),           /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) mainLED0,                            /* The ID is used to pass in the number of the LED to be toggled. */\r
-                                                               prvLEDTimerCallback                                     /* The callback function simply toggles the LED specified by its parameter. */\r
+       xLED1Timer = xTimerCreate( "LED1Timer",                                         /* A text name, purely to help debugging. */\r
+                                                               ( mainLED1_TIMER_PERIOD_MS ),   /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) mainLED0,                    /* The ID is used to pass in the number of the LED to be toggled. */\r
+                                                               prvLEDTimerCallback                             /* The callback function simply toggles the LED specified by its parameter. */\r
                                                          );\r
 \r
-       xLED2Timer = xTimerCreate( ( const signed char * ) "LED2Timer",/* A text name, purely to help debugging. */\r
-                                                               ( mainLED2_TIMER_PERIOD_MS ),           /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) mainLED1,                            /* The ID is used to pass in the number of the LED to be toggled. */\r
-                                                               prvLEDTimerCallback                                     /* The callback function simply toggles the LED specified by its parameter. */\r
+       xLED2Timer = xTimerCreate( "LED2Timer",                                         /* A text name, purely to help debugging. */\r
+                                                               ( mainLED2_TIMER_PERIOD_MS ),   /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) mainLED1,                    /* The ID is used to pass in the number of the LED to be toggled. */\r
+                                                               prvLEDTimerCallback                             /* The callback function simply toggles the LED specified by its parameter. */\r
                                                          );\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -570,9 +570,9 @@ volatile size_t xFreeHeapSpace;
                xTimerStart( xCheckTimer, portMAX_DELAY );\r
                xTimerStart( xLED1Timer, portMAX_DELAY );\r
                xTimerStart( xLED2Timer, portMAX_DELAY );\r
-               \r
+\r
                xFreeHeapSpace = xPortGetFreeHeapSize();\r
-               \r
+\r
                if( xFreeHeapSpace > 100 )\r
                {\r
                        /* By now, the kernel has allocated everything it is going to, so\r
@@ -589,12 +589,12 @@ void vApplicationTickHook( void )
        /* Call the periodic timer test, which tests the timer API functions that\r
        can be called from an ISR. */\r
        vTimerPeriodicISRTests();\r
-}      \r
+}\r
 /*-----------------------------------------------------------*/\r
 \r
 char *pcGetTaskStatusMessage( void )\r
 {\r
-       /* A simple GET function used by a CGI script so it can display the \r
+       /* A simple GET function used by a CGI script so it can display the\r
        execution status at the bottom of the task stats web page served by the\r
        embedded web server. */\r
        if( pcStatusMessage == NULL )\r
@@ -631,7 +631,7 @@ const unsigned long ulSysTickPendingBit = 0x04000000UL;
        /* The SysTick is a down counter.  How many clocks have passed since it was\r
        last reloaded? */\r
        ulSysTickCounts = ulSysTickReloadValue - *pulCurrentSysTickCount;\r
-       \r
+\r
        /* How many times has it overflowed? */\r
        ulTickCount = xTaskGetTickCountFromISR();\r
 \r
@@ -640,28 +640,28 @@ const unsigned long ulSysTickPendingBit = 0x04000000UL;
        section, and the ISR safe critical sections are not designed to nest,\r
        so reset the critical section. */\r
        portSET_INTERRUPT_MASK_FROM_ISR();\r
-       \r
+\r
        /* Is there a SysTick interrupt pending? */\r
        if( ( *pulInterruptCTRLState & ulSysTickPendingBit ) != 0UL )\r
        {\r
                /* There is a SysTick interrupt pending, so the SysTick has overflowed\r
                but the tick count not yet incremented. */\r
                ulTickCount++;\r
-               \r
+\r
                /* Read the SysTick again, as the overflow might have occurred since\r
                it was read last. */\r
                ulSysTickCounts = ulSysTickReloadValue - *pulCurrentSysTickCount;\r
-       }       \r
-       \r
+       }\r
+\r
        /* Convert the tick count into tenths of a millisecond.  THIS ASSUMES\r
        configTICK_RATE_HZ is 1000! */\r
        ulReturn = ( ulTickCount * 10UL ) ;\r
-               \r
+\r
        /* Add on the number of tenths of a millisecond that have passed since the\r
        tick count last got updated. */\r
        ulReturn += ( ulSysTickCounts / ulClocksPer10thOfAMilliSecond );\r
-       \r
-       return ulReturn;        \r
+\r
+       return ulReturn;\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 9246500007b0cdf93428d549e5cae26bebac6261..82163bc299b3ad788a14924f3239304e8e5f6a37 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * in this file.  prvQueueReceiveTask() sits in a loop that causes it to\r
  * repeatedly attempt to read data from the queue that was created within\r
  * main().  When data is received, the task checks the value of the data, and\r
- * if the value equals the expected 100, toggles the blue LED.  The 'block \r
- * time' parameter passed to the queue receive function specifies that the task \r
- * should be held in the Blocked state indefinitely to wait for data to be \r
- * available on the queue.  The queue receive task will only leave the Blocked \r
- * state when the queue send task writes to the queue.  As the queue send task \r
- * writes to the queue every 200 milliseconds, the queue receive task leaves the \r
- * Blocked state every 200 milliseconds, and therefore toggles the blue LED \r
+ * if the value equals the expected 100, toggles the blue LED.  The 'block\r
+ * time' parameter passed to the queue receive function specifies that the task\r
+ * should be held in the Blocked state indefinitely to wait for data to be\r
+ * available on the queue.  The queue receive task will only leave the Blocked\r
+ * state when the queue send task writes to the queue.  As the queue send task\r
+ * writes to the queue every 200 milliseconds, the queue receive task leaves the\r
+ * Blocked state every 200 milliseconds, and therefore toggles the blue LED\r
  * every 200 milliseconds.\r
  *\r
  * The LED Software Timer and the Button Interrupt:\r
  * The user button SW2 is configured to generate an interrupt each time it is\r
- * pressed.  The interrupt service routine switches the green LED on, and \r
- * resets the LED software timer.  The LED timer has a 5000 millisecond (5 \r
- * second) period, and uses a callback function that is defined to just turn the \r
- * LED off again.  Therefore, pressing the user button will turn the LED on, and \r
- * the LED will remain on until a full five seconds pass without the button \r
+ * pressed.  The interrupt service routine switches the green LED on, and\r
+ * resets the LED software timer.  The LED timer has a 5000 millisecond (5\r
+ * second) period, and uses a callback function that is defined to just turn the\r
+ * LED off again.  Therefore, pressing the user button will turn the LED on, and\r
+ * the LED will remain on until a full five seconds pass without the button\r
  * being pressed.\r
  */\r
 \r
@@ -196,17 +196,17 @@ void 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
-               xButtonLEDTimer = xTimerCreate( ( const signed char * ) "ButtonLEDTimer", /* A text name, purely to help debugging. */\r
-                                                                       mainBUTTON_LED_TIMER_PERIOD_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
-                                                                       prvButtonLEDTimerCallback                               /* The callback function that switches the LED off. */\r
+               xButtonLEDTimer = xTimerCreate( "ButtonLEDTimer",                       /* A text name, purely to help debugging. */\r
+                                                                       mainBUTTON_LED_TIMER_PERIOD_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
+                                                                       prvButtonLEDTimerCallback               /* The callback function that switches the LED off. */\r
                                                                );\r
 \r
                /* Start the tasks and timer running. */\r
@@ -308,20 +308,20 @@ static void prvSetupHardware( void )
        /* Enable the interrupt on SW1. */\r
        PORTE_PCR26 = PORT_PCR_MUX( 1 ) | PORT_PCR_IRQC( 0xA ) | PORT_PCR_PE_MASK | PORT_PCR_PS_MASK;\r
        enable_irq( mainGPIO_E_VECTOR );\r
-       \r
+\r
        /* The interrupt calls an interrupt safe API function - so its priority must\r
        be equal to or lower than configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY. */\r
        set_irq_priority( mainGPIO_E_VECTOR, configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY );\r
-       \r
+\r
        /* Set PTA10, PTA11, PTA28, and PTA29 (connected to LED's) for GPIO\r
        functionality. */\r
        PORTA_PCR10 = ( 0 | PORT_PCR_MUX( 1 ) );\r
        PORTA_PCR11 = ( 0 | PORT_PCR_MUX( 1 ) );\r
        PORTA_PCR28 = ( 0 | PORT_PCR_MUX( 1 ) );\r
        PORTA_PCR29 = ( 0 | PORT_PCR_MUX( 1 ) );\r
-       \r
+\r
        /* Change PTA10, PTA29 to outputs. */\r
-       GPIOA_PDDR=GPIO_PDDR_PDD( mainTASK_CONTROLLED_LED | mainTIMER_CONTROLLED_LED ); \r
+       GPIOA_PDDR=GPIO_PDDR_PDD( mainTASK_CONTROLLED_LED | mainTIMER_CONTROLLED_LED );\r
 \r
        /* Start with LEDs off. */\r
        GPIOA_PTOR = ~0U;\r
@@ -387,9 +387,9 @@ linker happy. */
 void vMainConfigureTimerForRunTimeStats( void ) {}\r
 unsigned long ulMainGetRunTimeCounterValue( void ) { return 0UL; }\r
 \r
-/* A tick hook is used by the "Full" build configuration.  The Full and blinky \r
-build configurations share a FreeRTOSConfig.h header file, so this simple build \r
-configuration also has to define a tick hook - even though it does not actually \r
+/* A tick hook is used by the "Full" build configuration.  The Full and blinky\r
+build configurations share a FreeRTOSConfig.h header file, so this simple build\r
+configuration also has to define a tick hook - even though it does not actually\r
 use it for anything. */\r
 void vApplicationTickHook( void ) {}\r
 \r
index 8319b633058df8b1407bf65fb9b1bd61b0b3c100..dba1a26b687e4bdd73ac23cf2a2b5ebc731364e9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -166,7 +166,7 @@ unsigned short usPacketLength;
                if( ( usPacketLength > 0U ) && ( uip_buf != NULL ) )\r
                {\r
                        uip_len = usPacketLength;\r
-                       \r
+\r
                        if( xHeader->type == htons( UIP_ETHTYPE_IP ) )\r
                        {\r
                                uip_arp_ipin();\r
@@ -210,7 +210,7 @@ unsigned short usPacketLength;
                                for( i = 0; i < UIP_CONNS; i++ )\r
                                {\r
                                        uip_periodic( i );\r
-       \r
+\r
                                        /* If the above function invocation resulted in data that\r
                                        should be sent out on the network, the global variable\r
                                        uip_len is set to a value > 0. */\r
@@ -273,14 +273,14 @@ xTimerHandle xARPTimer, xPeriodicTimer;
        xEMACEventQueue = xQueueCreate( uipEVENT_QUEUE_LENGTH, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( signed char * ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( signed char * ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 500UL / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -328,7 +328,7 @@ const unsigned long ulYellowLED = 2UL;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 127046d4f5a00d6edc2072d00825ff1c5ab11c71..7048d83646f63572d0efa0b6476d39e0728bc28c 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -228,13 +228,13 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short generate_runtime_stats( void *arg )\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       vTaskGetRunTimeStats( uip_appdata );\r
+       vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index 50547841a3fdcff5831947c222889c1fe309a14c..8a05d4ca171e62be0e7f9844968113e2de5a1a94 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -246,7 +246,7 @@ int main( void )
        PHY. */\r
        if( SysCtlPeripheralPresent( SYSCTL_PERIPH_ETH ) )\r
        {\r
-               xTaskCreate( vuIP_Task, ( signed portCHAR * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+               xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
        }\r
 \r
        /* Start the standard demo tasks. */\r
@@ -261,7 +261,7 @@ int main( void )
     vStartInterruptQueueTasks();\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-       xTaskCreate( vOLEDTask, ( signed portCHAR * ) "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vOLEDTask, "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
@@ -363,7 +363,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
                {\r
                        xMessage.pcMessage = "ERROR IN INT QUEUE";\r
                }\r
-               \r
+\r
 \r
                /* Send the message to the OLED gatekeeper for display. */\r
                xHigherPriorityTaskWoken = pdFALSE;\r
index 69e8ec6f1d2c4d35df79c6a0eb58af1ff085aec0..36b2798de4652e54625b010b8b9545336830e71f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -140,14 +140,14 @@ portBASE_TYPE xReturn;
        {\r
                ulRxLength[ ulTemp ] = 0;\r
        }\r
-       \r
+\r
        /* Create the queue and task used to defer the MAC processing to the\r
        task level. */\r
        vSemaphoreCreateBinary( xMACInterruptSemaphore );\r
        xSemaphoreTake( xMACInterruptSemaphore, 0 );\r
-       xReturn = xTaskCreate( vMACHandleTask, ( signed portCHAR * ) "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
+       xReturn = xTaskCreate( vMACHandleTask, "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
        vTaskDelay( macNEGOTIATE_DELAY );\r
-       \r
+\r
        /* We are only interested in Rx interrupts. */\r
        IntPrioritySet( INT_ETH, configKERNEL_INTERRUPT_PRIORITY );\r
     IntEnable( INT_ETH );\r
@@ -168,9 +168,9 @@ unsigned int iLen;
        {\r
                /* Leave room for the size at the start of the buffer. */\r
                uip_buf = &( ucRxBuffers[ ulNextRxBuffer ][ 2 ] );\r
-               \r
+\r
                ulRxLength[ ulNextRxBuffer ] = 0;\r
-               \r
+\r
                ulNextRxBuffer++;\r
                if( ulNextRxBuffer >= emacNUM_RX_BUFFERS )\r
                {\r
@@ -214,9 +214,9 @@ unsigned portLONG ulNextWord;
     {\r
                vTaskDelay( macWAIT_SEND_TIME );\r
     }\r
-       \r
-       pulSource = ( unsigned portLONG * ) pus;        \r
-       \r
+\r
+       pulSource = ( unsigned portLONG * ) pus;\r
+\r
        for( ulNextWord = 0; ulNextWord < ulNextTxSpace; ulNextWord += sizeof( unsigned portLONG ) )\r
        {\r
                HWREG(ETH_BASE + MAC_O_DATA) = *pulSource;\r
@@ -236,14 +236,14 @@ unsigned portLONG ulTemp;
        /* Clear the interrupt. */\r
        ulTemp = EthernetIntStatus( ETH_BASE, pdFALSE );\r
        EthernetIntClear( ETH_BASE, ulTemp );\r
-               \r
+\r
        /* Was it an Rx interrupt? */\r
        if( ulTemp & ETH_INT_RX )\r
        {\r
                xSemaphoreGiveFromISR( xMACInterruptSemaphore, &xHigherPriorityTaskWoken );\r
                EthernetIntDisable( ETH_BASE, ETH_INT_RX );\r
        }\r
-               \r
+\r
     /* Switch to the uIP task. */\r
        portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );\r
 }\r
@@ -261,23 +261,23 @@ portBASE_TYPE xSwitchRequired = pdFALSE;
        {\r
                /* Wait for something to do. */\r
                xSemaphoreTake( xMACInterruptSemaphore, portMAX_DELAY );\r
-               \r
+\r
                while( ( ulInt = ( EthernetIntStatus( ETH_BASE, pdFALSE ) & ETH_INT_RX ) ) != 0 )\r
-               {               \r
+               {\r
                        ulLength = HWREG( ETH_BASE + MAC_O_DATA );\r
-                       \r
+\r
                        /* Leave room at the start of the buffer for the size. */\r
-                       pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 2 ] );                        \r
+                       pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 2 ] );\r
                        *pulBuffer = ( ulLength >> 16 );\r
 \r
-                       /* Get the size of the data. */                 \r
-                       pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 4 ] );                        \r
+                       /* Get the size of the data. */\r
+                       pulBuffer = ( unsigned long * ) &( ucRxBuffers[ ulNextRxBuffer ][ 4 ] );\r
                        ulLength &= 0xFFFF;\r
-                       \r
+\r
                        if( ulLength > 4 )\r
                        {\r
                                ulLength -= 4;\r
-                               \r
+\r
                                if( ulLength >= UIP_BUFSIZE )\r
                                {\r
                                        /* The data won't fit in our buffer.  Ensure we don't\r
@@ -291,22 +291,22 @@ portBASE_TYPE xSwitchRequired = pdFALSE;
                                        *pulBuffer = HWREG( ETH_BASE + MAC_O_DATA );\r
                                        pulBuffer++;\r
                                }\r
-                               \r
+\r
                                /* Store the length of the data into the separate array. */\r
                                ulRxLength[ ulNextRxBuffer ] = ulLength;\r
-                               \r
+\r
                                /* Use the next buffer the next time through. */\r
                                ulNextRxBuffer++;\r
                                if( ulNextRxBuffer >= emacNUM_RX_BUFFERS )\r
                                {\r
                                        ulNextRxBuffer = 0;\r
                                }\r
-               \r
+\r
                                /* Ensure the uIP task is not blocked as data has arrived. */\r
                                xSemaphoreGive( xEMACSemaphore );\r
                        }\r
                }\r
-               \r
+\r
                EthernetIntEnable( ETH_BASE, ETH_INT_RX );\r
        }\r
 }\r
index 5a5ce9b5f93875706b90ec3d824161c070f2d25d..7248cf95ea83b12fe3eba16e997a314baf8d3c80 100644 (file)
@@ -205,7 +205,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -213,7 +213,7 @@ generate_rtos_stats(void *arg)
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -254,13 +254,13 @@ static unsigned short generate_io_state( void *arg )
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short\r
 generate_runtime_stats(void *arg)\r
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-    vTaskGetRunTimeStats( uip_appdata );\r
+    vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index 437675fb65e03c6f7cd25018ee458cab02cbebe4..a97cda90298de98976bc93df08efe11ee89921c9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -269,7 +269,7 @@ int main( void )
                PHY. */\r
                if( SysCtlPeripheralPresent( SYSCTL_PERIPH_ETH ) )\r
                {\r
-                       xTaskCreate( vuIP_Task, ( signed portCHAR * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+                       xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
                }\r
        }\r
        #endif\r
@@ -277,7 +277,7 @@ int main( void )
 \r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-       xTaskCreate( vOLEDTask, ( signed portCHAR * ) "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vOLEDTask, "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
index 8570d6611bf5625bb2fed8772fd7e4844ab8aee3..b91e9aca81bfcd49b02ed7434ea230c0b23837be 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -144,14 +144,14 @@ portBASE_TYPE xReturn;
        {\r
                ulRxLength[ ulTemp ] = 0;\r
        }\r
-       \r
+\r
        /* Create the queue and task used to defer the MAC processing to the\r
        task level. */\r
        vSemaphoreCreateBinary( xMACInterruptSemaphore );\r
        xSemaphoreTake( xMACInterruptSemaphore, 0 );\r
-       xReturn = xTaskCreate( vMACHandleTask, ( signed portCHAR * ) "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
+       xReturn = xTaskCreate( vMACHandleTask, "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
        vTaskDelay( macNEGOTIATE_DELAY );\r
-       \r
+\r
        /* We are only interested in Rx interrupts. */\r
        IntPrioritySet( INT_ETH, configKERNEL_INTERRUPT_PRIORITY );\r
     IntEnable( INT_ETH );\r
@@ -172,9 +172,9 @@ unsigned int iLen;
        {\r
                /* Leave room for the size at the start of the buffer. */\r
                uip_buf = &( uxRxBuffers.ucRxBuffers[ ulNextRxBuffer ][ 2 ] );\r
-               \r
+\r
                ulRxLength[ ulNextRxBuffer ] = 0;\r
-               \r
+\r
                ulNextRxBuffer++;\r
                if( ulNextRxBuffer >= emacNUM_RX_BUFFERS )\r
                {\r
@@ -218,9 +218,9 @@ unsigned portLONG ulNextWord;
     {\r
                vTaskDelay( macWAIT_SEND_TIME );\r
     }\r
-       \r
-       pulSource = ( unsigned portLONG * ) pus;        \r
-       \r
+\r
+       pulSource = ( unsigned portLONG * ) pus;\r
+\r
        for( ulNextWord = 0; ulNextWord < ulNextTxSpace; ulNextWord += sizeof( unsigned portLONG ) )\r
        {\r
                HWREG(ETH_BASE + MAC_O_DATA) = *pulSource;\r
@@ -240,14 +240,14 @@ unsigned portLONG ulTemp;
        /* Clear the interrupt. */\r
        ulTemp = EthernetIntStatus( ETH_BASE, pdFALSE );\r
        EthernetIntClear( ETH_BASE, ulTemp );\r
-               \r
+\r
        /* Was it an Rx interrupt? */\r
        if( ulTemp & ETH_INT_RX )\r
        {\r
                xSemaphoreGiveFromISR( xMACInterruptSemaphore, &xHigherPriorityTaskWoken );\r
                EthernetIntDisable( ETH_BASE, ETH_INT_RX );\r
        }\r
-               \r
+\r
     /* Switch to the uIP task. */\r
        portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );\r
 }\r
@@ -264,23 +264,23 @@ static unsigned portLONG ulNextRxBuffer = 0;
        {\r
                /* Wait for something to do. */\r
                xSemaphoreTake( xMACInterruptSemaphore, portMAX_DELAY );\r
-               \r
+\r
                while( ( ulInt = ( EthernetIntStatus( ETH_BASE, pdFALSE ) & ETH_INT_RX ) ) != 0 )\r
-               {               \r
+               {\r
                        ulLength = HWREG( ETH_BASE + MAC_O_DATA );\r
-                       \r
+\r
                        /* Leave room at the start of the buffer for the size. */\r
-                       pulBuffer = ( unsigned long * ) &( uxRxBuffers.ucRxBuffers[ ulNextRxBuffer ][ 2 ] );                    \r
+                       pulBuffer = ( unsigned long * ) &( uxRxBuffers.ucRxBuffers[ ulNextRxBuffer ][ 2 ] );\r
                        *pulBuffer = ( ulLength >> 16 );\r
 \r
-                       /* Get the size of the data. */                 \r
-                       pulBuffer = ( unsigned long * ) &( uxRxBuffers.ucRxBuffers[ ulNextRxBuffer ][ 4 ] );                    \r
+                       /* Get the size of the data. */\r
+                       pulBuffer = ( unsigned long * ) &( uxRxBuffers.ucRxBuffers[ ulNextRxBuffer ][ 4 ] );\r
                        ulLength &= 0xFFFF;\r
-                       \r
+\r
                        if( ulLength > 4 )\r
                        {\r
                                ulLength -= 4;\r
-                               \r
+\r
                                if( ulLength >= UIP_BUFSIZE )\r
                                {\r
                                        /* The data won't fit in our buffer.  Ensure we don't\r
@@ -294,24 +294,24 @@ static unsigned portLONG ulNextRxBuffer = 0;
                                        *pulBuffer = HWREG( ETH_BASE + MAC_O_DATA );\r
                                        pulBuffer++;\r
                                }\r
-                               \r
+\r
                                /* Store the length of the data into the separate array. */\r
                                ulRxLength[ ulNextRxBuffer ] = ulLength;\r
-                               \r
+\r
                                /* Use the next buffer the next time through. */\r
                                ulNextRxBuffer++;\r
                                if( ulNextRxBuffer >= emacNUM_RX_BUFFERS )\r
                                {\r
                                        ulNextRxBuffer = 0;\r
                                }\r
-               \r
+\r
                                /* Ensure the uIP task is not blocked as data has arrived. */\r
                                xSemaphoreGive( xEMACSemaphore );\r
                        }\r
                }\r
-               \r
+\r
                EthernetIntEnable( ETH_BASE, ETH_INT_RX );\r
-               \r
+\r
                ( void ) ulInt;\r
        }\r
 }\r
index 803b771e6b2334f08437ea7faabc0db819b3d779..f1dbea7084b08ce518cf1f89db4e0c05f19a8c37 100644 (file)
@@ -204,7 +204,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -212,7 +212,7 @@ generate_rtos_stats(void *arg)
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index 09c9414ffec59b8f0f00d9816c0a9bc1f9e1bf87..6e069e1ed514c0af5277f21f944489a388b67ea6 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -247,7 +247,7 @@ int main( void )
        PHY. */\r
        if( SysCtlPeripheralPresent( SYSCTL_PERIPH_ETH ) )\r
        {\r
-               xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+               xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
        }\r
 \r
        /* Start the standard demo tasks. */\r
@@ -263,7 +263,7 @@ int main( void )
     vStartQueueSetTasks();\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-       xTaskCreate( vOLEDTask, ( signed char * ) "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vOLEDTask, "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
index 60e17dec56af090f7a535a2e2979c71205afed16..1de60d43b2809cde50d45f26ca65659c389b8eeb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -145,7 +145,7 @@ portBASE_TYPE xReturn;
        task level. */\r
        vSemaphoreCreateBinary( xMACInterruptSemaphore );\r
        xSemaphoreTake( xMACInterruptSemaphore, 0 );\r
-       xReturn = xTaskCreate( vMACHandleTask, ( signed char * ) "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
+       xReturn = xTaskCreate( vMACHandleTask, "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
        vTaskDelay( macNEGOTIATE_DELAY );\r
 \r
        /* We are only interested in Rx interrupts. */\r
index 1bf08e283fa3f46a0c0f8e18c419436f5babdef0..c45a19a69a93f29a959e13c37a2f11b7ac507aa9 100644 (file)
@@ -205,7 +205,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -213,7 +213,7 @@ generate_rtos_stats(void *arg)
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -254,13 +254,13 @@ static unsigned short generate_io_state( void *arg )
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short\r
 generate_runtime_stats(void *arg)\r
 {\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-       vTaskGetRunTimeStats( uip_appdata );\r
+       vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index 1329e216309cc94de6a51bdfab0215685c85b5fc..073f782efa9fadab16843d4003931c7648d92eec 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -80,7 +80,7 @@
  *\r
  * "uIP" task -  This is the task that handles the uIP stack.  All TCP/IP\r
  * processing is performed in this task.\r
- * \r
+ *\r
  * "USB" task - Enumerates the USB device as a CDC class, then echoes back all\r
  * received characters with a configurable offset (for example, if the offset\r
  * is 1 and 'A' is received then 'B' will be sent back).  A dumb terminal such\r
@@ -187,15 +187,15 @@ char cIPAddress[ 16 ]; /* Enough space for "xxx.xxx.xxx.xxx\0". */
        vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );\r
 \r
     /* Create the USB task. */\r
-    xTaskCreate( vUSBTask, ( signed char * ) "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       \r
-       /* Display the IP address, then create the uIP task.  The WEB server runs \r
+    xTaskCreate( vUSBTask, "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+\r
+       /* Display the IP address, then create the uIP task.  The WEB server runs\r
        in this task. */\r
        LCDdriver_initialisation();\r
        LCD_PrintString( 5, 10, "FreeRTOS.org", 14, COLOR_GREEN);\r
        sprintf( cIPAddress, "%d.%d.%d.%d", configIP_ADDR0, configIP_ADDR1, configIP_ADDR2, configIP_ADDR3 );\r
        LCD_PrintString( 5, 30, cIPAddress, 14, COLOR_RED);\r
-    xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
+    xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
 \r
     /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -284,48 +284,48 @@ void prvSetupHardware( void )
                LPC_SC->PLL0FEED = PLLFEED_FEED1;\r
                LPC_SC->PLL0FEED = PLLFEED_FEED2;\r
        }\r
-       \r
+\r
        /* Disable PLL, disconnected. */\r
        LPC_SC->PLL0CON = 0;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED1;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED2;\r
-           \r
+\r
        /* Enable main OSC. */\r
        LPC_SC->SCS |= 0x20;\r
        while( !( LPC_SC->SCS & 0x40 ) );\r
-       \r
+\r
        /* select main OSC, 12MHz, as the PLL clock source. */\r
        LPC_SC->CLKSRCSEL = 0x1;\r
-       \r
+\r
        LPC_SC->PLL0CFG = 0x20031;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED1;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED2;\r
-             \r
+\r
        /* Enable PLL, disconnected. */\r
        LPC_SC->PLL0CON = 1;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED1;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED2;\r
-       \r
+\r
        /* Set clock divider. */\r
        LPC_SC->CCLKCFG = 0x03;\r
-       \r
+\r
        /* Configure flash accelerator. */\r
        LPC_SC->FLASHCFG = 0x403a;\r
-       \r
+\r
        /* Check lock bit status. */\r
        while( ( ( LPC_SC->PLL0STAT & ( 1 << 26 ) ) == 0 ) );\r
-           \r
+\r
        /* Enable and connect. */\r
        LPC_SC->PLL0CON = 3;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED1;\r
        LPC_SC->PLL0FEED = PLLFEED_FEED2;\r
        while( ( ( LPC_SC->PLL0STAT & ( 1 << 25 ) ) == 0 ) );\r
 \r
-       \r
-       \r
-       \r
+\r
+\r
+\r
        /* Configure the clock for the USB. */\r
-         \r
+\r
        if( LPC_SC->PLL1STAT & ( 1 << 9 ) )\r
        {\r
                /* Enable PLL, disconnected. */\r
@@ -333,22 +333,22 @@ void prvSetupHardware( void )
                LPC_SC->PLL1FEED = PLLFEED_FEED1;\r
                LPC_SC->PLL1FEED = PLLFEED_FEED2;\r
        }\r
-       \r
+\r
        /* Disable PLL, disconnected. */\r
        LPC_SC->PLL1CON = 0;\r
        LPC_SC->PLL1FEED = PLLFEED_FEED1;\r
        LPC_SC->PLL1FEED = PLLFEED_FEED2;\r
-       \r
+\r
        LPC_SC->PLL1CFG = 0x23;\r
        LPC_SC->PLL1FEED = PLLFEED_FEED1;\r
        LPC_SC->PLL1FEED = PLLFEED_FEED2;\r
-             \r
+\r
        /* Enable PLL, disconnected. */\r
        LPC_SC->PLL1CON = 1;\r
        LPC_SC->PLL1FEED = PLLFEED_FEED1;\r
        LPC_SC->PLL1FEED = PLLFEED_FEED2;\r
        while( ( ( LPC_SC->PLL1STAT & ( 1 << 10 ) ) == 0 ) );\r
-       \r
+\r
        /* Enable and connect. */\r
        LPC_SC->PLL1CON = 3;\r
        LPC_SC->PLL1FEED = PLLFEED_FEED1;\r
index 2be6e3ee15dccaea8e8a0e4c7d40903618e4e29e..319fb1c18e0f879d633479daf392e5d269de337f 100644 (file)
@@ -207,7 +207,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[ 128 ];\r
 long lRefreshCount = 0;\r
@@ -217,7 +217,7 @@ generate_rtos_stats(void *arg)
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", (int)lRefreshCount, pcGetTaskStatusMessage() );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -261,14 +261,14 @@ const unsigned long ulLEDNo = 3;
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short\r
 generate_runtime_stats(void *arg)\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", (int)lRefreshCount );\r
-    vTaskGetRunTimeStats( uip_appdata );\r
+    vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index 7afed37be466326482e07b7b6054de202e690543..4673a646d97d24fdd98cc7ab6941cd0bd7615583 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -80,7 +80,7 @@
  *\r
  * "uIP" task -  This is the task that handles the uIP stack.  All TCP/IP\r
  * processing is performed in this task.\r
- * \r
+ *\r
  * "USB" task - Enumerates the USB device as a CDC class, then echoes back all\r
  * received characters with a configurable offset (for example, if the offset\r
  * is 1 and 'A' is received then 'B' will be sent back).  A dumb terminal such\r
@@ -174,10 +174,10 @@ int main( void )
        vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );\r
 \r
     /* Create the USB task. */\r
-    xTaskCreate( vUSBTask, ( signed char * ) "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       \r
+    xTaskCreate( vUSBTask, "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+\r
        /* Create the uIP task.  The WEB server runs in this task. */\r
-    xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
+    xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
 \r
     /* Start the scheduler. */\r
        vTaskStartScheduler();\r
index dfcedb83394d33bfeffc71bccb87cb48580d7c7a..9a51bc76ae257c7979fd59824f4c9c26941058ed 100644 (file)
@@ -207,7 +207,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[ 128 ];\r
 long lRefreshCount = 0;\r
@@ -217,7 +217,7 @@ generate_rtos_stats(void *arg)
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", (int)lRefreshCount, pcGetTaskStatusMessage() );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -261,14 +261,14 @@ extern long lParTestGetLEDState( void );
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short\r
 generate_runtime_stats(void *arg)\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", (int)lRefreshCount );\r
-    vTaskGetRunTimeStats( uip_appdata );\r
+    vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index e4cc20e2c1850dd04a74f9e14227279e18f3833a..a3abb26b20e82833fccebe7d1e6cab57e369dab7 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -181,13 +181,13 @@ int main( void )
     vStartRecursiveMutexTasks();\r
 \r
        /* Create the simple LED flash task. */\r
-       xTaskCreate( prvFlashTask, ( signed char * ) "Flash", configMINIMAL_STACK_SIZE, ( void * ) NULL, mainFLASH_TASK_PRIORITY, NULL );\r
-       \r
+       xTaskCreate( prvFlashTask, "Flash", configMINIMAL_STACK_SIZE, ( void * ) NULL, mainFLASH_TASK_PRIORITY, NULL );\r
+\r
     /* Create the USB task. */\r
-    xTaskCreate( vUSBTask, ( signed char * ) "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       \r
+    xTaskCreate( vUSBTask, "USB", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+\r
        /* Create the uIP task.  The WEB server runs in this task. */\r
-    xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
+    xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
 \r
     /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -289,81 +289,81 @@ void prvSetupHardware( void )
        if ( SC->PLL0STAT & ( 1 << 25 ) )\r
        {\r
                /* Enable PLL, disconnected. */\r
-               SC->PLL0CON = 1;                        \r
+               SC->PLL0CON = 1;\r
                SC->PLL0FEED = PLLFEED_FEED1;\r
                SC->PLL0FEED = PLLFEED_FEED2;\r
        }\r
-       \r
+\r
        /* Disable PLL, disconnected. */\r
-       SC->PLL0CON = 0;                                \r
+       SC->PLL0CON = 0;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-       \r
+\r
        /* Enable main OSC. */\r
-       SC->SCS |= 0x20;                        \r
+       SC->SCS |= 0x20;\r
        while( !( SC->SCS & 0x40 ) );\r
-       \r
+\r
        /* select main OSC, 12MHz, as the PLL clock source. */\r
-       SC->CLKSRCSEL = 0x1;            \r
-       \r
+       SC->CLKSRCSEL = 0x1;\r
+\r
        SC->PLL0CFG = 0x20031;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-             \r
+\r
        /* Enable PLL, disconnected. */\r
-       SC->PLL0CON = 1;                                \r
+       SC->PLL0CON = 1;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-       \r
+\r
        /* Set clock divider. */\r
        SC->CCLKCFG = 0x03;\r
-       \r
+\r
        /* Configure flash accelerator. */\r
        SC->FLASHCFG = 0x403a;\r
-       \r
+\r
        /* Check lock bit status. */\r
-       while( ( ( SC->PLL0STAT & ( 1 << 26 ) ) == 0 ) );       \r
-       \r
+       while( ( ( SC->PLL0STAT & ( 1 << 26 ) ) == 0 ) );\r
+\r
        /* Enable and connect. */\r
-       SC->PLL0CON = 3;                                \r
+       SC->PLL0CON = 3;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-       while( ( ( SC->PLL0STAT & ( 1 << 25 ) ) == 0 ) );       \r
+       while( ( ( SC->PLL0STAT & ( 1 << 25 ) ) == 0 ) );\r
+\r
+\r
+\r
 \r
-       \r
-       \r
-       \r
        /* Configure the clock for the USB. */\r
-       \r
+\r
        if( SC->PLL1STAT & ( 1 << 9 ) )\r
        {\r
                /* Enable PLL, disconnected. */\r
-               SC->PLL1CON = 1;                        \r
+               SC->PLL1CON = 1;\r
                SC->PLL1FEED = PLLFEED_FEED1;\r
                SC->PLL1FEED = PLLFEED_FEED2;\r
        }\r
-       \r
+\r
        /* Disable PLL, disconnected. */\r
-       SC->PLL1CON = 0;                                \r
+       SC->PLL1CON = 0;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
-       \r
+\r
        SC->PLL1CFG = 0x23;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
-       \r
+\r
        /* Enable PLL, disconnected. */\r
-       SC->PLL1CON = 1;                                \r
+       SC->PLL1CON = 1;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
        while( ( ( SC->PLL1STAT & ( 1 << 10 ) ) == 0 ) );\r
-       \r
+\r
        /* Enable and connect. */\r
-       SC->PLL1CON = 3;                                \r
+       SC->PLL1CON = 3;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
        while( ( ( SC->PLL1STAT & ( 1 << 9 ) ) == 0 ) );\r
-       \r
+\r
        /*  Setup the peripheral bus to be the same as the PLL output (64 MHz). */\r
        SC->PCLKSEL0 = 0x05555555;\r
 \r
index dfcedb83394d33bfeffc71bccb87cb48580d7c7a..9a51bc76ae257c7979fd59824f4c9c26941058ed 100644 (file)
@@ -207,7 +207,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[ 128 ];\r
 long lRefreshCount = 0;\r
@@ -217,7 +217,7 @@ generate_rtos_stats(void *arg)
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", (int)lRefreshCount, pcGetTaskStatusMessage() );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -261,14 +261,14 @@ extern long lParTestGetLEDState( void );
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short\r
 generate_runtime_stats(void *arg)\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", (int)lRefreshCount );\r
-    vTaskGetRunTimeStats( uip_appdata );\r
+    vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index 995ddfadbbce10f334556ae64db3a37195258fc5..f70a208c4381261ade14d412b70c7ce4a87c6436 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME.  PLEASE VISIT\r
@@ -199,7 +199,7 @@ void vRegisterSampleCLICommands( void )
 \r
 static portBASE_TYPE prvTaskStatsCommand( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString )\r
 {\r
-const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stack      #\r\n************************************************\r\n";\r
+const char *const pcHeader = "Task          State  Priority  Stack     #\r\n************************************************\r\n";\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -209,8 +209,8 @@ const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stac
        configASSERT( pcWriteBuffer );\r
 \r
        /* Generate a table of task stats. */\r
-       strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
-       vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+       strcpy( ( char * ) pcWriteBuffer, pcHeader );\r
+       vTaskList( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
 \r
        /* There is no more data to return after this single string, so return\r
        pdFALSE. */\r
@@ -220,7 +220,7 @@ const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stac
 \r
 static portBASE_TYPE prvRunTimeStatsCommand( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString )\r
 {\r
-const int8_t * const pcHeader = ( int8_t * ) "Task            Abs Time      % Time\r\n****************************************\r\n";\r
+const char * const pcHeader = "Task            Abs Time      % Time\r\n****************************************\r\n";\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -231,7 +231,7 @@ const int8_t * const pcHeader = ( int8_t * ) "Task            Abs Time      % Ti
 \r
        /* Generate a table of task stats. */\r
        strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
-       vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+       vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
 \r
        /* There is no more data to return after this single string, so return\r
        pdFALSE. */\r
index c656fc9b2cc3fbdf7ecaed8371443d9f929c7fb6..e561b9c4b125b4343e0f3e1d672b34a333c75907 100644 (file)
@@ -149,7 +149,7 @@ void vUARTCommandConsoleStart( uint16_t usStackSize, unsigned portBASE_TYPE uxPr
        \r
        /* Create that task that handles the console itself. */\r
        xTaskCreate(    prvUARTCommandConsoleTask,                      /* The task that implements the command console. */\r
-                                       ( const int8_t * const ) "CLI",         /* Text name assigned to the task.  This is just to assist debugging.  The kernel does not use this name itself. */\r
+                                       "CLI",                                                          /* Text name assigned to the task.  This is just to assist debugging.  The kernel does not use this name itself. */\r
                                        usStackSize,                                            /* The size of the stack allocated to the task. */\r
                                        NULL,                                                           /* The parameter is not used, so NULL is passed. */\r
                                        uxPriority,                                                     /* The priority allocated to the task. */\r
index 95a2be40ee4c6e93906fa8f28219083eee3be637..9575dde0119681f3dd57652e372aec60766b74f5 100644 (file)
@@ -155,13 +155,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index ca25a494acea538781b51f7eac4892656286c9f6..315f3e0977647da943f0135a7c690d169c62e108 100644 (file)
@@ -209,14 +209,14 @@ const size_t xRegTestStackSize = 25U;
        These are naked functions that don't use any stack.  A stack still has\r
        to be allocated to hold the task context. */\r
        xTaskCreate(    vRegTest1Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg1", /* Text name of the task. */\r
+                                       "Reg1",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
                                        NULL );                                 /* Don't receive a handle back, it is not needed. */\r
 \r
        xTaskCreate(    vRegTest2Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg2", /* Text name of the task. */\r
+                                       "Reg2",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
@@ -224,7 +224,7 @@ const size_t xRegTestStackSize = 25U;
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xTimer = xTimerCreate(  ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xTimer = xTimerCreate(  "CheckTimer",                                           /* A text name, purely to help debugging. */\r
                                                        ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                        pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                        ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index 1a976127e85d997fafba798aa08dee7f1568a84e..6936b66b887533f6a17f9628d76e1e1b1330347e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -164,13 +164,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 7a8bc8511dfdadd912838c62f684ba10ab29c208..03fcfa97926916b5fce0d1502b0ab1b5ab4a21fa 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -91,9 +91,9 @@
  * containing an unexpected value is indicative of an error in the context\r
  * switching mechanism.\r
  *\r
- * "Interrupt semaphore take" task - This task does nothing but block on a \r
- * semaphore that is 'given' from the tick hook function (which is defined in \r
- * main.c).  It toggles the fourth LED each time it receives the semaphore.  The \r
+ * "Interrupt semaphore take" task - This task does nothing but block on a\r
+ * semaphore that is 'given' from the tick hook function (which is defined in\r
+ * main.c).  It toggles the fourth LED each time it receives the semaphore.  The\r
  * Semahore is given every 50ms, so LED 4 toggles every 50ms.\r
  *\r
  * "Flash timers" - A software timer callback function is defined that does\r
@@ -227,7 +227,7 @@ const size_t xRegTestStackSize = 25U;
        toggles an LED each time the semaphore is given. */\r
        vSemaphoreCreateBinary( xLEDSemaphore );\r
        xTaskCreate(    prvSemaphoreTakeTask,           /* Function that implements the task. */\r
-                                       ( signed char * ) "Sem",        /* Text name of the task. */\r
+                                       "Sem",                                          /* Text name of the task. */\r
                                        configMINIMAL_STACK_SIZE,       /* Stack allocated to the task (in words). */\r
                                        NULL,                                           /* The task parameter is not used. */\r
                                        configMAX_PRIORITIES - 2,       /* The priority of the task. */\r
@@ -237,14 +237,14 @@ const size_t xRegTestStackSize = 25U;
        These are naked functions that don't use any stack.  A stack still has\r
        to be allocated to hold the task context. */\r
        xTaskCreate(    vRegTest1Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg1", /* Text name of the task. */\r
+                                       "Reg1",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
                                        NULL );                                 /* Don't receive a handle back, it is not needed. */\r
 \r
        xTaskCreate(    vRegTest2Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg2", /* Text name of the task. */\r
+                                       "Reg2",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
@@ -253,7 +253,7 @@ const size_t xRegTestStackSize = 25U;
        /* Create the three flash timers. */\r
        for( ulTimer = 0UL; ulTimer < ulTimersToCreate; ulTimer++ )\r
        {\r
-               xTimer = xTimerCreate(  ( const signed char * ) "FlashTimer",   /* A text name, purely to help debugging. */\r
+               xTimer = xTimerCreate(  "FlashTimer",                                                   /* A text name, purely to help debugging. */\r
                                                                ( mainFLASH_TIMER_BASE_RATE * ( ulTimer + 1UL ) ),      /* The timer period, in this case 3000ms (3s). */\r
                                                                pdTRUE,                                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) ulTimer,                                             /* The ID is used to hold the number of the LED that will be flashed. */\r
@@ -268,11 +268,11 @@ const size_t xRegTestStackSize = 25U;
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xTimer = xTimerCreate(  ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xTimer = xTimerCreate(  "CheckTimer",                                   /* A text name, purely to help debugging. */\r
+                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                );\r
 \r
        /* If the software timer was created successfully, start it.  It won't\r
index a6fe6310dac0ebbbbd22b18c1fcdca3a5d20c798..86602c8af12cb6d5e18326ac93c50b787b30506b 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -75,7 +75,7 @@
  * required to configure the hardware, are defined in main.c.\r
  ******************************************************************************\r
  *\r
- * main_blinky() creates one queue, and two tasks.  It then starts the \r
+ * main_blinky() creates one queue, and two tasks.  It then starts the\r
  * scheduler.\r
  *\r
  * The Queue Send Task:\r
@@ -161,13 +161,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 49ace6827733c97535168f814b74536fe6e87a1f..b50e19789c354940c67ba018e82d4cecc3bd9d04 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -194,14 +194,14 @@ const size_t xRegTestStackSize = 25U;
        These are naked functions that don't use any stack.  A stack still has\r
        to be allocated to hold the task context. */\r
        xTaskCreate(    vRegTest1Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg1", /* Text name of the task. */\r
+                                       "Reg1",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
                                        NULL );                                 /* Don't receive a handle back, it is not needed. */\r
 \r
        xTaskCreate(    vRegTest2Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg2", /* Text name of the task. */\r
+                                       "Reg2",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
@@ -209,11 +209,11 @@ const size_t xRegTestStackSize = 25U;
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        /* If the software timer was created successfully, start it.  It won't\r
index 868e9c1b7b5992c5386ab624a9f550a5c8dd9c6d..c08de4644aeab998f9ef3c255aa44723e343648e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -164,13 +164,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index d3c750c51077d52fa666638d292a83f8fbb21423..c700e9c36c150022dd6fc3a655c439ebee693ddb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -206,14 +206,14 @@ const size_t xRegTestStackSize = 25U;
        These are naked functions that don't use any stack.  A stack still has\r
        to be allocated to hold the task context. */\r
        xTaskCreate(    vRegTest1Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg1", /* Text name of the task. */\r
+                                       "Reg1",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
                                        NULL );                                 /* Don't receive a handle back, it is not needed. */\r
 \r
        xTaskCreate(    vRegTest2Task,                  /* Function that implements the task. */\r
-                                       ( signed char * ) "Reg2", /* Text name of the task. */\r
+                                       "Reg2",                                 /* Text name of the task. */\r
                                        xRegTestStackSize,              /* Stack allocated to the task. */\r
                                        NULL,                                   /* The task parameter is not used. */\r
                                        tskIDLE_PRIORITY,               /* The priority to assign to the task. */\r
@@ -222,26 +222,26 @@ const size_t xRegTestStackSize = 25U;
        /* Create the three flash timers. */\r
        for( ulTimer = 0UL; ulTimer < ulTimersToCreate; ulTimer++ )\r
        {\r
-               xTimer = xTimerCreate(  ( const signed char * ) "FlashTimer",   /* A text name, purely to help debugging. */\r
+               xTimer = xTimerCreate(  "FlashTimer",                           /* A text name, purely to help debugging. */\r
                                                                ( mainFLASH_TIMER_BASE_RATE * ( ulTimer + 1UL ) ),      /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) ulTimer,                                             /* The ID is used to hold the number of the LED that will be flashed. */\r
-                                                               prvFlashTimerCallback                                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                               pdTRUE,                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) ulTimer,                     /* The ID is used to hold the number of the LED that will be flashed. */\r
+                                                               prvFlashTimerCallback           /* The callback function that inspects the status of all the other tasks. */\r
                                                        );\r
-               \r
+\r
                if( xTimer != NULL )\r
                {\r
                        xTimerStart( xTimer, mainDONT_BLOCK );\r
                }\r
        }\r
-       \r
+\r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xTimer = xTimerCreate(  ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xTimer = xTimerCreate(  "CheckTimer",                                   /* A text name, purely to help debugging. */\r
+                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                );\r
 \r
        /* If the software timer was created successfully, start it.  It won't\r
@@ -342,6 +342,6 @@ unsigned long ulLED;
        ulLED = ( unsigned long ) pvTimerGetTimerID( xTimer );\r
 \r
        /* Toggle the LED. */\r
-       vParTestToggleLED( ulLED );     \r
+       vParTestToggleLED( ulLED );\r
 }\r
 \r
index 60aef5ca985bff4b7c9fd38080268166f94d516f..50b5901695e9287c7e27fd68a11c17394487690f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -157,13 +157,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 89f35a9f3c5230e3e6cfd52489afc5eb3f0eaf4b..89ec715c08bf4c5d94338667f226155d1ed6367a 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -76,8 +76,8 @@
  ******************************************************************************\r
  *\r
  * main_full() creates all the demo application tasks and a software timer, then\r
- * starts the scheduler.  The web documentation provides more details of the \r
- * standard demo application tasks, which provide no particular functionality, \r
+ * starts the scheduler.  The web documentation provides more details of the\r
+ * standard demo application tasks, which provide no particular functionality,\r
  * but do provide a good example of how to use the FreeRTOS API.\r
  *\r
  * In addition to the standard demo tasks, the following tasks and tests are\r
@@ -180,21 +180,21 @@ xTimerHandle xCheckTimer = NULL;
        vStartRecursiveMutexTasks();\r
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
        vStartMathTasks( mainFLOP_TASK_PRIORITY );\r
-       \r
+\r
        /* Create the register check tasks, as described at the top of this\r
        file */\r
-       xTaskCreate( prvRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                                         );    \r
-       \r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                         );\r
+\r
        if( xCheckTimer != NULL )\r
        {\r
                xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
@@ -202,13 +202,13 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* If all is well, the scheduler will now be running, and the following line\r
        will never be reached.  If the following line does execute, then there was\r
        insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
        to be created.  See the memory management section on the FreeRTOS web site\r
        for more details. */\r
-       for( ;; );      \r
+       for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -250,7 +250,7 @@ unsigned long ulErrorFound = pdFALSE;
        {\r
                ulErrorFound = pdTRUE;\r
        }\r
-       \r
+\r
        /* Check that the register test 1 task is still running. */\r
        if( ulLastRegTest1Value == ulRegTest1LoopCounter )\r
        {\r
@@ -268,8 +268,8 @@ unsigned long ulErrorFound = pdFALSE;
        /* Toggle the check LED to give an indication of the system status.  If\r
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
-       configTOGGLE_LED();     \r
-       \r
+       configTOGGLE_LED();\r
+\r
        /* Have any errors been latch in ulErrorFound?  If so, shorten the\r
        period of the check timer to mainERROR_CHECK_TIMER_PERIOD_MS milliseconds.\r
        This will result in an increase in the rate at which mainCHECK_LED\r
@@ -279,7 +279,7 @@ unsigned long ulErrorFound = pdFALSE;
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
+\r
                        /* This call to xTimerChangePeriod() uses a zero block time.\r
                        Functions called from inside of a timer callback function must\r
                        *never* attempt to block. */\r
index 4b5ed6e9abe80fbae589fa3140ec4fded35d444a..5a76f2e96ceb9ad99f589d6d3457207da7aa549f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -99,7 +99,7 @@
 \r
 /* Set mainCREATE_SIMPLE_BLINKY_DEMO_ONLY to one to run the simple blinky demo,\r
 or 0 to run the more comprehensive test and demo application. */\r
-#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     1\r
+#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     0\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
index 60aef5ca985bff4b7c9fd38080268166f94d516f..50b5901695e9287c7e27fd68a11c17394487690f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -157,13 +157,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index c1c95c0a98d51dcce056e1e938aeb9cad8d9af17..961bc1b77ae7620c9b6715e3928ffcc317e27f8d 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -185,12 +185,12 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Create the register check tasks, as described at the top of this\r
        file */\r
-       xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                               /* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index 60aef5ca985bff4b7c9fd38080268166f94d516f..50b5901695e9287c7e27fd68a11c17394487690f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -157,13 +157,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 004b332c680586d528786bdfd3914800191de85f..3cec4055ff4b5fc5c03ea4f8cc63d1b8769acac8 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -76,8 +76,8 @@
  ******************************************************************************\r
  *\r
  * main_full() creates all the demo application tasks and a software timer, then\r
- * starts the scheduler.  The web documentation provides more details of the \r
- * standard demo application tasks, which provide no particular functionality, \r
+ * starts the scheduler.  The web documentation provides more details of the\r
+ * standard demo application tasks, which provide no particular functionality,\r
  * but do provide a good example of how to use the FreeRTOS API.\r
  *\r
  * In addition to the standard demo tasks, the following tasks and tests are\r
@@ -180,21 +180,21 @@ xTimerHandle xCheckTimer = NULL;
        vStartRecursiveMutexTasks();\r
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
        vStartMathTasks( mainFLOP_TASK_PRIORITY );\r
-       \r
+\r
        /* Create the register check tasks, as described at the top of this\r
        file */\r
-       xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                                         );    \r
-       \r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                         );\r
+\r
        if( xCheckTimer != NULL )\r
        {\r
                xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
@@ -202,13 +202,13 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* If all is well, the scheduler will now be running, and the following line\r
        will never be reached.  If the following line does execute, then there was\r
        insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
        to be created.  See the memory management section on the FreeRTOS web site\r
        for more details. */\r
-       for( ;; );      \r
+       for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -250,7 +250,7 @@ unsigned long ulErrorFound = pdFALSE;
        {\r
                ulErrorFound = pdTRUE;\r
        }\r
-       \r
+\r
        /* Check that the register test 1 task is still running. */\r
        if( ulLastRegTest1Value == ulRegTest1LoopCounter )\r
        {\r
@@ -268,8 +268,8 @@ unsigned long ulErrorFound = pdFALSE;
        /* Toggle the check LED to give an indication of the system status.  If\r
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
-       configTOGGLE_LED();     \r
-       \r
+       configTOGGLE_LED();\r
+\r
        /* Have any errors been latch in ulErrorFound?  If so, shorten the\r
        period of the check timer to mainERROR_CHECK_TIMER_PERIOD_MS milliseconds.\r
        This will result in an increase in the rate at which mainCHECK_LED\r
@@ -279,7 +279,7 @@ unsigned long ulErrorFound = pdFALSE;
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
+\r
                        /* This call to xTimerChangePeriod() uses a zero block time.\r
                        Functions called from inside of a timer callback function must\r
                        *never* attempt to block. */\r
index 09c895559a538553060e5c326de26aac9ef610d0..9f30601eb4b572023578479e7401f780f9dd8fb8 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -157,13 +157,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index c6492c76533ab70a9ba1c1945dc099023aa82971..0820e7dee5f32ee2ea451bbf0fc6dc5b45fb7900 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -185,18 +185,18 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Create the register check tasks, as described at the top of this\r
        file */\r
-       xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                                         );    \r
-       \r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                         );\r
+\r
        if( xCheckTimer != NULL )\r
        {\r
                xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
@@ -204,7 +204,7 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* If all is well, the scheduler will now be running, and the following line\r
        will never be reached.  If the following line does execute, then there was\r
        insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
index e13714418d80e483a3d1f03fb7d590f443db0f2e..9ffbb59c81e46419bc0573c59cf07827d0fff95d 100644 (file)
@@ -169,13 +169,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index a16e69b224389cf3b8fe46a0000aa1c24512727c..cfa9014a8b7279a1f46367b13b157f3821c16b64 100644 (file)
@@ -197,12 +197,12 @@ xTimerHandle xCheckTimer = NULL;
        \r
        /* Create the register check tasks, as described at the top of this\r
        file */\r
-       xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                               /* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index ba7a2544b22a220c29a76ec37b83d5c745231206..78314993453bd7cabf8558efaf228eedda2d4f35 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -64,7 +64,7 @@
 */\r
 \r
 /*-----------------------------------------------------------\r
- * Normally, a demo application would define ParTest (parallel port test) \r
+ * Normally, a demo application would define ParTest (parallel port test)\r
  * functions to write to an LED.  In this case, four '*' symbols that are\r
  * output to the debug printf() port are used to simulate LED outputs.\r
  *-----------------------------------------------------------*/\r
@@ -107,7 +107,7 @@ gatekeeper task. */
  */\r
 static void prvI2CGateKeeperTask( void *pvParameters );\r
 \r
-/* The queue used to communicate toggle commands with the I2C gatekeeper \r
+/* The queue used to communicate toggle commands with the I2C gatekeeper\r
 task. */\r
 static xQueueHandle xI2CCommandQueue = NULL;\r
 /*-----------------------------------------------------------*/\r
@@ -137,7 +137,7 @@ I2C_M_SETUP_Type xI2CMessage;
        configASSERT( xI2CCommandQueue );\r
 \r
        /* Create the I2C gatekeeper task itself. */\r
-       xTaskCreate( prvI2CGateKeeperTask, ( signed char * ) "I2C", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvI2CGateKeeperTask, "I2C", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -172,7 +172,7 @@ static I2C_M_SETUP_Type xI2CMessage; /* Static so it is not on the stack as this
                {\r
                        /* Which bit is being manipulated? */\r
                        ucLED = 0x01 << ucLED;\r
-       \r
+\r
                        /* Is the bit currently set or clear? */\r
                        if( ( ucLEDState & ucLED ) == 0U )\r
                        {\r
@@ -182,10 +182,10 @@ static I2C_M_SETUP_Type xI2CMessage; /* Static so it is not on the stack as this
                        {\r
                                ucLEDState &= ~ucLED;\r
                        }\r
-       \r
+\r
                        ucBuffer[ 0 ] = partstIO_WRITE_COMMAND;\r
                        ucBuffer[ 1 ] = ucLEDState;\r
-       \r
+\r
                        xI2CMessage.sl_addr7bit = partstSLAVE_ADDRESS;\r
                        xI2CMessage.tx_data = ucBuffer ;\r
                        xI2CMessage.tx_length = sizeof( ucBuffer );\r
index c4755bad4200a98be3e250768c1556172599bcb5..57d33a0ce0a0ce255121d0b06a72a09e9e52d636 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -227,9 +227,9 @@ int main( void )
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* Infinite loop */\r
-       for( ;; );      \r
+       for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -291,7 +291,7 @@ unsigned long ulErrorFound = pdFALSE;
        {\r
                ulErrorFound |= 0x01UL << 9UL;\r
        }\r
-       \r
+\r
        /* Check that the register test 1 task is still running. */\r
        if( ulLastRegTest1Value == ulRegTest1LoopCounter )\r
        {\r
@@ -309,8 +309,8 @@ unsigned long ulErrorFound = pdFALSE;
        /* Toggle the check LED to give an indication of the system status.  If\r
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
-       vParTestToggleLED( mainCHECK_LED );     \r
-       \r
+       vParTestToggleLED( mainCHECK_LED );\r
+\r
        /* Have any errors been latch in ulErrorFound?  If so, shorten the\r
        period of the check timer to mainERROR_CHECK_TIMER_PERIOD_MS milliseconds.\r
        This will result in an increase in the rate at which mainCHECK_LED\r
@@ -320,7 +320,7 @@ unsigned long ulErrorFound = pdFALSE;
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
+\r
                        /* This call to xTimerChangePeriod() uses a zero block time.\r
                        Functions called from inside of a timer callback function must\r
                        *never* attempt to block. */\r
@@ -339,10 +339,10 @@ extern void Hitex_CGU_Init( void );
 \r
        /* Wind the clock speed up in steps to its maximum. */\r
        Hitex_CGU_Init();\r
-       \r
+\r
        /* Ensure all priority bits are assigned as preemption priority bits. */\r
        NVIC_SetPriorityGrouping( 0 );\r
-       \r
+\r
        /* Setup the LED outputs. */\r
        vParTestInitialise();\r
 }\r
@@ -367,21 +367,21 @@ static void prvOptionallyCreateComprehensveTestApplication( void )
 \r
                /* Most importantly, start the tasks that use the FPU. */\r
                vStartMathTasks( mainFLOP_TASK_PRIORITY );\r
-               \r
+\r
                /* Create the register check tasks, as described at the top of this\r
                file */\r
-               xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-               xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 \r
                /* Create the software timer that performs the 'check' functionality,\r
                as described at the top of this file. */\r
-               xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                                                 );    \r
-               \r
+               xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                                 );\r
+\r
                if( xCheckTimer != NULL )\r
                {\r
                        xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
@@ -450,7 +450,7 @@ void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName
 \r
 void vApplicationTickHook( void )\r
 {\r
-       /* This function will be called by each tick interrupt if \r
+       /* This function will be called by each tick interrupt if\r
        configUSE_TICK_HOOK is set to 1 in FreeRTOSConfig.h.  User code can be\r
        added here, but the tick hook is called from an interrupt context, so\r
        code must not attempt to block, and only the interrupt safe FreeRTOS API\r
index 00337203550b591d6cf404ff56b82b4541b0f3ac..6c21b26f059c0458fb81dd1c1e11a62d88085894 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -273,7 +273,7 @@ int main(void)
 {\r
        /* Configure the hardware ready to run the test. */\r
        prvSetupHardware();\r
-       \r
+\r
        /* Start standard demo/test application flash tasks.  See the comments at\r
        the top of this file.  The LED flash tasks are always created.  The other\r
        tasks are only created if mainCREATE_SIMPLE_LED_FLASHER_DEMO_ONLY is set to\r
@@ -288,13 +288,13 @@ int main(void)
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* If all is well, the scheduler will now be running, and the following line\r
        will never be reached.  If the following line does execute, then there was\r
        insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
        to be created.  See the memory management section on the FreeRTOS web site\r
        for more details. */\r
-       for( ;; );      \r
+       for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -356,7 +356,7 @@ long lErrorFound = pdFALSE;
        {\r
                lErrorFound = pdTRUE;\r
        }\r
-       \r
+\r
        /* Check that the register test 1 task is still running. */\r
        if( ulLastRegTest1Value == ulRegTest1LoopCounter )\r
        {\r
@@ -374,8 +374,8 @@ long lErrorFound = pdFALSE;
        /* Toggle the check LED to give an indication of the system status.  If\r
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
-       vParTestToggleLED( mainCHECK_LED );     \r
-       \r
+       vParTestToggleLED( mainCHECK_LED );\r
+\r
        /* Have any errors been latch in lErrorFound?  If so, shorten the\r
        period of the check timer to mainERROR_CHECK_TIMER_PERIOD_MS milliseconds.\r
        This will result in an increase in the rate at which mainCHECK_LED\r
@@ -385,7 +385,7 @@ long lErrorFound = pdFALSE;
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
+\r
                        /* This call to xTimerChangePeriod() uses a zero block time.\r
                        Functions called from inside of a timer callback function must\r
                        *never* attempt to block. */\r
@@ -403,11 +403,11 @@ static void prvButtonTestTask( void *pvParameters )
        an interrupt.  Each time the button interrupt gives the semaphore, this task\r
        will unblock, increment its execution counter, then return to block\r
        again. */\r
-       \r
+\r
        /* Take the semaphore before started to ensure it is in the correct\r
        state. */\r
        xSemaphoreTake( xTestSemaphore, mainDONT_BLOCK );\r
-       \r
+\r
        for( ;; )\r
        {\r
                xSemaphoreTake( xTestSemaphore, portMAX_DELAY );\r
@@ -420,13 +420,13 @@ static void prvSetupHardware( void )
 {\r
        /* Setup STM32 system (clock, PLL and Flash configuration) */\r
        SystemInit();\r
-       \r
+\r
        /* Ensure all priority bits are assigned as preemption priority bits. */\r
        NVIC_PriorityGroupConfig( NVIC_PriorityGroup_4 );\r
-       \r
+\r
        /* Setup the LED outputs. */\r
        vParTestInitialise();\r
-       \r
+\r
        /* Configure the button input.  This configures the interrupt to use the\r
        lowest interrupt priority, so it is ok to use the ISR safe FreeRTOS API\r
        from the button interrupt handler. */\r
@@ -444,18 +444,18 @@ void vApplicationTickHook( void )
 \r
                /* Fill the FPU registers with 0. */\r
                vRegTestClearFlopRegistersToParameterValue( 0UL );\r
-               \r
+\r
                /* Trigger a timer 2 interrupt, which will fill the registers with a\r
                different value and itself trigger a timer 3 interrupt.  Note that the\r
                timers are not actually used.  The timer 2 and 3 interrupt vectors are\r
                just used for convenience. */\r
                NVIC_SetPendingIRQ( TIM2_IRQn );\r
-       \r
+\r
                /* Ensure that, after returning from the nested interrupts, all the FPU\r
                registers contain the value to which they were set by the tick hook\r
                function. */\r
                configASSERT( ulRegTestCheckFlopRegistersContainParameterValue( 0UL ) );\r
-               \r
+\r
                ulFPUInterruptNesting--;\r
        }\r
        #endif\r
@@ -475,7 +475,7 @@ NVIC_InitTypeDef NVIC_InitStructure;
        NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;\r
        NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;\r
        NVIC_Init( &NVIC_InitStructure );\r
-       \r
+\r
        /* Enable the TIM3 interrupt in the NVIC.  The timer itself is not used,\r
        just its interrupt vector to force nesting from software.  TIM2 must have\r
        a lower priority than TIM3, and both must have priorities above\r
@@ -493,7 +493,7 @@ void TIM3_IRQHandler( void )
        /* Just to verify that the interrupt nesting behaves as expected, increment\r
        ulFPUInterruptNesting on entry, and decrement it on exit. */\r
        ulFPUInterruptNesting++;\r
-       \r
+\r
        /* This is the highest priority interrupt in the chain of forced nesting\r
        interrupts, so latch the maximum value reached by ulFPUInterruptNesting.\r
        This is done purely to allow verification that the nesting depth reaches\r
@@ -506,7 +506,7 @@ void TIM3_IRQHandler( void )
        /* Fill the FPU registers with 99 to overwrite the values written by\r
        TIM2_IRQHandler(). */\r
        vRegTestClearFlopRegistersToParameterValue( 99UL );\r
-       \r
+\r
        ulFPUInterruptNesting--;\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -516,10 +516,10 @@ void TIM2_IRQHandler( void )
        /* Just to verify that the interrupt nesting behaves as expected, increment\r
        ulFPUInterruptNesting on entry, and decrement it on exit. */\r
        ulFPUInterruptNesting++;\r
-       \r
+\r
        /* Fill the FPU registers with 1. */\r
        vRegTestClearFlopRegistersToParameterValue( 1UL );\r
-       \r
+\r
        /* Trigger a timer 3 interrupt, which will fill the registers with a\r
        different value. */\r
        NVIC_SetPendingIRQ( TIM3_IRQn );\r
@@ -528,7 +528,7 @@ void TIM2_IRQHandler( void )
        registers contain the value to which they were set by this interrupt\r
        function. */\r
        configASSERT( ulRegTestCheckFlopRegistersContainParameterValue( 1UL ) );\r
-       \r
+\r
        ulFPUInterruptNesting--;\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -556,28 +556,28 @@ static void prvOptionallyCreateComprehensveTestApplication( void )
 \r
                /* Most importantly, start the tasks that use the FPU. */\r
                vStartMathTasks( mainFLOP_TASK_PRIORITY );\r
-               \r
+\r
                /* Create the register check tasks, as described at the top of this\r
                file */\r
-               xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-               xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
 \r
                /* Create the semaphore that is used to demonstrate a task being\r
                synchronised with an interrupt. */\r
                vSemaphoreCreateBinary( xTestSemaphore );\r
 \r
                /* Create the task that is unblocked by the demonstration interrupt. */\r
-               xTaskCreate( prvButtonTestTask, ( signed char * ) "BtnTest", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
-               \r
+               xTaskCreate( prvButtonTestTask, "BtnTest", configMINIMAL_STACK_SIZE, ( void * ) NULL, tskIDLE_PRIORITY, NULL );\r
+\r
                /* Create the software timer that performs the 'check' functionality,\r
                as described at the top of this file. */\r
-               xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                                                 );    \r
-               \r
+               xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
+                                                                 );\r
+\r
                if( xCheckTimer != NULL )\r
                {\r
                        xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
@@ -607,12 +607,12 @@ long lHigherPriorityTaskWoken = pdFALSE;
        /* Only line 6 is enabled, so there is no need to test which line generated\r
        the interrupt. */\r
        EXTI_ClearITPendingBit( EXTI_Line6 );\r
-       \r
+\r
        /* This interrupt does nothing more than demonstrate how to synchronise a\r
        task with an interrupt.  First the handler releases a semaphore.\r
        lHigherPriorityTaskWoken has been initialised to zero. */\r
        xSemaphoreGiveFromISR( xTestSemaphore, &lHigherPriorityTaskWoken );\r
-       \r
+\r
        /* If there was a task that was blocked on the semaphore, and giving the\r
        semaphore caused the task to unblock, and the unblocked task has a priority\r
        higher than the currently executing task (the task that this interrupt\r
index c49f9a9e1983b63a27ad708095e9d97284553ff8..ef0149f6e3d73330e019b66955aca370c37f8871 100644 (file)
@@ -161,22 +161,22 @@ xQueueHandle xQueue;
        {\r
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
-               xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
-                                       configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
-                                       ( void * ) xQueue,                                              /* Pass the queue into the task using the task parameter. */\r
-                                       mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
-                                       NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
+               xTaskCreate( prvQueueReceiveTask,                               /* The function that implements the task. */\r
+                                       "Rx",                                                           /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       configMINIMAL_STACK_SIZE,                       /* The size of the stack to allocate to the task. */\r
+                                       ( void * ) xQueue,                                      /* Pass the queue into the task using the task parameter. */\r
+                                       mainQUEUE_RECEIVE_TASK_PRIORITY,        /* The priority assigned to the task. */\r
+                                       NULL );                                                         /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) xQueue, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) xQueue, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Create the blinky software timer as described at the top of this\r
                file. */\r
-               xTimer = xTimerCreate(  ( const signed char * ) "Blinky",/* A text name, purely to help debugging. */\r
-                                                               ( mainBLINKY_TIMER_PERIOD ),    /* The timer period. */\r
-                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
-                                                               prvBlinkyTimerCallback );               /* The callback function that inspects the status of all the other tasks. */\r
+               xTimer = xTimerCreate(  "Blinky",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainBLINKY_TIMER_PERIOD ),/* The timer period. */\r
+                                                               pdTRUE,                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                           /* The ID is not used, so can be set to anything. */\r
+                                                               prvBlinkyTimerCallback );       /* The callback function that inspects the status of all the other tasks. */\r
 \r
                configASSERT( xTimer );\r
 \r
index 4274014c87c7923f10f27806a9ecae55537ffb31..2680526885d32beef5ef9019495c28da81703f37 100644 (file)
@@ -296,11 +296,11 @@ xTimerHandle xTimer = NULL;
 \r
        /* Create the software timer that performs the 'check' functionality, as\r
        described at the top of this file. */\r
-       xTimer = xTimerCreate(  ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                       prvCheckTimerCallback );                        /* The callback function that inspects the status of all the other tasks. */\r
+       xTimer = xTimerCreate(  "CheckTimer",                                   /* A text name, purely to help debugging. */\r
+                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                       prvCheckTimerCallback );                /* The callback function that inspects the status of all the other tasks. */\r
 \r
        if( xTimer != NULL )\r
        {\r
@@ -448,7 +448,7 @@ char cIPAddress[ 20 ];
                for a new connection by lowering the priority of the IP task to that of\r
                the Idle task. */\r
                vTaskPrioritySet( NULL, tskIDLE_PRIORITY );\r
-               \r
+\r
                /* Disconnected - so no IP address. */\r
                ili93xx_draw_string( ulXCoord, ulYCoord, ( uint8_t * ) "IP:                  " );\r
        }\r
index 3382427977fe96c11ed611e8de5f11d38c58469a..19560e782f704eb2a8a2a875144c8a781dcbefe2 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -171,11 +171,11 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        if( xCheckTimer != NULL )\r
index b9f306a2a71952089b31d064154ce6da3367483d..cac5065016cf42ac20956a7d939c17377e4e77ba 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -171,8 +171,8 @@ void main_low_power( void )
        configASSERT( xQueue );\r
 \r
        /* Start the two tasks as described at the top of this file. */\r
-       xTaskCreate( prvQueueReceiveTask, ( const signed char * const ) "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
-       xTaskCreate( prvQueueSendTask, ( const signed char * const ) "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvQueueReceiveTask, "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler running running. */\r
        vTaskStartScheduler();\r
index d7d38c885e7aa4c88db6579b7640be719eaa6807..d611d7cd4cf1d4c77bb535ddf4a4ce29470188b3 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -158,8 +158,8 @@ void vAltStartComTestTasks( unsigned portBASE_TYPE uxPriority, unsigned long ulB
        xSerialPortInitMinimal( ulBaudRate, comBUFFER_LEN );\r
 \r
        /* The Tx task is spawned with a lower priority than the Rx task. */\r
-       xTaskCreate( vComTxTask, ( signed char * ) "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
-       xTaskCreate( vComRxTask, ( signed char * ) "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComTxTask, "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComRxTask, "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index daf616980e911be96769ddd1c6f1bc5261ad5ae6..8a433acd025837a0ad1b6a36be89d2d59bba3a15 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -127,7 +127,7 @@ will remove items as they are added, meaning the send task should always find
 the queue empty. */\r
 #define mainQUEUE_LENGTH                                       ( 1 )\r
 \r
-/* Values passed to the two tasks just to check the task parameter \r
+/* Values passed to the two tasks just to check the task parameter\r
 functionality. */\r
 #define mainQUEUE_SEND_PARAMETER                       ( 0x1111UL )\r
 #define mainQUEUE_RECEIVE_PARAMETER                    ( 0x22UL )\r
@@ -163,13 +163,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index c70f8da6a3e36ac8e9bfd6cdb3ba7de2223305a5..1ee9466ca33aafecb820a90c81f5a273bfcbd265 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -195,11 +195,11 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        if( xCheckTimer != NULL )\r
index d8135abc4fbb3c630f6ac4b183d473d2e8c2bb61..b787eacf5f0d2509e72aaa2f778746ed05c419ec 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -317,37 +317,37 @@ int main(void)
        {\r
                /* Start the two application specific demo tasks, as described in the\r
                comments at the top of this     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
-                                                                       ( mainLED_TIMER_PERIOD_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
-                                                                       prvLEDTimerCallback                                     /* The callback function that switches the LED off. */\r
+               xLEDTimer = xTimerCreate(       "LEDTimer",                             /* A text name, purely to help debugging. */\r
+                                                                       ( mainLED_TIMER_PERIOD_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
+                                                                       prvLEDTimerCallback                     /* The callback function that switches the LED off. */\r
                                                                );\r
 \r
                /* Create the software timer that performs the 'check' functionality,\r
                as described at the top of this file. */\r
-               xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+               xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                                  );\r
 \r
                /* Create the software timer that performs the 'digit counting'\r
                functionality, as described at the top of this file. */\r
-               xDigitCounterTimer = xTimerCreate( ( const signed char * ) "DigitCounter",      /* A text name, purely to help debugging. */\r
-                                                                       ( mainDIGIT_COUNTER_TIMER_PERIOD_MS ),                  /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                                                   /* The ID is not used, so can be set to anything. */\r
-                                                                       prvDigitCounterTimerCallback                                    /* The callback function that inspects the status of all the other tasks. */\r
-                                                                 );            \r
-               \r
+               xDigitCounterTimer = xTimerCreate( "DigitCounter",                                      /* A text name, purely to help debugging. */\r
+                                                                       ( mainDIGIT_COUNTER_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvDigitCounterTimerCallback                    /* The callback function that inspects the status of all the other tasks. */\r
+                                                                 );\r
+\r
                /* Create a lot of 'standard demo' tasks.  Over 40 tasks are created in\r
                this demo.  For a much simpler demo, select the 'blinky' build\r
                configuration. */\r
@@ -363,7 +363,7 @@ int main(void)
                vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
                vStartCountingSemaphoreTasks();\r
                vStartDynamicPriorityTasks();\r
-               \r
+\r
                /* The suicide tasks must be created last, as they need to know how many\r
                tasks were running prior to their creation in order to ascertain whether\r
                or not the correct/expected number of tasks are running at any given\r
@@ -426,7 +426,7 @@ static void prvCheckTimerCallback( xTimerHandle xTimer )
        {\r
                pcStatusMessage = "Error: ComTest\r\n";\r
        }\r
-       \r
+\r
        if( xAreTimerDemoTasksStillRunning( ( mainCHECK_TIMER_PERIOD_MS ) ) != pdTRUE )\r
        {\r
                pcStatusMessage = "Error: TimerDemo";\r
@@ -441,12 +441,12 @@ static void prvCheckTimerCallback( xTimerHandle xTimer )
        {\r
                pcStatusMessage = "Error: CountSem";\r
        }\r
-       \r
+\r
        if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
        {\r
                pcStatusMessage = "Error: DynamicPriority";\r
        }\r
-       \r
+\r
        /* Toggle the check LED to give an indication of the system status.  If\r
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error.  vParTestToggleLED()\r
@@ -497,13 +497,13 @@ unsigned short usCheckLEDState;
        the state of the check LED.  A critical section is not required to access\r
        the port as only one timer can be executing at any one time. */\r
        usCheckLEDState = ( FM3_GPIO->PDOR3 & mainCHECK_LED );\r
-       \r
+\r
        /* Display the next number, counting up. */\r
        FM3_GPIO->PDOR3 = usNumbersPatterns[ lCounter ] | usCheckLEDState;\r
 \r
-       /* Move onto the next digit. */ \r
+       /* Move onto the next digit. */\r
        lCounter++;\r
-       \r
+\r
        /* Ensure the counter does not go off the end of the array. */\r
        if( lCounter >= lNumberOfDigits )\r
        {\r
@@ -603,15 +603,15 @@ const unsigned short usButtonInputBit = 0x01U;
        SystemCoreClockUpdate();\r
 \r
        /* Initialise the IO used for the LEDs on the 7 segment displays. */\r
-       vParTestInitialise();   \r
-       \r
+       vParTestInitialise();\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
@@ -620,7 +620,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
@@ -675,6 +675,6 @@ void vApplicationTickHook( void )
        /* Call the periodic timer test, which tests the timer API functions that\r
        can be called from an ISR. */\r
        vTimerPeriodicISRTests();\r
-}      \r
+}\r
 /*-----------------------------------------------------------*/\r
 \r
index 5a7b90de9732d25b0e9bc8ce060b830e039d1858..045de672fdb3085e860a7eae350020311ea22c35 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -175,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
@@ -183,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
@@ -311,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
@@ -326,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
@@ -342,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
index 56054cb67ca4bd5ad7b83e4358884f0704deae6a..1b91115094a22d44b53dc798123d14391e1ccd2d 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -318,37 +318,37 @@ int main(void)
        {\r
                /* Start the two application specific demo tasks, as described in the\r
                comments at the top of this     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
-                                                                       ( mainLED_TIMER_PERIOD_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
-                                                                       prvLEDTimerCallback                                     /* The callback function that switches the LED off. */\r
+               xLEDTimer = xTimerCreate(       "LEDTimer",                             /* A text name, purely to help debugging. */\r
+                                                                       ( mainLED_TIMER_PERIOD_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
+                                                                       prvLEDTimerCallback                     /* The callback function that switches the LED off. */\r
                                                                );\r
 \r
                /* Create the software timer that performs the 'check' functionality,\r
                as described at the top of this file. */\r
-               xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+               xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                                  );\r
 \r
                /* Create the software timer that performs the 'digit counting'\r
                functionality, as described at the top of this file. */\r
-               xDigitCounterTimer = xTimerCreate( ( const signed char * ) "DigitCounter",      /* A text name, purely to help debugging. */\r
-                                                                       ( mainDIGIT_COUNTER_TIMER_PERIOD_MS ),                  /* The timer period, in this case 3000ms (3s). */\r
-                                                                       pdTRUE,                                                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                       ( void * ) 0,                                                                   /* The ID is not used, so can be set to anything. */\r
-                                                                       prvDigitCounterTimerCallback                                    /* The callback function that inspects the status of all the other tasks. */\r
-                                                                 );            \r
-               \r
+               xDigitCounterTimer = xTimerCreate( "DigitCounter",                                      /* A text name, purely to help debugging. */\r
+                                                                       ( mainDIGIT_COUNTER_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                                       pdTRUE,                                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                       ( void * ) 0,                                                   /* The ID is not used, so can be set to anything. */\r
+                                                                       prvDigitCounterTimerCallback                    /* The callback function that inspects the status of all the other tasks. */\r
+                                                                 );\r
+\r
                /* Create a lot of 'standard demo' tasks.  Over 40 tasks are created in\r
                this demo.  For a much simpler demo, select the 'blinky' build\r
                configuration. */\r
@@ -364,7 +364,7 @@ int main(void)
                vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
                vStartCountingSemaphoreTasks();\r
                vStartDynamicPriorityTasks();\r
-               \r
+\r
                /* The suicide tasks must be created last, as they need to know how many\r
                tasks were running prior to their creation in order to ascertain whether\r
                or not the correct/expected number of tasks are running at any given\r
@@ -427,7 +427,7 @@ static void prvCheckTimerCallback( xTimerHandle xTimer )
        {\r
                pcStatusMessage = "Error: ComTest\r\n";\r
        }\r
-       \r
+\r
        if( xAreTimerDemoTasksStillRunning( ( mainCHECK_TIMER_PERIOD_MS ) ) != pdTRUE )\r
        {\r
                pcStatusMessage = "Error: TimerDemo";\r
@@ -442,12 +442,12 @@ static void prvCheckTimerCallback( xTimerHandle xTimer )
        {\r
                pcStatusMessage = "Error: CountSem";\r
        }\r
-       \r
+\r
        if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
        {\r
                pcStatusMessage = "Error: DynamicPriority";\r
        }\r
-       \r
+\r
        /* Toggle the check LED to give an indication of the system status.  If\r
        the LED toggles every mainCHECK_TIMER_PERIOD_MS milliseconds then\r
        everything is ok.  A faster toggle indicates an error. */\r
@@ -485,9 +485,9 @@ const long lNumberOfDigits = 10L;
        /* Display the next number, counting up. */\r
        FM3_GPIO->PDOR1 = usNumbersPatterns[ lCounter ];\r
 \r
-       /* Move onto the next digit. */ \r
+       /* Move onto the next digit. */\r
        lCounter++;\r
-       \r
+\r
        /* Ensure the counter does not go off the end of the array. */\r
        if( lCounter >= lNumberOfDigits )\r
        {\r
@@ -587,15 +587,15 @@ const unsigned short usButtonInputBit = 0x01U;
        SystemCoreClockUpdate();\r
 \r
        /* Initialise the IO used for the LEDs on the 7 segment displays. */\r
-       vParTestInitialise();   \r
-       \r
+       vParTestInitialise();\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->PFR1 |= usButtonInputBit;\r
-       \r
+\r
        /* Button interrupt on falling edge. */\r
        FM3_EXTI->ELVR  = 0x0003;\r
 \r
@@ -604,7 +604,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
@@ -659,6 +659,6 @@ void vApplicationTickHook( void )
        /* Call the periodic timer test, which tests the timer API functions that\r
        can be called from an ISR. */\r
        vTimerPeriodicISRTests();\r
-}      \r
+}\r
 /*-----------------------------------------------------------*/\r
 \r
index 5127d47f4c4095c105ac3975a0be54d3c4eae948..956548d8a0d0b89c6811df236fc26a702ecae3b5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -184,17 +184,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
@@ -313,29 +313,29 @@ const unsigned short usGPIOState = 0xFF00U;
 \r
        SystemInit();\r
        SystemCoreClockUpdate();\r
-       \r
+\r
        /* Analog inputs are not used on the LED outputs. */\r
        FM3_GPIO->ADE  = 0x00FF;\r
-       \r
+\r
        /* LED seg1 to GPIO output (P18->P1F). */\r
        FM3_GPIO->DDR1 = 0xFF00;\r
        FM3_GPIO->PFR1 = 0x0000;\r
-       \r
+\r
        /* LED seg2 to GPIO output (P30->P3F). */\r
        FM3_GPIO->DDR3 = 0xFF00;\r
        FM3_GPIO->PFR3 = 0x0000;\r
-       \r
+\r
        /* Start with all LEDs off. */\r
        FM3_GPIO->PDOR3 = usGPIOState;\r
        FM3_GPIO->PDOR1 = usGPIOState;\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->PFR1 |= usButtonInputBit;\r
-       \r
+\r
        /* Button interrupt on falling edge. */\r
        FM3_EXTI->ELVR  = 0x0003;\r
 \r
@@ -344,7 +344,7 @@ const unsigned short usGPIOState = 0xFF00U;
 \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
index 9bd40ab7f8013f8bc520cf951742fa37909313a4..77ae33d300425e151cca6e34a60eee48ca57e150 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -239,7 +239,7 @@ structure passed to the xTaskCreateRestricted() function. */
 static const xTaskParameters xCheckTaskParameters =\r
 {\r
        prvCheckTask,                                                           /* pvTaskCode - the function that implements the task. */\r
-       ( signed char * ) "Check",                                      /* pcName                       */\r
+       "Check",                                                                        /* pcName                       */\r
        mainCHECK_TASK_STACK_SIZE_WORDS,                        /* usStackDepth - defined in words, not bytes. */\r
        ( void * ) 0x12121212,                                          /* pvParameters - this value is just to test that the parameter is being passed into the task correctly. */\r
        ( tskIDLE_PRIORITY + 1 ) | portPRIVILEGE_BIT,/* uxPriority - this is the highest priority task in the system.  The task is created in privileged mode to demonstrate accessing the privileged only data. */\r
@@ -280,7 +280,7 @@ static portSTACK_TYPE xRegTest2Stack[ mainREG_TEST_STACK_SIZE_WORDS ] mainALIGN_
 static const xTaskParameters xRegTest1Parameters =\r
 {\r
        prvRegTest1Task,                                                /* pvTaskCode - the function that implements the task. */\r
-       ( signed char * ) "RegTest1",                   /* pcName                       */\r
+       "RegTest1",                                                             /* pcName                       */\r
        mainREG_TEST_STACK_SIZE_WORDS,                  /* usStackDepth         */\r
        ( void * ) 0x12345678,                                  /* pvParameters - this value is just to test that the parameter is being passed into the task correctly. */\r
        tskIDLE_PRIORITY | portPRIVILEGE_BIT,   /* uxPriority - note that this task is created with privileges to demonstrate one method of passing a queue handle into the task. */\r
@@ -297,7 +297,7 @@ static const xTaskParameters xRegTest1Parameters =
 static xTaskParameters xRegTest2Parameters =\r
 {\r
        prvRegTest2Task,                                /* pvTaskCode - the function that implements the task. */\r
-       ( signed char * ) "RegTest2",   /* pcName                       */\r
+       "RegTest2",                                             /* pcName                       */\r
        mainREG_TEST_STACK_SIZE_WORDS,  /* usStackDepth         */\r
        ( void * ) NULL,                                /* pvParameters - this task uses the parameter to pass in a queue handle, but the queue is not created yet. */\r
        tskIDLE_PRIORITY,                               /* uxPriority           */\r
@@ -334,7 +334,7 @@ int main( void )
        /* Create the tasks that are created using the original xTaskCreate() API\r
        function. */\r
        xTaskCreate(    prvOldStyleUserModeTask,        /* The function that implements the task. */\r
-                                       ( signed char * ) "Task1",      /* Text name for the task. */\r
+                                       "Task1",                                        /* Text name for the task. */\r
                                        100,                                            /* Stack depth in words. */\r
                                        NULL,                                           /* Task parameters. */\r
                                        3,                                                      /* Priority and mode (user in this case). */\r
@@ -342,7 +342,7 @@ int main( void )
                                );\r
 \r
        xTaskCreate(    prvOldStylePrivilegedModeTask,  /* The function that implements the task. */\r
-                                       ( signed char * ) "Task2",              /* Text name for the task. */\r
+                                       "Task2",                                                /* Text name for the task. */\r
                                        100,                                                    /* Stack depth in words. */\r
                                        NULL,                                                   /* Task parameters. */\r
                                        ( 3 | portPRIVILEGE_BIT ),              /* Priority and mode. */\r
index acbf37270e3afda3978445ffa7d731b77be70c21..198168a192d83e5734e869bc905ff5361bbd129d 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -71,7 +71,7 @@
  * User mode and Privileged mode, and using both the original xTaskCreate() and\r
  * the new xTaskCreateRestricted() API functions.  The purpose of each created\r
  * task is documented in the comments above the task function prototype (in\r
- * this file), with the task behaviour demonstrated and documented within the \r
+ * this file), with the task behaviour demonstrated and documented within the\r
  * task function itself.  In addition a queue is used to demonstrate passing\r
  * data between protected/restricted tasks as well as passing data between an\r
  * interrupt and a protected/restricted task.\r
@@ -117,7 +117,7 @@ achieved. */
 /* Prototypes for functions that implement tasks. -----------*/\r
 /*-----------------------------------------------------------*/\r
 \r
-/* \r
+/*\r
  * Prototype for the reg test tasks.  Amongst other things, these fill the CPU\r
  * registers with known values before checking that the registers still contain\r
  * the expected values.  Each of the two tasks use different values so an error\r
@@ -147,15 +147,15 @@ static void prvRegTest2Task( void *pvParameters );
 static void prvCheckTask( void *pvParameters );\r
 \r
 /*\r
- * Prototype for a task created in User mode using the original vTaskCreate() \r
+ * Prototype for a task created in User mode using the original vTaskCreate()\r
  * API function.  The task demonstrates the characteristics of such a task,\r
  * before simply deleting itself.\r
  */\r
 static void prvOldStyleUserModeTask( void *pvParameters );\r
 \r
 /*\r
- * Prototype for a task created in Privileged mode using the original \r
- * vTaskCreate() API function.  The task demonstrates the characteristics of \r
+ * Prototype for a task created in Privileged mode using the original\r
+ * vTaskCreate() API function.  The task demonstrates the characteristics of\r
  * such a task, before simply deleting itself.\r
  */\r
 static void prvOldStylePrivilegedModeTask( void *pvParameters );\r
@@ -200,7 +200,7 @@ static void prvTestMemoryRegions( void );
 /* The handle of the queue used to communicate between tasks and between tasks\r
 and interrupts.  Note that this is a file scope variable that falls outside of\r
 any MPU region.  As such other techniques have to be used to allow the tasks\r
-to gain access to the queue.  See the comments in the tasks themselves for \r
+to gain access to the queue.  See the comments in the tasks themselves for\r
 further information. */\r
 static xQueueHandle xFileScopeCheckQueue = NULL;\r
 \r
@@ -216,8 +216,8 @@ stack size is defined in words, not bytes. */
 #define mainCHECK_TASK_STACK_ALIGNMENT ( mainCHECK_TASK_STACK_SIZE_WORDS * sizeof( portSTACK_TYPE ) )\r
 \r
 /* Declare the stack that will be used by the check task.  The kernel will\r
- automatically create an MPU region for the stack.  The stack alignment must \r
- match its size, so if 128 words are reserved for the stack then it must be \r
+ automatically create an MPU region for the stack.  The stack alignment must\r
+ match its size, so if 128 words are reserved for the stack then it must be\r
  aligned to ( 128 * 4 ) bytes. */\r
 static portSTACK_TYPE xCheckTaskStack[ mainCHECK_TASK_STACK_SIZE_WORDS ] mainALIGN_TO( mainCHECK_TASK_STACK_ALIGNMENT );\r
 \r
@@ -226,9 +226,9 @@ using the xTaskParameters structure below.  THIS IS JUST TO DEMONSTRATE THE
 MPU FUNCTIONALITY, the data is not used by the check tasks primary function\r
 of monitoring the reg test tasks and printing out status information.\r
 \r
-Note that the arrays allocate slightly more RAM than is actually assigned to \r
-the MPU region.  This is to permit writes off the end of the array to be \r
-detected even when the arrays are placed in adjacent memory locations (with no \r
+Note that the arrays allocate slightly more RAM than is actually assigned to\r
+the MPU region.  This is to permit writes off the end of the array to be\r
+detected even when the arrays are placed in adjacent memory locations (with no\r
 gaps between them).  The align size must be a power of two. */\r
 #define mainREAD_WRITE_ARRAY_SIZE 130\r
 #define mainREAD_WRITE_ALIGN_SIZE 128\r
@@ -247,7 +247,7 @@ structure passed to the xTaskCreateRestricted() function. */
 static const xTaskParameters xCheckTaskParameters =\r
 {\r
        prvCheckTask,                                                           /* pvTaskCode - the function that implements the task. */\r
-       ( signed char * ) "Check",                                      /* pcName                       */\r
+       "Check",                                                                        /* pcName                       */\r
        mainCHECK_TASK_STACK_SIZE_WORDS,                        /* usStackDepth - defined in words, not bytes. */\r
        ( void * ) 0x12121212,                                          /* pvParameters - this value is just to test that the parameter is being passed into the task correctly. */\r
        ( tskIDLE_PRIORITY + 1 ) | portPRIVILEGE_BIT,/* uxPriority - this is the highest priority task in the system.  The task is created in privileged mode to demonstrate accessing the privileged only data. */\r
@@ -258,7 +258,7 @@ static const xTaskParameters xCheckTaskParameters =
        created with different parameters.  Again, THIS IS JUST TO DEMONSTRATE THE\r
        MPU FUNCTIONALITY, the data is not used by the check tasks primary function\r
        of monitoring the reg test tasks and printing out status information.*/\r
-       {                                                                                       \r
+       {\r
                /* Base address                                 Length                                                                  Parameters */\r
         { cReadWriteArray,                             mainREAD_WRITE_ALIGN_SIZE,                              portMPU_REGION_READ_WRITE },\r
         { cReadOnlyArray,                              mainREAD_ONLY_ALIGN_SIZE,                               portMPU_REGION_READ_ONLY },\r
@@ -266,15 +266,15 @@ static const xTaskParameters xCheckTaskParameters =
        }\r
 };\r
 \r
-/* Three MPU regions are defined for use by the 'check' task when the task is \r
+/* Three MPU regions are defined for use by the 'check' task when the task is\r
 created.  These are only used to demonstrate the MPU features and are not\r
 actually necessary for the check task to fulfill its primary purpose.  Instead\r
-the MPU regions are replaced with those defined by xAltRegions prior to the \r
+the MPU regions are replaced with those defined by xAltRegions prior to the\r
 check task receiving any data on the queue or printing any messages to the\r
 debug console.  The MPU region defined below covers the GPIO peripherals used\r
 to write to the LCD. */\r
 static const xMemoryRegion xAltRegions[ portNUM_CONFIGURABLE_REGIONS ] =\r
-{                                                                                      \r
+{\r
        /* Base address                         Length                  Parameters */\r
        { mainGPIO_START_ADDRESS,       ( 64 * 1024 ),  portMPU_REGION_READ_WRITE },\r
        { 0,                                            0,                              0 },\r
@@ -293,8 +293,8 @@ that stack size is defined in words, not bytes. */
 #define mainREG_TEST_STACK_ALIGNMENT   ( mainREG_TEST_STACK_SIZE_WORDS * sizeof( portSTACK_TYPE ) )\r
 \r
 /* Declare the stacks that will be used by the reg test tasks.  The kernel will\r
-automatically create an MPU region for the stack.  The stack alignment must \r
-match its size, so if 128 words are reserved for the stack then it must be \r
+automatically create an MPU region for the stack.  The stack alignment must\r
+match its size, so if 128 words are reserved for the stack then it must be\r
 aligned to ( 128 * 4 ) bytes. */\r
 static portSTACK_TYPE xRegTest1Stack[ mainREG_TEST_STACK_SIZE_WORDS ] mainALIGN_TO( mainREG_TEST_STACK_ALIGNMENT );\r
 static portSTACK_TYPE xRegTest2Stack[ mainREG_TEST_STACK_SIZE_WORDS ] mainALIGN_TO( mainREG_TEST_STACK_ALIGNMENT );\r
@@ -303,7 +303,7 @@ static portSTACK_TYPE xRegTest2Stack[ mainREG_TEST_STACK_SIZE_WORDS ] mainALIGN_
 static const xTaskParameters xRegTest1Parameters =\r
 {\r
        prvRegTest1Task,                                                /* pvTaskCode - the function that implements the task. */\r
-       ( signed char * ) "RegTest1",                   /* pcName                       */\r
+       "RegTest1",                                                             /* pcName                       */\r
        mainREG_TEST_STACK_SIZE_WORDS,                  /* usStackDepth         */\r
        ( void * ) 0x12345678,                                  /* pvParameters - this value is just to test that the parameter is being passed into the task correctly. */\r
        tskIDLE_PRIORITY | portPRIVILEGE_BIT,   /* uxPriority - note that this task is created with privileges to demonstrate one method of passing a queue handle into the task. */\r
@@ -320,7 +320,7 @@ static const xTaskParameters xRegTest1Parameters =
 static xTaskParameters xRegTest2Parameters =\r
 {\r
        prvRegTest2Task,                                /* pvTaskCode - the function that implements the task. */\r
-       ( signed char * ) "RegTest2",   /* pcName                       */\r
+       "RegTest2",                                             /* pcName                       */\r
        mainREG_TEST_STACK_SIZE_WORDS,  /* usStackDepth         */\r
        ( void * ) NULL,                                /* pvParameters - this task uses the parameter to pass in a queue handle, but the queue is not created yet. */\r
        tskIDLE_PRIORITY,                               /* uxPriority           */\r
@@ -357,7 +357,7 @@ int main( void )
        /* Create the tasks that are created using the original xTaskCreate() API\r
        function. */\r
        xTaskCreate(    prvOldStyleUserModeTask,        /* The function that implements the task. */\r
-                                       ( signed char * ) "Task1",      /* Text name for the task. */\r
+                                       "Task1",                                        /* Text name for the task. */\r
                                        100,                                            /* Stack depth in words. */\r
                                        NULL,                                           /* Task parameters. */\r
                                        3,                                                      /* Priority and mode (user in this case). */\r
@@ -365,7 +365,7 @@ int main( void )
                                );\r
 \r
        xTaskCreate(    prvOldStylePrivilegedModeTask,  /* The function that implements the task. */\r
-                                       ( signed char * ) "Task2",              /* Text name for the task. */\r
+                                       "Task2",                                                /* Text name for the task. */\r
                                        100,                                                    /* Stack depth in words. */\r
                                        NULL,                                                   /* Task parameters. */\r
                                        ( 3 | portPRIVILEGE_BIT ),              /* Priority and mode. */\r
@@ -397,7 +397,7 @@ unsigned char x = 5, y = 10;
        /* Just to remove compiler warning. */\r
        ( void ) pvParameters;\r
 \r
-       /* Demonstrate how the various memory regions can and can't be accessed. \r
+       /* Demonstrate how the various memory regions can and can't be accessed.\r
        The task privilege is set down to user mode within this function. */\r
        prvTestMemoryRegions();\r
 \r
@@ -411,26 +411,26 @@ unsigned char x = 5, y = 10;
        {\r
                /* Wait for the next message to arrive. */\r
                xQueueReceive( xQueue, &lMessage, portMAX_DELAY );\r
-               \r
+\r
                switch( lMessage )\r
                {\r
-                       case mainREG_TEST_1_STILL_EXECUTING     :       \r
+                       case mainREG_TEST_1_STILL_EXECUTING     :\r
                                        /* Message from task 1, so task 1 must still be executing. */\r
                                        ( ulStillAliveCounts[ 0 ] )++;\r
                                        break;\r
 \r
-                       case mainREG_TEST_2_STILL_EXECUTING     :                                               \r
+                       case mainREG_TEST_2_STILL_EXECUTING     :\r
                                        /* Message from task 2, so task 2 must still be executing. */\r
                                        ( ulStillAliveCounts[ 1 ] )++;\r
                                        break;\r
 \r
-                       case mainPRINT_SYSTEM_STATUS            :       \r
+                       case mainPRINT_SYSTEM_STATUS            :\r
                                        /* Message from tick hook, time to print out the system\r
                                        status.  If messages has stopped arriving from either reg\r
                                        test task then the status must be set to fail. */\r
                                        if( ( ulStillAliveCounts[ 0 ] == 0 ) || ( ulStillAliveCounts[ 1 ] == 0 )  )\r
                                        {\r
-                                               /* One or both of the test tasks are no longer sending \r
+                                               /* One or both of the test tasks are no longer sending\r
                                                'still alive' messages. */\r
                                                pcStatusMessage = "FAIL\r\n";\r
                                        }\r
@@ -438,7 +438,7 @@ unsigned char x = 5, y = 10;
                                        /* Print a pass/fail message to the LCD - moving the\r
                                        message each time to provide feedback that the output\r
                                        is still being produced.  LCD_PrintString() accesses const\r
-                                       data stored in flash, which all tasks are at liberty to do, \r
+                                       data stored in flash, which all tasks are at liberty to do,\r
                                        and GPIO for which an MPU region has been set up for it. */\r
                                        LCD_ClearScreen();\r
                                        LCD_PrintString( x>>1, y>>1, pcStatusMessage, 6, COLOR_RED );\r
@@ -450,7 +450,7 @@ unsigned char x = 5, y = 10;
                                        break;\r
 \r
                default :\r
-                                       /* Something unexpected happened.  Delete this task so the \r
+                                       /* Something unexpected happened.  Delete this task so the\r
                                        error is apparent (no output will be displayed). */\r
                                        prvDeleteMe();\r
                                        break;\r
@@ -464,8 +464,8 @@ static void prvTestMemoryRegions( void )
 long l;\r
 char cTemp;\r
 \r
-       /* The check task (from which this function is called) is created in the \r
-       Privileged mode.  The privileged array can be both read from and written \r
+       /* The check task (from which this function is called) is created in the\r
+       Privileged mode.  The privileged array can be both read from and written\r
        to while this task is privileged. */\r
        cPrivilegedOnlyAccessArray[ 0 ] = 'a';\r
        if( cPrivilegedOnlyAccessArray[ 0 ] != 'a' )\r
@@ -476,15 +476,15 @@ char cTemp;
        }\r
 \r
        /* Writing off the end of the RAM allocated to this task will *NOT* cause a\r
-       protection fault because the task is still executing in a privileged mode.  \r
+       protection fault because the task is still executing in a privileged mode.\r
        Uncomment the following to test. */\r
        /* cPrivilegedOnlyAccessArray[ mainPRIVILEGED_ONLY_ACCESS_ALIGN_SIZE ] = 'a'; */\r
 \r
        /* Now set the task into user mode. */\r
        portSWITCH_TO_USER_MODE();\r
-        \r
-       /* Accessing the privileged only array will now cause a fault.  Uncomment \r
-       the following line to test. */    \r
+\r
+       /* Accessing the privileged only array will now cause a fault.  Uncomment\r
+       the following line to test. */\r
        /* cPrivilegedOnlyAccessArray[ 0 ] = 'a'; */\r
 \r
        /* The read/write array can still be successfully read and written. */\r
@@ -500,7 +500,7 @@ char cTemp;
        }\r
 \r
        /* But attempting to read or write off the end of the RAM allocated to this\r
-       task will cause a fault.  Uncomment either of the following two lines to \r
+       task will cause a fault.  Uncomment either of the following two lines to\r
        test. */\r
        /* cReadWriteArray[ 0 ] = cReadWriteArray[ -1 ]; */\r
        /* cReadWriteArray[ mainREAD_WRITE_ALIGN_SIZE ] = 0x00; */\r
@@ -514,14 +514,14 @@ char cTemp;
        /* ...but cannot be written.  Uncomment the following line to test. */\r
        /* cReadOnlyArray[ 0 ] = 'a'; */\r
 \r
-       /* Writing to the first and last locations in the stack array should not \r
+       /* Writing to the first and last locations in the stack array should not\r
        cause a protection fault.  Note that doing this will cause the kernel to\r
-       detect a stack overflow if configCHECK_FOR_STACK_OVERFLOW is greater than \r
+       detect a stack overflow if configCHECK_FOR_STACK_OVERFLOW is greater than\r
        1. */\r
     xCheckTaskStack[ 0 ] = 0;\r
     xCheckTaskStack[ mainCHECK_TASK_STACK_SIZE_WORDS - 1 ] = 0;\r
 \r
-       /* Writing off either end of the stack array should cause a protection \r
+       /* Writing off either end of the stack array should cause a protection\r
        fault, uncomment either of the following two lines to test. */\r
        /* xCheckTaskStack[ -1 ] = 0; */\r
     /* xCheckTaskStack[ mainCHECK_TASK_STACK_SIZE_WORDS ] = 0; */\r
@@ -536,7 +536,7 @@ mode.  Once this task is in user mode the file scope queue variable will no
 longer be accessible but the stack copy will. */\r
 xQueueHandle xQueue = xFileScopeCheckQueue;\r
 \r
-       /* Now the queue handle has been obtained the task can switch to user \r
+       /* Now the queue handle has been obtained the task can switch to user\r
        mode.  This is just one method of passing a handle into a protected\r
        task, the other reg test task uses the task parameter instead. */\r
     portSWITCH_TO_USER_MODE();\r
@@ -551,12 +551,12 @@ xQueueHandle xQueue = xFileScopeCheckQueue;
 \r
 \r
        for( ;; )\r
-       {               \r
+       {\r
                /* This task tests the kernel context switch mechanism by reading and\r
                writing directly to registers - which requires the test to be written\r
                in assembly code. */\r
-               __asm volatile \r
-               (       \r
+               __asm volatile\r
+               (\r
                        "               MOV     R4, #104                        \n" /* Set registers to a known value.  R0 to R1 are done in the loop below. */\r
                        "               MOV     R5, #105                        \n"\r
                        "               MOV     R6, #106                        \n"\r
@@ -579,8 +579,8 @@ xQueueHandle xQueue = xFileScopeCheckQueue;
                        "               BNE     prvDeleteMe                     \n"\r
                        "               CMP R3, #103                    \n"\r
                        "               BNE     prvDeleteMe                     \n"\r
-                       "               CMP     R4, #104                        \n" \r
-                       "               BNE     prvDeleteMe                     \n" \r
+                       "               CMP     R4, #104                        \n"\r
+                       "               BNE     prvDeleteMe                     \n"\r
                        "               CMP     R5, #105                        \n"\r
                        "               BNE     prvDeleteMe                     \n"\r
                        "               CMP     R6, #106                        \n"\r
@@ -598,7 +598,7 @@ xQueueHandle xQueue = xFileScopeCheckQueue;
                        :::"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r8", "r9", "r10", "r11", "r12"\r
                );\r
 \r
-               /* Send mainREG_TEST_1_STILL_EXECUTING to the check task to indicate that this \r
+               /* Send mainREG_TEST_1_STILL_EXECUTING to the check task to indicate that this\r
                task is still functioning. */\r
                prvSendImAlive( xQueue, mainREG_TEST_1_STILL_EXECUTING );\r
 \r
@@ -611,7 +611,7 @@ xQueueHandle xQueue = xFileScopeCheckQueue;
 static void prvRegTest2Task( void *pvParameters )\r
 {\r
 /* The queue handle is passed in as the task parameter.  This is one method of\r
-passing data into a protected task, the other reg test task uses a different \r
+passing data into a protected task, the other reg test task uses a different\r
 method. */\r
 xQueueHandle xQueue = ( xQueueHandle ) pvParameters;\r
 \r
@@ -620,15 +620,15 @@ xQueueHandle xQueue = ( xQueueHandle ) pvParameters;
                /* This task tests the kernel context switch mechanism by reading and\r
                writing directly to registers - which requires the test to be written\r
                in assembly code. */\r
-               __asm volatile \r
-               (       \r
+               __asm volatile\r
+               (\r
                        "               MOV     R4, #4                          \n" /* Set registers to a known value.  R0 to R1 are done in the loop below. */\r
                        "               MOV     R5, #5                          \n"\r
                        "               MOV     R6, #6                          \n"\r
                        "               MOV     R8, #8                          \n" /* Frame pointer is omitted as it must not be changed. */\r
                        "               MOV     R9, #9                          \n"\r
                        "               MOV     R10, 10                         \n"\r
-                       "               MOV     R11, #11                        \n"                                             \r
+                       "               MOV     R11, #11                        \n"\r
                        "reg2loop:                                              \n"\r
                        "               MOV     R0, #13                         \n" /* Set the scratch registers to known values - done inside the loop as they get clobbered. */\r
                        "               MOV     R1, #1                          \n"\r
@@ -662,7 +662,7 @@ xQueueHandle xQueue = ( xQueueHandle ) pvParameters;
             :::"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r8", "r9", "r10", "r11", "r12"\r
                );\r
 \r
-               /* Send mainREG_TEST_2_STILL_EXECUTING to the check task to indicate that this \r
+               /* Send mainREG_TEST_2_STILL_EXECUTING to the check task to indicate that this\r
                task is still functioning. */\r
                prvSendImAlive( xQueue, mainREG_TEST_2_STILL_EXECUTING );\r
 \r
@@ -684,8 +684,8 @@ volatile unsigned long ulReadData;
 \r
        /* The idle task, and therefore this function, run in Supervisor mode and\r
        can therefore access all memory.  Try reading from corners of flash and\r
-       RAM to ensure a memory fault does not occur. \r
-       \r
+       RAM to ensure a memory fault does not occur.\r
+\r
        Start with the edges of the privileged data area. */\r
        pul = __privileged_data_start__;\r
        ulReadData = *pul;\r
@@ -703,9 +703,9 @@ volatile unsigned long ulReadData;
        pul = __FLASH_segment_end__ - 1;\r
        ulReadData = *pul;\r
 \r
-       /* Reading off the end of Flash or SRAM space should cause a fault.  \r
+       /* Reading off the end of Flash or SRAM space should cause a fault.\r
        Uncomment one of the following two pairs of lines to test. */\r
-       \r
+\r
        /* pul = __FLASH_segment_end__ + 4;\r
        ulReadData = *pul; */\r
 \r
@@ -726,7 +726,7 @@ const volatile unsigned long *pulStandardPeripheralRegister = ( volatile unsigne
 volatile unsigned long *pul;\r
 volatile unsigned long ulReadData;\r
 \r
-/* The following lines are commented out to prevent the unused variable \r
+/* The following lines are commented out to prevent the unused variable\r
 compiler warnings when the tests that use the variable are also commented out.\r
 extern unsigned long __privileged_functions_start__[];\r
 const volatile unsigned long *pulSystemPeripheralRegister = ( volatile unsigned long * ) 0xe000e014; */\r
@@ -766,17 +766,17 @@ const volatile unsigned long *pulSystemPeripheralRegister = ( volatile unsigned
 \r
        /* pul = __privileged_functions_start__;\r
        ulReadData = *pul; */\r
-       \r
+\r
        /* pul = __privileged_functions_end__ - 1;\r
        ulReadData = *pul; */\r
 \r
        /* pul = __privileged_data_start__;\r
-       ulReadData = *pul; */ \r
-       \r
+       ulReadData = *pul; */\r
+\r
        /* pul = __privileged_data_end__ - 1;\r
        ulReadData = *pul; */\r
 \r
-       /* Must not just run off the end of a task function, so delete this task. \r
+       /* Must not just run off the end of a task function, so delete this task.\r
        Note that because this task was created using xTaskCreate() the stack was\r
        allocated dynamically and I have not included any code to free it again. */\r
        vTaskDelete( NULL );\r
@@ -799,10 +799,10 @@ const volatile unsigned long *pulStandardPeripheralRegister = ( volatile unsigne
 \r
        ( void ) pvParameters;\r
 \r
-       /* This task is created in Privileged mode using the original xTaskCreate() \r
-       API     function.  It should have access to all Flash and RAM including that \r
-       marked as Privileged access only.  So reading from the start and end of the \r
-       non-privileged RAM should not cause a problem (the privileged RAM is the \r
+       /* This task is created in Privileged mode using the original xTaskCreate()\r
+       API     function.  It should have access to all Flash and RAM including that\r
+       marked as Privileged access only.  So reading from the start and end of the\r
+       non-privileged RAM should not cause a problem (the privileged RAM is the\r
        first block at the bottom of the RAM memory). */\r
        pul = __privileged_data_end__ + 1;\r
        ulReadData = *pul;\r
@@ -824,7 +824,7 @@ const volatile unsigned long *pulStandardPeripheralRegister = ( volatile unsigne
        pul = __privileged_functions_end__ - 1;\r
        ulReadData = *pul;\r
        pul = __privileged_data_start__;\r
-       ulReadData = *pul;      \r
+       ulReadData = *pul;\r
        pul = __privileged_data_end__ - 1;\r
        ulReadData = *pul;\r
 \r
@@ -833,7 +833,7 @@ const volatile unsigned long *pulStandardPeripheralRegister = ( volatile unsigne
     ulReadData = *pulSystemPeripheralRegister;\r
        ulReadData = *pulStandardPeripheralRegister;\r
 \r
-       /* Must not just run off the end of a task function, so delete this task. \r
+       /* Must not just run off the end of a task function, so delete this task.\r
        Note that because this task was created using xTaskCreate() the stack was\r
        allocated dynamically and I have not included any code to free it again. */\r
        vTaskDelete( NULL );\r
@@ -869,84 +869,84 @@ void prvSetupHardware( void )
        if ( SC->PLL0STAT & ( 1 << 25 ) )\r
        {\r
                /* Enable PLL, disconnected. */\r
-               SC->PLL0CON = 1;                        \r
+               SC->PLL0CON = 1;\r
                SC->PLL0FEED = PLLFEED_FEED1;\r
                SC->PLL0FEED = PLLFEED_FEED2;\r
        }\r
-       \r
+\r
        /* Disable PLL, disconnected. */\r
-       SC->PLL0CON = 0;                                \r
+       SC->PLL0CON = 0;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-           \r
+\r
        /* Enable main OSC. */\r
-       SC->SCS |= 0x20;                        \r
+       SC->SCS |= 0x20;\r
        while( !( SC->SCS & 0x40 ) );\r
-       \r
+\r
        /* select main OSC, 12MHz, as the PLL clock source. */\r
-       SC->CLKSRCSEL = 0x1;            \r
-       \r
+       SC->CLKSRCSEL = 0x1;\r
+\r
        SC->PLL0CFG = 0x20031;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-             \r
+\r
        /* Enable PLL, disconnected. */\r
-       SC->PLL0CON = 1;                                \r
+       SC->PLL0CON = 1;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-       \r
+\r
        /* Set clock divider. */\r
        SC->CCLKCFG = 0x03;\r
-       \r
+\r
        /* Configure flash accelerator. */\r
        SC->FLASHCFG = 0x403a;\r
-       \r
+\r
        /* Check lock bit status. */\r
-       while( ( ( SC->PLL0STAT & ( 1 << 26 ) ) == 0 ) );       \r
-           \r
+       while( ( ( SC->PLL0STAT & ( 1 << 26 ) ) == 0 ) );\r
+\r
        /* Enable and connect. */\r
-       SC->PLL0CON = 3;                                \r
+       SC->PLL0CON = 3;\r
        SC->PLL0FEED = PLLFEED_FEED1;\r
        SC->PLL0FEED = PLLFEED_FEED2;\r
-       while( ( ( SC->PLL0STAT & ( 1 << 25 ) ) == 0 ) );       \r
+       while( ( ( SC->PLL0STAT & ( 1 << 25 ) ) == 0 ) );\r
+\r
+\r
+\r
 \r
-       \r
-       \r
-       \r
        /* Configure the clock for the USB. */\r
-         \r
+\r
        if( SC->PLL1STAT & ( 1 << 9 ) )\r
        {\r
                /* Enable PLL, disconnected. */\r
-               SC->PLL1CON = 1;                        \r
+               SC->PLL1CON = 1;\r
                SC->PLL1FEED = PLLFEED_FEED1;\r
                SC->PLL1FEED = PLLFEED_FEED2;\r
        }\r
-       \r
+\r
        /* Disable PLL, disconnected. */\r
-       SC->PLL1CON = 0;                                \r
+       SC->PLL1CON = 0;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
-       \r
+\r
        SC->PLL1CFG = 0x23;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
-             \r
+\r
        /* Enable PLL, disconnected. */\r
-       SC->PLL1CON = 1;                                \r
+       SC->PLL1CON = 1;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
        while( ( ( SC->PLL1STAT & ( 1 << 10 ) ) == 0 ) );\r
-       \r
+\r
        /* Enable and connect. */\r
-       SC->PLL1CON = 3;                                \r
+       SC->PLL1CON = 3;\r
        SC->PLL1FEED = PLLFEED_FEED1;\r
        SC->PLL1FEED = PLLFEED_FEED2;\r
        while( ( ( SC->PLL1STAT & ( 1 << 9 ) ) == 0 ) );\r
 \r
        /*  Setup the peripheral bus to be the same as the PLL output (64 MHz). */\r
        SC->PCLKSEL0 = 0x05555555;\r
-       \r
+\r
        /* Prepare the LCD. */\r
        LCDdriver_initialisation();\r
        LCD_PrintString( 5, 10, "FreeRTOS.org", 14, COLOR_GREEN);\r
@@ -972,8 +972,8 @@ portBASE_TYPE xDummy;
                ulCallCount = 0;\r
 \r
                /* Send a message to the check task to command it to check that all\r
-               the tasks are still running then print out the status. \r
-               \r
+               the tasks are still running then print out the status.\r
+\r
                This is running in an ISR so has to use the "FromISR" version of\r
                xQueueSend().  Because it is in an ISR it is running with privileges\r
                so can access xFileScopeCheckQueue directly. */\r
@@ -984,7 +984,7 @@ portBASE_TYPE xDummy;
 \r
 void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName )\r
 {\r
-       /* If configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2 then this \r
+       /* If configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2 then this\r
        function will automatically get called if a task overflows its stack. */\r
        ( void ) pxTask;\r
        ( void ) pcTaskName;\r
index ce491b6bcc28bb2d5455c3108f90ef7c802ad9e0..2122140f681c36c010866e69e76151f1d51b10b5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
 \r
 /*\r
- * Creates eight tasks, each of which loops continuously performing an (emulated) \r
+ * Creates eight tasks, each of which loops continuously performing an (emulated)\r
  * floating point calculation.\r
  *\r
- * All the tasks run at the idle priority and never block or yield.  This causes \r
- * all eight tasks to time slice with the idle task.  Running at the idle priority \r
+ * All the tasks run at the idle priority and never block or yield.  This causes\r
+ * all eight tasks to time slice with the idle task.  Running at the idle priority\r
  * means that these tasks will get pre-empted any time another task is ready to run\r
- * or a time slice occurs.  More often than not the pre-emption will occur mid \r
- * calculation, creating a good test of the schedulers context switch mechanism - a \r
- * calculation producing an unexpected result could be a symptom of a corruption in \r
+ * or a time slice occurs.  More often than not the pre-emption will occur mid\r
+ * calculation, creating a good test of the schedulers context switch mechanism - a\r
+ * calculation producing an unexpected result could be a symptom of a corruption in\r
  * the context of a task.\r
  */\r
 \r
 #define mathSTACK_SIZE         configMINIMAL_STACK_SIZE\r
 #define mathNUMBER_OF_TASKS  ( 8 )\r
 \r
-/* Four tasks, each of which performs a different floating point calculation.  \r
+/* Four tasks, each of which performs a different floating point calculation.\r
 Each of the four is created twice. */\r
 static portTASK_FUNCTION_PROTO( vCompetingMathTask1, pvParameters );\r
 static portTASK_FUNCTION_PROTO( vCompetingMathTask2, pvParameters );\r
 static portTASK_FUNCTION_PROTO( vCompetingMathTask3, pvParameters );\r
 static portTASK_FUNCTION_PROTO( vCompetingMathTask4, pvParameters );\r
 \r
-/* These variables are used to check that all the tasks are still running.  If a \r
+/* These variables are used to check that all the tasks are still running.  If a\r
 task gets a calculation wrong it will\r
 stop incrementing its check variable. */\r
 static volatile unsigned long ulTaskCheck[ mathNUMBER_OF_TASKS ] = { 0 };\r
@@ -112,14 +112,14 @@ a floating point context. */
 \r
 void vStartMathTasks( unsigned portBASE_TYPE uxPriority )\r
 {\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math1", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 0 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math2", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 1 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math3", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 2 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math4", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 3 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math5", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 4 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math6", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 5 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math7", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 6 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math8", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 7 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 0 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 1 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 2 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 3 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 4 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 5 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 6 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( ulTaskCheck[ 7 ] ), uxPriority, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -144,7 +144,7 @@ short sError = pdFALSE;
 \r
        dAnswer = ( d1 + d2 ) * d3;\r
 \r
-       /* The variable this task increments to show it is still running is passed in \r
+       /* The variable this task increments to show it is still running is passed in\r
        as the parameter. */\r
        pulTaskCheckVariable = ( unsigned long * ) pvParameters;\r
 \r
@@ -161,7 +161,7 @@ short sError = pdFALSE;
                        taskYIELD();\r
                #endif\r
 \r
-               /* If the calculation does not match the expected constant, stop the \r
+               /* If the calculation does not match the expected constant, stop the\r
                increment of the check variable. */\r
                if( fabs( d4 - dAnswer ) > 0.001 )\r
                {\r
@@ -170,7 +170,7 @@ short sError = pdFALSE;
 \r
                if( sError == pdFALSE )\r
                {\r
-                       /* If the calculation has always been correct, increment the check \r
+                       /* If the calculation has always been correct, increment the check\r
                        variable so we know this task is still running okay. */\r
                        ( *pulTaskCheckVariable )++;\r
                }\r
@@ -204,7 +204,7 @@ short sError = pdFALSE;
        dAnswer = ( d1 / d2 ) * d3;\r
 \r
 \r
-       /* The variable this task increments to show it is still running is passed in \r
+       /* The variable this task increments to show it is still running is passed in\r
        as the parameter. */\r
        pulTaskCheckVariable = ( unsigned long * ) pvParameters;\r
 \r
@@ -220,8 +220,8 @@ short sError = pdFALSE;
                #if configUSE_PREEMPTION == 0\r
                        taskYIELD();\r
                #endif\r
-               \r
-               /* If the calculation does not match the expected constant, stop the \r
+\r
+               /* If the calculation does not match the expected constant, stop the\r
                increment of the check variable. */\r
                if( fabs( d4 - dAnswer ) > 0.001 )\r
                {\r
@@ -230,7 +230,7 @@ short sError = pdFALSE;
 \r
                if( sError == pdFALSE )\r
                {\r
-                       /* If the calculation has always been correct, increment the check \r
+                       /* If the calculation has always been correct, increment the check\r
                        variable so we know\r
                        this task is still running okay. */\r
                        ( *pulTaskCheckVariable )++;\r
@@ -258,14 +258,14 @@ short sError = pdFALSE;
                vPortTaskUsesFPU();\r
        #endif\r
 \r
-       /* The variable this task increments to show it is still running is passed in \r
+       /* The variable this task increments to show it is still running is passed in\r
        as the parameter. */\r
        pulTaskCheckVariable = ( unsigned long * ) pvParameters;\r
 \r
        pdArray = ( portDOUBLE * ) pvPortMalloc( xArraySize * sizeof( portDOUBLE ) );\r
 \r
-       /* Keep filling an array, keeping a running total of the values placed in the \r
-       array.  Then run through the array adding up all the values.  If the two totals \r
+       /* Keep filling an array, keeping a running total of the values placed in the\r
+       array.  Then run through the array adding up all the values.  If the two totals\r
        do not match, stop the check variable from incrementing. */\r
        for( ;; )\r
        {\r
@@ -275,7 +275,7 @@ short sError = pdFALSE;
                for( xPosition = 0; xPosition < xArraySize; xPosition++ )\r
                {\r
                        pdArray[ xPosition ] = ( portDOUBLE ) xPosition + 5.5;\r
-                       dTotal1 += ( portDOUBLE ) xPosition + 5.5;      \r
+                       dTotal1 += ( portDOUBLE ) xPosition + 5.5;\r
                }\r
 \r
                #if configUSE_PREEMPTION == 0\r
@@ -299,7 +299,7 @@ short sError = pdFALSE;
 \r
                if( sError == pdFALSE )\r
                {\r
-                       /* If the calculation has always been correct, increment the check \r
+                       /* If the calculation has always been correct, increment the check\r
                        variable so we know     this task is still running okay. */\r
                        ( *pulTaskCheckVariable )++;\r
                }\r
@@ -322,14 +322,14 @@ short sError = pdFALSE;
                vPortTaskUsesFPU();\r
        #endif\r
 \r
-       /* The variable this task increments to show it is still running is passed in \r
+       /* The variable this task increments to show it is still running is passed in\r
        as the parameter. */\r
        pulTaskCheckVariable = ( unsigned long * ) pvParameters;\r
 \r
        pdArray = ( portDOUBLE * ) pvPortMalloc( xArraySize * sizeof( portDOUBLE ) );\r
 \r
-       /* Keep filling an array, keeping a running total of the values placed in the \r
-       array.  Then run through the array adding up all the values.  If the two totals \r
+       /* Keep filling an array, keeping a running total of the values placed in the\r
+       array.  Then run through the array adding up all the values.  If the two totals\r
        do not match, stop the check variable from incrementing. */\r
        for( ;; )\r
        {\r
@@ -339,7 +339,7 @@ short sError = pdFALSE;
                for( xPosition = 0; xPosition < xArraySize; xPosition++ )\r
                {\r
                        pdArray[ xPosition ] = ( portDOUBLE ) xPosition * 12.123;\r
-                       dTotal1 += ( portDOUBLE ) xPosition * 12.123;   \r
+                       dTotal1 += ( portDOUBLE ) xPosition * 12.123;\r
                }\r
 \r
                #if configUSE_PREEMPTION == 0\r
@@ -363,23 +363,23 @@ short sError = pdFALSE;
 \r
                if( sError == pdFALSE )\r
                {\r
-                       /* If the calculation has always been correct, increment the check \r
+                       /* If the calculation has always been correct, increment the check\r
                        variable so we know     this task is still running okay. */\r
                        ( *pulTaskCheckVariable )++;\r
                }\r
        }\r
-}                               \r
+}\r
 /*-----------------------------------------------------------*/\r
 \r
 /* This is called to check that all the created tasks are still running. */\r
 portBASE_TYPE xAreMathsTaskStillRunning( void )\r
 {\r
-/* Keep a history of the check variables so we know if they have been incremented \r
+/* Keep a history of the check variables so we know if they have been incremented\r
 since the last call. */\r
 static unsigned long ulLastTaskCheck[ mathNUMBER_OF_TASKS ] = { ( unsigned short ) 0 };\r
 portBASE_TYPE xReturn = pdTRUE, xTask;\r
 \r
-       /* Check the maths tasks are still running by ensuring their check variables \r
+       /* Check the maths tasks are still running by ensuring their check variables\r
        are still incrementing. */\r
        for( xTask = 0; xTask < mathNUMBER_OF_TASKS; xTask++ )\r
        {\r
index 7917b14592e87b70b812f9ea3c8fe5698a09007d..8f814b7c53002c48f9262422ea61de5786da25e9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -124,7 +124,7 @@ will remove items as they are added, meaning the send task should always find
 the queue empty. */\r
 #define mainQUEUE_LENGTH                                       ( 1 )\r
 \r
-/* Values passed to the two tasks just to check the task parameter \r
+/* Values passed to the two tasks just to check the task parameter\r
 functionality. */\r
 #define mainQUEUE_SEND_PARAMETER                       ( 0x1111UL )\r
 #define mainQUEUE_RECEIVE_PARAMETER                    ( 0x22UL )\r
@@ -160,13 +160,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 91c8a76c35e586e0e800d252cadb0acecaf19991..59450465c44697592481d3183a27e8b01ea9cdfb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * software time maintains a pattern of spinning white LEDs.\r
  *\r
  * See the documentation page for this demo on the FreeRTOS.org web site for\r
- * full information, including hardware setup requirements. \r
+ * full information, including hardware setup requirements.\r
  */\r
 \r
 /* Standard includes. */\r
@@ -203,19 +203,19 @@ xTimerHandle xTimer = NULL;
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
 \r
        /* Create the register test tasks, as described at the top of this file. */\r
-       xTaskCreate( vRegTestTask1, ( const signed char * ) "Reg1...", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTestTask2, ( const signed char * ) "Reg2...", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       \r
+       xTaskCreate( vRegTestTask1, "Reg1...", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTestTask2, "Reg2...", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                       ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                       prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xTimer = xTimerCreate( "CheckTimer",                                    /* A text name, purely to help debugging. */\r
+                                                       ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                       pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                       ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                       prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                 );\r
-       \r
+\r
        if( xTimer != NULL )\r
        {\r
                xTimerStart( xTimer, mainDONT_BLOCK );\r
@@ -223,11 +223,11 @@ xTimerHandle xTimer = NULL;
 \r
        /* Create the software timer that performs the 'LED spin' functionality,\r
        as described at the top of this file. */\r
-       xTimer = xTimerCreate( ( const signed char * ) "LEDTimer",      /* A text name, purely to help debugging. */\r
-                                                       ( mainLED_TIMER_PERIOD_MS ),            /* The timer period, in this case 75ms. */\r
-                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                       prvLEDTimerCallback                                     /* The callback function that toggles the white LEDs. */\r
+       xTimer = xTimerCreate( "LEDTimer",                                      /* A text name, purely to help debugging. */\r
+                                                       ( mainLED_TIMER_PERIOD_MS ),/* The timer period, in this case 75ms. */\r
+                                                       pdTRUE,                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                       ( void * ) 0,                           /* The ID is not used, so can be set to anything. */\r
+                                                       prvLEDTimerCallback                     /* The callback function that toggles the white LEDs. */\r
                                                 );\r
 \r
        if( xTimer != NULL )\r
@@ -235,20 +235,20 @@ xTimerHandle xTimer = NULL;
                xTimerStart( xTimer, mainDONT_BLOCK );\r
        }\r
 \r
-       /* The set of tasks created by the following function call have to be \r
-       created last as they keep account of the number of tasks they expect to see \r
+       /* The set of tasks created by the following function call have to be\r
+       created last as they keep account of the number of tasks they expect to see\r
        running. */\r
        vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* If all is well, the scheduler will now be running, and the following line\r
        will never be reached.  If the following line does execute, then there was\r
        insufficient FreeRTOS heap memory available for the idle and/or timer tasks\r
        to be created.  See the memory management section on the FreeRTOS web site\r
        for more details. */\r
-       for( ;; );      \r
+       for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -340,7 +340,7 @@ const unsigned long ulRedLED1 = 6, ulRedLED2 = 9;
        LEDs are toggling, then an error has been reported in at least one task. */\r
        vParTestToggleLED( ulLED1 );\r
        vParTestToggleLED( ulLED2 );\r
-       \r
+\r
        /* Have any errors been latch in ulErrorFound?  If so, ensure the gree LEDs\r
        are off, then switch to using the red LEDs. */\r
        if( ulErrorFound != pdFALSE )\r
@@ -348,7 +348,7 @@ const unsigned long ulRedLED1 = 6, ulRedLED2 = 9;
                if( lChangeToRedLEDsAlready == pdFALSE )\r
                {\r
                        lChangeToRedLEDsAlready = pdTRUE;\r
-                       \r
+\r
                        /* An error has been found.  Switch to use the red LEDs. */\r
                        vParTestSetLED( ulLED1, pdFALSE );\r
                        vParTestSetLED( ulLED2, pdFALSE );\r
index 6d9b262b8aa551f805de80b5bcf9093257090cad..70510cbe50972359ec3ab6bc2a456e4a8693a3d3 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
 /*\r
 This simple demo project runs on the STM32 Discovery board, which is\r
-populated with an STM32F100RB Cortex-M3 microcontroller.  The discovery board \r
+populated with an STM32F100RB Cortex-M3 microcontroller.  The discovery board\r
 makes an ideal low cost evaluation platform, but the 8K of RAM provided on the\r
-STM32F100RB does not allow the simple application to demonstrate all of all the \r
-FreeRTOS kernel features.  Therefore, this simple demo only actively \r
-demonstrates task, queue, timer and interrupt functionality.  In addition, the \r
-demo is configured to include malloc failure, idle and stack overflow hook \r
+STM32F100RB does not allow the simple application to demonstrate all of all the\r
+FreeRTOS kernel features.  Therefore, this simple demo only actively\r
+demonstrates task, queue, timer and interrupt functionality.  In addition, the\r
+demo is configured to include malloc failure, idle and stack overflow hook\r
 functions.\r
 \r
 The idle hook function:\r
 The idle hook function queries the amount of FreeRTOS heap space that is\r
-remaining (see vApplicationIdleHook() defined in this file).  The demo \r
-application is configured to use 7K of the available 8K of RAM as the FreeRTOS \r
-heap.  Memory is only allocated from this heap during initialisation, and this \r
-demo only actually uses 1.6K bytes of the configured 7K available - leaving 5.4K \r
+remaining (see vApplicationIdleHook() defined in this file).  The demo\r
+application is configured to use 7K of the available 8K of RAM as the FreeRTOS\r
+heap.  Memory is only allocated from this heap during initialisation, and this\r
+demo only actually uses 1.6K bytes of the configured 7K available - leaving 5.4K\r
 bytes of heap space unallocated.\r
 \r
 The main() Function:\r
@@ -86,31 +86,31 @@ main() creates one software timer, one queue, and two tasks.  It then starts the
 scheduler.\r
 \r
 The Queue Send Task:\r
-The queue send task is implemented by the prvQueueSendTask() function in this \r
-file.  prvQueueSendTask() sits in a loop that causes it to repeatedly block for \r
-200 milliseconds, before sending the value 100 to the queue that was created \r
+The queue send task is implemented by the prvQueueSendTask() function in this\r
+file.  prvQueueSendTask() sits in a loop that causes it to repeatedly block for\r
+200 milliseconds, before sending the value 100 to the queue that was created\r
 within main().  Once the value is sent, the task loops back around to block for\r
 another 200 milliseconds.\r
 \r
 The Queue Receive Task:\r
 The queue receive task is implemented by the prvQueueReceiveTask() function\r
-in this file.  prvQueueReceiveTask() sits in a loop where it repeatedly blocks \r
-on attempts to read data from the queue that was created within main().  When \r
-data is received, the task checks the value of the data, and if the value equals \r
-the expected 100, toggles the green LED.  The 'block time' parameter passed to \r
-the queue receive function specifies that the task should be held in the Blocked \r
-state indefinitely to wait for data to be available on the queue.  The queue \r
-receive task will only leave the Blocked state when the queue send task writes \r
-to the queue.  As the queue send task writes to the queue every 200 \r
-milliseconds, the queue receive task leaves the Blocked state every 200 \r
+in this file.  prvQueueReceiveTask() sits in a loop where it repeatedly blocks\r
+on attempts to read data from the queue that was created within main().  When\r
+data is received, the task checks the value of the data, and if the value equals\r
+the expected 100, toggles the green LED.  The 'block time' parameter passed to\r
+the queue receive function specifies that the task should be held in the Blocked\r
+state indefinitely to wait for data to be available on the queue.  The queue\r
+receive task will only leave the Blocked state when the queue send task writes\r
+to the queue.  As the queue send task writes to the queue every 200\r
+milliseconds, the queue receive task leaves the Blocked state every 200\r
 milliseconds, and therefore toggles the green LED every 200 milliseconds.\r
 \r
 The LED Software Timer and the Button Interrupt:\r
 The user button B1 is configured to generate an interrupt each time it is\r
-pressed.  The interrupt service routine switches the red LED on, and resets the \r
+pressed.  The interrupt service routine switches the red LED on, and resets the\r
 LED software timer.  The LED timer has a 5000 millisecond (5 second) period, and\r
-uses a callback function that is defined to just turn the red LED off.  \r
-Therefore, pressing the user button will turn the red LED on, and the LED will \r
+uses a callback function that is defined to just turn the red LED off.\r
+Therefore, pressing the user button will turn the red LED on, and the LED will\r
 remain on until a full five seconds pass without the button being pressed.\r
 */\r
 \r
@@ -152,7 +152,7 @@ static void prvQueueReceiveTask( void *pvParameters );
 static void prvQueueSendTask( void *pvParameters );\r
 \r
 /*\r
- * The LED timer callback function.  This does nothing but switch the red LED \r
+ * The LED timer callback function.  This does nothing but switch the red LED\r
  * off.\r
  */\r
 static void vLEDTimerCallback( xTimerHandle xTimer );\r
@@ -163,7 +163,7 @@ static void vLEDTimerCallback( xTimerHandle xTimer );
 static xQueueHandle xQueue = NULL;\r
 \r
 /* The LED software timer.  This uses vLEDTimerCallback() as its callback\r
- * function. \r
+ * function.\r
  */\r
 static xTimerHandle xLEDTimer = NULL;\r
 \r
@@ -181,17 +181,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
+               /* 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
@@ -286,8 +286,8 @@ unsigned long ulReceivedValue;
                if( ulReceivedValue == 100UL )\r
                {\r
                        /* NOTE - accessing the LED port should use a critical section\r
-                       because it is accessed from multiple tasks, and the button interrupt \r
-                       - in this trivial case, for simplicity, the critical section is \r
+                       because it is accessed from multiple tasks, and the button interrupt\r
+                       - in this trivial case, for simplicity, the critical section is\r
                        omitted. */\r
                        STM32vldiscovery_LEDToggle( LED3 );\r
                }\r
@@ -305,7 +305,7 @@ static void prvSetupHardware( void )
        STM32vldiscovery_LEDInit( LED3 );\r
        STM32vldiscovery_LEDInit( LED4 );\r
        STM32vldiscovery_PBInit( BUTTON_USER, BUTTON_MODE_EXTI );\r
-       \r
+\r
        /* Start with the LEDs off. */\r
        STM32vldiscovery_LEDOff( LED3 );\r
        STM32vldiscovery_LEDOff( LED4 );\r
@@ -316,7 +316,7 @@ void vApplicationMallocFailedHook( void )
 {\r
        /* Called if a call to pvPortMalloc() fails because there is insufficient\r
        free memory available in the FreeRTOS heap.  pvPortMalloc() is called\r
-       internally by FreeRTOS API functions that create tasks, queues, software \r
+       internally by FreeRTOS API functions that create tasks, queues, software\r
        timers, and semaphores.  The size of the FreeRTOS heap is set by the\r
        configTOTAL_HEAP_SIZE configuration constant in FreeRTOSConfig.h. */\r
        for( ;; );\r
@@ -340,7 +340,7 @@ void vApplicationIdleHook( void )
 volatile size_t xFreeStackSpace;\r
 \r
        /* This function is called on each cycle of the idle task.  In this case it\r
-       does nothing useful, other than report the amout of FreeRTOS heap that \r
+       does nothing useful, other than report the amout of FreeRTOS heap that\r
        remains unallocated. */\r
        xFreeStackSpace = xPortGetFreeHeapSize();\r
 \r
index 6fbd505a601eeac3a02cabaff204ff1d7ef75c38..0b9740e150ff904547350ebd768d6ebf20ba7de0 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * defined and/or created within this file:\r
  *\r
  * "Check" task - This only executes every five seconds but has the highest\r
- * priority so is guaranteed to get processor time.  Its main function is to \r
+ * priority so is guaranteed to get processor time.  Its main function is to\r
  * check that all the standard demo tasks are still operational. The check task\r
  * will toggle LED 3 (PB11) every five seconds so long as no errors have been\r
- * detected.  The toggle rate will increase to half a second if an error has \r
+ * detected.  The toggle rate will increase to half a second if an error has\r
  * been found in any task.\r
  *\r
- * "Echo" task - This is a very basic task that simply echoes any characters \r
+ * "Echo" task - This is a very basic task that simply echoes any characters\r
  * received on COM0 (USART1).  This can be tested by transmitting a text file\r
  * from a dumb terminal to the STM32 USART then observing or capturing the text\r
- * that is echoed back.  Missing characters will be all the more obvious if the \r
+ * that is echoed back.  Missing characters will be all the more obvious if the\r
  * file contains a simple repeating string of fixed width.\r
  *\r
- * Currently this demo does not include interrupt nesting examples.  High \r
+ * Currently this demo does not include interrupt nesting examples.  High\r
  * frequency timer and simpler nesting examples can be found in most Cortex-M3\r
  * demo applications.\r
  *\r
- * The functions used to initialise, set and clear LED outputs are normally \r
- * defined in partest.c.  This demo includes two partest files, one that is \r
- * configured for use with the Keil MCBSTM32 evaluation board (called \r
+ * The functions used to initialise, set and clear LED outputs are normally\r
+ * defined in partest.c.  This demo includes two partest files, one that is\r
+ * configured for use with the Keil MCBSTM32 evaluation board (called\r
  * ParTest_MCBSTM32.c) and one that is configured for use with the official\r
  * ST Eval board (called ParTest_ST_Eval.c).  One one of these files should be\r
- * included in the build at any one time, as appropriate for the hardware \r
+ * included in the build at any one time, as appropriate for the hardware\r
  * actually being used.\r
  */\r
 \r
@@ -155,7 +155,7 @@ static void prvSetupHardware( void );
 /* The 'check' task as described at the top of this file. */\r
 static void prvCheckTask( void *pvParameters );\r
 \r
-/* A simple task that echoes all the characters that are received on COM0 \r
+/* A simple task that echoes all the characters that are received on COM0\r
 (USART1). */\r
 static void prvUSARTEchoTask( void *pvParameters );\r
 \r
@@ -181,10 +181,10 @@ int main( void )
     vStartRecursiveMutexTasks();\r
 \r
        /* Create the 'echo' task, which is also defined within this file. */\r
-       xTaskCreate( prvUSARTEchoTask, ( signed char * ) "Echo", configMINIMAL_STACK_SIZE, NULL, mainECHO_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvUSARTEchoTask, "Echo", configMINIMAL_STACK_SIZE, NULL, mainECHO_TASK_PRIORITY, NULL );\r
 \r
        /* Create the 'check' task, which is also defined within this file. */\r
-       xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
     /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -254,7 +254,7 @@ signed char cChar;
 \r
 /* String declared static to ensure it does not end up on the stack, no matter\r
 what the optimisation level. */\r
-static const char *pcLongishString = \r
+static const char *pcLongishString =\r
 "ABBA was a Swedish pop music group formed in Stockholm in 1972, consisting of Anni-Frid Frida Lyngstad, "\r
 "Björn Ulvaeus, Benny Andersson and Agnetha Fältskog. Throughout the band's existence, Fältskog and Ulvaeus "\r
 "were a married couple, as were Lyngstad and Andersson - although both couples later divorced. They became one "\r
@@ -293,41 +293,41 @@ static const char *pcLongishString =
 static void prvSetupHardware( void )\r
 {\r
        /* RCC system reset(for debug purpose). */\r
-       RCC_DeInit ();                        \r
+       RCC_DeInit ();\r
 \r
     /* Enable HSE. */\r
-       RCC_HSEConfig( RCC_HSE_ON );           \r
-       \r
+       RCC_HSEConfig( RCC_HSE_ON );\r
+\r
        /* Wait till HSE is ready. */\r
        while (RCC_GetFlagStatus(RCC_FLAG_HSERDY) == RESET);\r
-       \r
+\r
     /* HCLK = SYSCLK. */\r
-       RCC_HCLKConfig( RCC_SYSCLK_Div1 );   \r
+       RCC_HCLKConfig( RCC_SYSCLK_Div1 );\r
 \r
     /* PCLK2  = HCLK. */\r
-       RCC_PCLK2Config( RCC_HCLK_Div1 );     \r
+       RCC_PCLK2Config( RCC_HCLK_Div1 );\r
 \r
     /* PCLK1  = HCLK/2. */\r
-       RCC_PCLK1Config( RCC_HCLK_Div2 );     \r
+       RCC_PCLK1Config( RCC_HCLK_Div2 );\r
 \r
        /* ADCCLK = PCLK2/4. */\r
-       RCC_ADCCLKConfig( RCC_PCLK2_Div4 );    \r
-       \r
+       RCC_ADCCLKConfig( RCC_PCLK2_Div4 );\r
+\r
     /* Flash 2 wait state. */\r
-       *( volatile unsigned long  * )0x40022000 = 0x01;           \r
-       \r
+       *( volatile unsigned long  * )0x40022000 = 0x01;\r
+\r
        /* PLLCLK = 8MHz * 9 = 72 MHz */\r
        RCC_PLLConfig( RCC_PLLSource_HSE_Div1, RCC_PLLMul_9 );\r
-       \r
+\r
     /* Enable PLL. */\r
        RCC_PLLCmd( ENABLE );\r
-       \r
+\r
        /* Wait till PLL is ready. */\r
        while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET);\r
-       \r
+\r
        /* Select PLL as system clock source. */\r
        RCC_SYSCLKConfig (RCC_SYSCLKSource_PLLCLK);\r
-       \r
+\r
        /* Wait till PLL is used as system clock source. */\r
        while (RCC_GetSYSCLKSource() != 0x08);\r
 \r
index 1f26125aae86b396e514a62fdff7497c04332e9f..dfc2175a2ac123488f7668d63dde9c351f9dd8b0 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -220,7 +220,7 @@ int main( void )
        /* Create the queue used by the LCD task.  Messages for display on the LCD\r
        are received via this queue. */\r
        xLCDQueue = xQueueCreate( mainLCD_QUEUE_SIZE, sizeof( xLCDMessage ) );\r
-       \r
+\r
        /* Start the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
     vCreateBlockTimeTasks();\r
@@ -231,20 +231,20 @@ int main( void )
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-    xTaskCreate( vCheckTask, ( signed portCHAR * ) "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );  \r
-       xTaskCreate( vLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+    xTaskCreate( vCheckTask, "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
        or not the correct/expected number of tasks are running at any given time. */\r
     vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
-       \r
+\r
        /* Configure the timers used by the fast interrupt timer test. */\r
        vSetupTimerTest();\r
-       \r
+\r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* Will only get here if there was not enough heap space to create the\r
        idle task. */\r
        return 0;\r
@@ -279,7 +279,7 @@ extern unsigned portSHORT usMaxJitter;
 \r
        xLastExecutionTime = xTaskGetTickCount();\r
        xMessage.pcMessage = cPassMessage;\r
-       \r
+\r
     for( ;; )\r
        {\r
                /* Perform this check every mainCHECK_DELAY milliseconds. */\r
@@ -314,7 +314,7 @@ extern unsigned portSHORT usMaxJitter;
                else if( xAreComTestTasksStillRunning() != pdTRUE )\r
                {\r
                        xMessage.pcMessage = "ERROR IN COM TEST\n";\r
-               }                               \r
+               }\r
                else\r
                {\r
                        sprintf( ( portCHAR * ) cPassMessage, "PASS [%uns]\n", ( ( unsigned portLONG ) usMaxJitter ) * mainNS_PER_CLOCK );\r
@@ -382,10 +382,10 @@ static void prvSetupHardware( void )
        NVIC_SetVectorTable( NVIC_VectTab_FLASH, 0x0 );\r
 \r
        NVIC_PriorityGroupConfig( NVIC_PriorityGroup_4 );\r
-       \r
+\r
        /* Configure HCLK clock as SysTick clock source. */\r
        SysTick_CLKSourceConfig( SysTick_CLKSource_HCLK );\r
-       \r
+\r
        vParTestInitialise();\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -430,10 +430,10 @@ static unsigned portCHAR ucLine = 0;
        {\r
                /* Display one character on LCD */\r
                LCD_DisplayChar( ucLine, usRefColumn, (u8) ch );\r
-               \r
+\r
                /* Decrement the column position by 16 */\r
                usRefColumn -= mainCOLUMN_INCREMENT;\r
-               \r
+\r
                /* Increment the character counter */\r
                usColumn++;\r
                if( usColumn == mainMAX_COLUMN )\r
@@ -448,7 +448,7 @@ static unsigned portCHAR ucLine = 0;
                /* Move back to the first column of the next line. */\r
                ucLine += mainROW_INCREMENT;\r
                usRefColumn = mainCOLUMN_START;\r
-               usColumn = 0;   \r
+               usColumn = 0;\r
        }\r
 \r
        /* Wrap back to the top of the display. */\r
@@ -456,7 +456,7 @@ static unsigned portCHAR ucLine = 0;
        {\r
                ucLine = 0;\r
        }\r
-       \r
+\r
        return ch;\r
 }\r
 /*-----------------------------------------------------------*/\r
index 1f26125aae86b396e514a62fdff7497c04332e9f..dfc2175a2ac123488f7668d63dde9c351f9dd8b0 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -220,7 +220,7 @@ int main( void )
        /* Create the queue used by the LCD task.  Messages for display on the LCD\r
        are received via this queue. */\r
        xLCDQueue = xQueueCreate( mainLCD_QUEUE_SIZE, sizeof( xLCDMessage ) );\r
-       \r
+\r
        /* Start the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
     vCreateBlockTimeTasks();\r
@@ -231,20 +231,20 @@ int main( void )
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-    xTaskCreate( vCheckTask, ( signed portCHAR * ) "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );  \r
-       xTaskCreate( vLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+    xTaskCreate( vCheckTask, "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
        or not the correct/expected number of tasks are running at any given time. */\r
     vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
-       \r
+\r
        /* Configure the timers used by the fast interrupt timer test. */\r
        vSetupTimerTest();\r
-       \r
+\r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* Will only get here if there was not enough heap space to create the\r
        idle task. */\r
        return 0;\r
@@ -279,7 +279,7 @@ extern unsigned portSHORT usMaxJitter;
 \r
        xLastExecutionTime = xTaskGetTickCount();\r
        xMessage.pcMessage = cPassMessage;\r
-       \r
+\r
     for( ;; )\r
        {\r
                /* Perform this check every mainCHECK_DELAY milliseconds. */\r
@@ -314,7 +314,7 @@ extern unsigned portSHORT usMaxJitter;
                else if( xAreComTestTasksStillRunning() != pdTRUE )\r
                {\r
                        xMessage.pcMessage = "ERROR IN COM TEST\n";\r
-               }                               \r
+               }\r
                else\r
                {\r
                        sprintf( ( portCHAR * ) cPassMessage, "PASS [%uns]\n", ( ( unsigned portLONG ) usMaxJitter ) * mainNS_PER_CLOCK );\r
@@ -382,10 +382,10 @@ static void prvSetupHardware( void )
        NVIC_SetVectorTable( NVIC_VectTab_FLASH, 0x0 );\r
 \r
        NVIC_PriorityGroupConfig( NVIC_PriorityGroup_4 );\r
-       \r
+\r
        /* Configure HCLK clock as SysTick clock source. */\r
        SysTick_CLKSourceConfig( SysTick_CLKSource_HCLK );\r
-       \r
+\r
        vParTestInitialise();\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -430,10 +430,10 @@ static unsigned portCHAR ucLine = 0;
        {\r
                /* Display one character on LCD */\r
                LCD_DisplayChar( ucLine, usRefColumn, (u8) ch );\r
-               \r
+\r
                /* Decrement the column position by 16 */\r
                usRefColumn -= mainCOLUMN_INCREMENT;\r
-               \r
+\r
                /* Increment the character counter */\r
                usColumn++;\r
                if( usColumn == mainMAX_COLUMN )\r
@@ -448,7 +448,7 @@ static unsigned portCHAR ucLine = 0;
                /* Move back to the first column of the next line. */\r
                ucLine += mainROW_INCREMENT;\r
                usRefColumn = mainCOLUMN_START;\r
-               usColumn = 0;   \r
+               usColumn = 0;\r
        }\r
 \r
        /* Wrap back to the top of the display. */\r
@@ -456,7 +456,7 @@ static unsigned portCHAR ucLine = 0;
        {\r
                ucLine = 0;\r
        }\r
-       \r
+\r
        return ch;\r
 }\r
 /*-----------------------------------------------------------*/\r
index d8fda4f3d6c41031a6081dac35109fa3652416db..0ae9fa57b678dfb94e2725ef9a0c9a19e0ccf1f9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * along with the max jitter time to the LCD (again via the LCD task), as\r
  * described above.\r
  *\r
- * Tick Hook - A tick hook is provided just for demonstration purposes.  In \r
+ * Tick Hook - A tick hook is provided just for demonstration purposes.  In\r
  * this case it is used to periodically send an instruction to updated the\r
  * MEMS input to the LCD task.\r
  *\r
  */\r
 \r
-/* CircleOS includes.  Some of the CircleOS peripheral functionality is \r
+/* CircleOS includes.  Some of the CircleOS peripheral functionality is\r
 utilised, although CircleOS itself is not used. */\r
 #include "circle.h"\r
 \r
@@ -224,7 +224,7 @@ extern void vSetupTimerTest( void );
 \r
 /*\r
  * A cut down version of sprintf() used to percent the HUGE GCC library\r
- * equivalent from being included in the binary image. \r
+ * equivalent from being included in the binary image.\r
  */\r
 extern int sprintf(char *out, const char *format, ...);\r
 \r
@@ -251,7 +251,7 @@ int main( void )
        /* Create the queue used by the LCD task.  Messages for display on the LCD\r
        are received via this queue. */\r
        xLCDQueue = xQueueCreate( mainLCD_QUEUE_SIZE, sizeof( xLCDMessage ) );\r
-       \r
+\r
        /* Start the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
     vCreateBlockTimeTasks();\r
@@ -260,16 +260,16 @@ int main( void )
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
 \r
        /* Start the tasks defined within this file/specific to this demo. */\r
-    xTaskCreate( prvCheckTask, ( signed portCHAR * ) "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );        \r
-       xTaskCreate( prvLCDTask, ( signed portCHAR * ) "LCD", configLCD_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvFlashTask, ( signed portCHAR * ) "Flash", configMINIMAL_STACK_SIZE, NULL, mainFLASH_TASK_PRIORITY, NULL );\r
+    xTaskCreate( prvCheckTask, "Check", mainCHECK_TASK_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvLCDTask, "LCD", configLCD_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvFlashTask, "Flash", configMINIMAL_STACK_SIZE, NULL, mainFLASH_TASK_PRIORITY, NULL );\r
 \r
        /* Configure the timers used by the fast interrupt timer test. */\r
        vSetupTimerTest();\r
-       \r
+\r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
-       \r
+\r
        /* Will only get here if there was not enough heap space to create the\r
        idle task. */\r
        return 0;\r
@@ -314,11 +314,11 @@ const portCHAR * const pcBlankLine = "                  ";
 \r
                        cY -= mainLCD_CHAR_HEIGHT;\r
                        if( cY <= ( mainLCD_CHAR_HEIGHT - 1 ) )\r
-                       {                       \r
+                       {\r
                                /* Wrap the line onto which we are going to write the text. */\r
                                cY = mainLCD_MAX_Y;\r
                        }\r
-                       \r
+\r
                        /* Display the message. */\r
                        DRAW_DisplayString( 0, cY, xMessage.pcMessage, strlen( xMessage.pcMessage ) );\r
                }\r
@@ -339,7 +339,7 @@ extern unsigned portSHORT usMaxJitter;
        /* Setup the message we are going to send to the LCD task. */\r
        xMessage.xMessageType = mainWRITE_STRING_MESSAGE;\r
        xMessage.pcMessage = cPassMessage;\r
-       \r
+\r
     for( ;; )\r
        {\r
                /* Perform this check every mainCHECK_DELAY milliseconds. */\r
@@ -457,10 +457,10 @@ static void prvSetupHardware( void )
        NVIC_SetVectorTable( NVIC_VectTab_FLASH, 0x0 );\r
 \r
        NVIC_PriorityGroupConfig( NVIC_PriorityGroup_4 );\r
-       \r
+\r
        /* Configure HCLK clock as SysTick clock source. */\r
        SysTick_CLKSourceConfig( SysTick_CLKSource_HCLK );\r
-       \r
+\r
        /* Misc initialisation, including some of the CircleOS features.  Note\r
        that CircleOS itself is not used. */\r
        vParTestInitialise();\r
index 8857f125256874fb64ffbc7a20acfb97be968a72..b50c2e5592ddb954759df36208169049e7613dfb 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -215,7 +215,7 @@ int main( void )
     vStartRecursiveMutexTasks();\r
 \r
        /* Create the uIP task.  The WEB server runs in this task. */\r
-    xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
+    xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, ( void * ) NULL, mainUIP_TASK_PRIORITY, NULL );\r
 \r
        /* Create the queue used by the LCD task.  Messages for display on the LCD\r
        are received via this queue. */\r
@@ -223,7 +223,7 @@ int main( void )
 \r
        /* Start the LCD gatekeeper task - as described in the comments at the top\r
        of this file. */\r
-       xTaskCreate( prvLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE * 2, NULL, mainLCD_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvLCDTask, "LCD", configMINIMAL_STACK_SIZE * 2, NULL, mainLCD_TASK_PRIORITY, NULL );\r
 \r
        /* Configure the high frequency interrupt used to measure the interrupt\r
        jitter time.  When debugging it can be helpful to comment this line out\r
index 5e92b0ad24b5592b5f9a80759298479830952bc8..4bd844f0f0a241c2134ddc4e7e13a37c60d0efa1 100644 (file)
@@ -207,7 +207,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
 static unsigned short\r
@@ -216,7 +216,7 @@ generate_rtos_stats(void *arg)
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", (int)lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -260,14 +260,14 @@ static unsigned short generate_io_state( void *arg )
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short\r
 generate_runtime_stats(void *arg)\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", (int)lRefreshCount );\r
-    vTaskGetRunTimeStats( uip_appdata );\r
+    vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index cfb2bc8dab49ce273a86a97e1e78c38d5b01f32a..a82e180800719ab1946b43a30bd0fb1dd5da4f7a 100644 (file)
@@ -177,11 +177,11 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        if( xCheckTimer != NULL )\r
index f87042bee3f7094a5dae698558810da8c0a38052..91d6f568d16ecb29e013c74b1d61d8406a5c6798 100644 (file)
@@ -215,8 +215,8 @@ void main_low_power( void )
        configASSERT( xQueue );\r
 \r
        /* Start the two tasks as described at the top of this file. */\r
-       xTaskCreate( prvQueueReceiveTask, ( const signed char * const ) "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
-       xTaskCreate( prvQueueSendTask, ( const signed char * const ) "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvQueueReceiveTask, "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler running running. */\r
        vTaskStartScheduler();\r
index ef7e96bcb1f548d9a93e3811ac0a89316aea556b..10dfd992c4311640bb1e1318d5e39c4c10624dc5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -238,11 +238,11 @@ void main( void )
        /* Configure the peripherals used by this demo application.  This includes\r
        configuring the joystick input select button to generate interrupts. */\r
        prvSetupHardware();\r
-       \r
+\r
        /* Create the queue used by tasks and interrupts to send strings to the LCD\r
        task. */\r
        xLCDQueue = xQueueCreate( mainQUEUE_LENGTH, sizeof( xQueueMessage ) );\r
-       \r
+\r
        /* If the queue could not be created then don't create any tasks that might\r
        attempt to use the queue. */\r
        if( xLCDQueue != NULL )\r
@@ -250,22 +250,22 @@ void main( void )
                /* Add the created queue to the queue registry so it can be viewed in\r
                the IAR FreeRTOS state viewer plug-in. */\r
                vQueueAddToRegistry( xLCDQueue, "LCDQueue" );\r
-               \r
+\r
                /* Create the LCD and button poll tasks, as described at the top of this\r
                file. */\r
-               xTaskCreate( prvLCDTask, ( signed char * ) "LCD", mainLCD_TASK_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
-               xTaskCreate( prvButtonPollTask, ( signed char * ) "ButPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-               \r
+               xTaskCreate( prvLCDTask, "LCD", mainLCD_TASK_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvButtonPollTask, "ButPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+\r
                /* Create a subset of the standard demo tasks. */\r
                vStartDynamicPriorityTasks();\r
                vStartLEDFlashTasks( mainFLASH_TASK_PRIORITY );\r
                vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
                vStartGenericQueueTasks( mainGENERIC_QUEUE_TEST_PRIORITY );\r
-               \r
+\r
                /* Start the scheduler. */\r
                vTaskStartScheduler();\r
        }\r
-       \r
+\r
        /* If all is well then this line will never be reached.  If it is reached\r
        then it is likely that there was insufficient (FreeRTOS) heap memory space\r
        to create the idle task.  This may have been trapped by the malloc() failed\r
@@ -289,9 +289,9 @@ static char cBuffer[ 512 ];
        /* This function is the only function that uses printf().  If printf() is\r
        used from any other function then some sort of mutual exclusion on stdout\r
        will be necessary.\r
-       \r
+\r
        This is also the only function that is permitted to access the LCD.\r
-       \r
+\r
        First print out the number of bytes that remain in the FreeRTOS heap.  This\r
        can be viewed in the terminal IO window within the IAR Embedded Workbench. */\r
        printf( "%d bytes of heap space remain unallocated\n", xPortGetFreeHeapSize() );\r
@@ -311,7 +311,7 @@ static char cBuffer[ 512 ];
                        LCD_Clear( Blue );\r
                        lLine = 0;\r
                }\r
-                               \r
+\r
                /* What is this message?  What does it contain? */\r
                switch( xReceivedMessage.cMessageID )\r
                {\r
@@ -330,9 +330,9 @@ static char cBuffer[ 512 ];
                                                                                                the terminal IO window in the IAR\r
                                                                                                embedded workbench. */\r
                                                                                                printf( "\nTask\t     Abs Time\t     %%Time\n*****************************************" );\r
-                                                                                               vTaskGetRunTimeStats( ( signed char * ) cBuffer );\r
+                                                                                               vTaskGetRunTimeStats( cBuffer );\r
                                                                                                printf( cBuffer );\r
-                                                                                               \r
+\r
                                                                                                /* Also print out a message to\r
                                                                                                the LCD - in this case the\r
                                                                                                pointer to the string to print\r
@@ -343,7 +343,7 @@ static char cBuffer[ 512 ];
                                                                                                technique. */\r
                                                                                                sprintf( cBuffer, "%s", ( char * ) xReceivedMessage.lMessageValue );\r
                                                                                                break;\r
-                                                                                               \r
+\r
                        case mainMESSAGE_STATUS                 :       /* The tick interrupt hook\r
                                                                                                function has just informed this\r
                                                                                                task of the system status.\r
@@ -351,15 +351,15 @@ static char cBuffer[ 512 ];
                                                                                                with the status value. */\r
                                                                                                prvGenerateStatusMessage( cBuffer, xReceivedMessage.lMessageValue );\r
                                                                                                break;\r
-                                                                                               \r
+\r
                        default                                                 :       sprintf( cBuffer, "Unknown message" );\r
                                                                                                break;\r
                }\r
-               \r
+\r
                /* Output the message that was placed into the cBuffer array within the\r
                switch statement above. */\r
                LCD_DisplayStringLine( lLine, ( uint8_t * ) cBuffer );\r
-               \r
+\r
                /* Move onto the next LCD line, ready for the next iteration of this\r
                loop. */\r
                lLine += lFontHeight;\r
@@ -377,7 +377,7 @@ static void prvGenerateStatusMessage( char *pcBuffer, long lStatusValue )
                                                                                        break;\r
                case mainERROR_DYNAMIC_TASKS    :       sprintf( pcBuffer, "Error: Dynamic tasks" );\r
                                                                                        break;\r
-               case mainERROR_COM_TEST                 :       sprintf( pcBuffer, "Err: loop connected?" ); /* Error in COM test - is the Loopback connector connected? */                                                                                                             \r
+               case mainERROR_COM_TEST                 :       sprintf( pcBuffer, "Err: loop connected?" ); /* Error in COM test - is the Loopback connector connected? */\r
                                                                                        break;\r
                case mainERROR_GEN_QUEUE_TEST   :       sprintf( pcBuffer, "Error: Gen Q test" );\r
                                                                                        break;\r
@@ -396,9 +396,9 @@ long lHigherPriorityTaskWoken = pdFALSE;
        /* This is the interrupt handler for the joystick select button input.\r
        The button has been pushed, write a message to the LCD via the LCD task. */\r
        xQueueSendFromISR( xLCDQueue, &xMessage, &lHigherPriorityTaskWoken );\r
-       \r
+\r
        EXTI_ClearITPendingBit( SEL_BUTTON_EXTI_LINE );\r
-       \r
+\r
        /* If writing to xLCDQueue caused a task to unblock, and the unblocked task\r
        has a priority equal to or above the task that this interrupt interrupted,\r
        then lHigherPriorityTaskWoken will have been set to pdTRUE internally within\r
@@ -432,17 +432,17 @@ static xQueueMessage xStatusMessage = { mainMESSAGE_STATUS, pdPASS };
                {\r
                        xStatusMessage.lMessageValue = mainERROR_DYNAMIC_TASKS;\r
                }\r
-               \r
+\r
                if( xAreComTestTasksStillRunning() != pdPASS )\r
                {\r
                        xStatusMessage.lMessageValue = mainERROR_COM_TEST;\r
                }\r
-               \r
+\r
                if( xAreGenericQueueTasksStillRunning() != pdPASS )\r
                {\r
                        xStatusMessage.lMessageValue = mainERROR_GEN_QUEUE_TEST;\r
                }\r
-               \r
+\r
                /* As this is the tick hook the lHigherPriorityTaskWoken parameter is not\r
                needed (a context switch is going to be performed anyway), but it must\r
                still be provided. */\r
@@ -472,7 +472,7 @@ xQueueMessage xMessage;
                        lLastState = lState;\r
                        xQueueSend( xLCDQueue, &xMessage, portMAX_DELAY );\r
                }\r
-               \r
+\r
                /* Block for 10 milliseconds so this task does not utilise all the CPU\r
                time and debouncing of the button is not necessary. */\r
                vTaskDelay( 10 / portTICK_RATE_MS );\r
@@ -485,7 +485,7 @@ static void prvSetupHardware( void )
        /* Ensure that all 4 interrupt priority bits are used as the pre-emption\r
        priority. */\r
        NVIC_PriorityGroupConfig( NVIC_PriorityGroup_4 );\r
-       \r
+\r
        /* Initialise the LEDs. */\r
        vParTestInitialise();\r
 \r
@@ -494,7 +494,7 @@ static void prvSetupHardware( void )
        STM_EVAL_PBInit( BUTTON_DOWN, BUTTON_MODE_GPIO );\r
        STM_EVAL_PBInit( BUTTON_LEFT, BUTTON_MODE_GPIO );\r
        STM_EVAL_PBInit( BUTTON_RIGHT, BUTTON_MODE_GPIO );\r
-       \r
+\r
        /* The select button in the middle of the joystick is configured to generate\r
        an interrupt.  The Eval board library will configure the interrupt\r
        priority to be the lowest priority available so the priority need not be\r
@@ -504,7 +504,7 @@ static void prvSetupHardware( void )
        STM_EVAL_PBInit( BUTTON_SEL, BUTTON_MODE_EXTI );\r
 \r
        /* Initialize the LCD */\r
-       STM32L152_LCD_Init();   \r
+       STM32L152_LCD_Init();\r
        LCD_Clear( Blue );\r
        LCD_SetBackColor( Blue );\r
        LCD_SetTextColor( White );\r
@@ -524,7 +524,7 @@ NVIC_InitTypeDef NVIC_InitStructure;
        significant two bytes are given by the current TIM6 counter value.  Care\r
        must be taken with data consistency when combining the two in case a timer\r
        overflow occurs as the value is being read.\r
-       \r
+\r
        The portCONFIGURE_TIMER_FOR_RUN_TIME_STATS() macro (in FreeRTOSConfig.h) is\r
        defined to call this function, so the kernel will call this function\r
        automatically at the appropriate time. */\r
@@ -538,22 +538,22 @@ NVIC_InitTypeDef NVIC_InitStructure;
        TIM_TimeBaseStructure.TIM_Prescaler = 5000;\r
        TIM_TimeBaseStructure.TIM_ClockDivision = TIM_CKD_DIV1;\r
        TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;\r
-       \r
+\r
        TIM_TimeBaseInit( TIM6, &TIM_TimeBaseStructure );\r
-       \r
+\r
        /* Only interrupt on overflow events. */\r
        TIM6->CR1 |= TIM_CR1_URS;\r
-       \r
+\r
        /* Enable the interrupt. */\r
        TIM_ITConfig( TIM6, TIM_IT_Update, ENABLE );\r
-       \r
+\r
        /* Enable the TIM6 global Interrupt */\r
        NVIC_InitStructure.NVIC_IRQChannel = TIM6_IRQn;\r
        NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = configLIBRARY_LOWEST_INTERRUPT_PRIORITY;\r
        NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0x00; /* Not used as 4 bits are used for the pre-emption priority. */\r
        NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;\r
        NVIC_Init(&NVIC_InitStructure);\r
-       \r
+\r
        TIM_ClearITPendingBit( TIM6, TIM_IT_Update );\r
        TIM_Cmd( TIM6, ENABLE );\r
 }\r
@@ -562,7 +562,7 @@ NVIC_InitTypeDef NVIC_InitStructure;
 void TIM6_IRQHandler( void )\r
 {\r
        /* Interrupt handler for TIM 6\r
-       \r
+\r
        The time base for the run time stats is generated by the 16 bit timer 6.\r
        Each time the timer overflows ulTIM6_OverflowCount is incremented.\r
        Therefore, when converting the total run time to a 32 bit number, the most\r
@@ -582,7 +582,7 @@ void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName
 {\r
        ( void ) pcTaskName;\r
        ( void ) pxTask;\r
-       \r
+\r
        /* Run time stack overflow checking is performed if\r
        configconfigCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2.  This hook\r
        function is called if a stack overflow is detected. */\r
index 3febd45f08512ebab660ec4fdf49fdffa8d2baf3..83c86d8a4a334b7f68bbff666d4425071c87bc6f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -161,13 +161,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 995ddfadbbce10f334556ae64db3a37195258fc5..a5cf67c171c4ba13dcb23cfe1a094a1df32b57c4 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     FEATURES AND PORTS ARE ADDED TO FREERTOS ALL THE TIME.  PLEASE VISIT\r
@@ -199,7 +199,7 @@ void vRegisterSampleCLICommands( void )
 \r
 static portBASE_TYPE prvTaskStatsCommand( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString )\r
 {\r
-const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stack      #\r\n************************************************\r\n";\r
+const char *const pcHeader = ( int8_t * ) "Task          State  Priority  Stack        #\r\n************************************************\r\n";\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -209,8 +209,8 @@ const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stac
        configASSERT( pcWriteBuffer );\r
 \r
        /* Generate a table of task stats. */\r
-       strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
-       vTaskList( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+       strcpy( ( char * ) pcWriteBuffer, pcHeader );\r
+       vTaskList( pcWriteBuffer + strlen( pcHeader ) );\r
 \r
        /* There is no more data to return after this single string, so return\r
        pdFALSE. */\r
@@ -220,7 +220,7 @@ const int8_t *const pcHeader = ( int8_t * ) "Task          State  Priority  Stac
 \r
 static portBASE_TYPE prvRunTimeStatsCommand( int8_t *pcWriteBuffer, size_t xWriteBufferLen, const int8_t *pcCommandString )\r
 {\r
-const int8_t * const pcHeader = ( int8_t * ) "Task            Abs Time      % Time\r\n****************************************\r\n";\r
+const char * const pcHeader = ( int8_t * ) "Task            Abs Time      % Time\r\n****************************************\r\n";\r
 \r
        /* Remove compile time warnings about unused parameters, and check the\r
        write buffer is not NULL.  NOTE - for simplicity, this example assumes the\r
@@ -230,8 +230,8 @@ const int8_t * const pcHeader = ( int8_t * ) "Task            Abs Time      % Ti
        configASSERT( pcWriteBuffer );\r
 \r
        /* Generate a table of task stats. */\r
-       strcpy( ( char * ) pcWriteBuffer, ( char * ) pcHeader );\r
-       vTaskGetRunTimeStats( pcWriteBuffer + strlen( ( char * ) pcHeader ) );\r
+       strcpy( ( char * ) pcWriteBuffer, pcHeader );\r
+       vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( pcHeader ) );\r
 \r
        /* There is no more data to return after this single string, so return\r
        pdFALSE. */\r
index 380215b67aba1aa229f3d2ac37ab5ebdb3d42442..6f0cab30a35cd2874c7ea1768a537bd2f2515599 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -141,12 +141,12 @@ void vUARTCommandConsoleStart( uint16_t usStackSize, unsigned portBASE_TYPE uxPr
        prvConfigureUART();\r
 \r
        /* Create that task that handles the console itself. */\r
-       xTaskCreate(    prvUARTCommandConsoleTask,                      /* The task that implements the command console. */\r
-                                       ( const int8_t * const ) "CLI",         /* Text name assigned to the task.  This is just to assist debugging.  The kernel does not use this name itself. */\r
-                                       usStackSize,                                            /* The size of the stack allocated to the task. */\r
-                                       NULL,                                                           /* The parameter is not used, so NULL is passed. */\r
-                                       uxPriority,                                                     /* The priority allocated to the task. */\r
-                                       NULL );                                                         /* A handle is not required, so just pass NULL. */\r
+       xTaskCreate(    prvUARTCommandConsoleTask,      /* The task that implements the command console. */\r
+                                       "CLI",                                          /* Text name assigned to the task.  This is just to assist debugging.  The kernel does not use this name itself. */\r
+                                       usStackSize,                            /* The size of the stack allocated to the task. */\r
+                                       NULL,                                           /* The parameter is not used, so NULL is passed. */\r
+                                       uxPriority,                                     /* The priority allocated to the task. */\r
+                                       NULL );                                         /* A handle is not required, so just pass NULL. */\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 8109fcd1d1cf39200b8d7dc3892484a21cbd4294..9a29201d283cf788337268fed6a081c4bb632ad5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -230,11 +230,11 @@ xTimerHandle xCheckTimer = NULL;
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        if( xCheckTimer != NULL )\r
index f3ada08b851d4b3745c549e2c2b8186a980456c0..374257bf4e87bc3853955499ec03a10b8bbaa8c5 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -85,8 +85,8 @@ static signed char seg7_digits[4];
 \r
 void vStart7SegTasks( unsigned portBASE_TYPE uxPriority )\r
 {\r
-       xTaskCreate( prvRefreshTask, ( signed char * ) "7SegRefresh", x7segSTACK_SIZE, NULL, uxPriority, ( xTaskHandle *) NULL );\r
-       xTaskCreate( prvCountTask,   ( signed char * ) "7SegCount",     x7segSTACK_SIZE, NULL, uxPriority, ( xTaskHandle *) NULL );\r
+       xTaskCreate( prvRefreshTask, "7SegRefresh", x7segSTACK_SIZE, NULL, uxPriority, ( xTaskHandle *) NULL );\r
+       xTaskCreate( prvCountTask, "7SegCount", x7segSTACK_SIZE, NULL, uxPriority, ( xTaskHandle *) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index b12e8dc1ffdc340b3eb3fcb7eec0aca7df84e9a8..d57cf5f10cac787afff0eea59c9f61a5b00e0b62 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -85,8 +85,8 @@ static volatile unsigned long ulRegTest1Counter = 0UL, ulRegTest2Counter = 0UL;
 \r
 void vStartRegTestTasks( void )\r
 {\r
-       xTaskCreate( vRegTest1, ( signed char * ) "RTest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2, ( signed char * ) "RTest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1, "RTest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2, "RTest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 4cb9d4a9dd59514d03838fc8d29654baeb4b2bbb..3002f70b59604865363ea0204305dd0d1bb39f14 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -180,7 +180,7 @@ int main( void )
        vStartRegTestTasks();\r
 \r
        /* Start the check task - which is defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Now all the tasks have been started - start the scheduler. */\r
        vTaskStartScheduler();\r
index 88cd4cb939f54818bb1c251b671c672127915169..ecf40708bb19d298ba74eb176f6787154a0ca06f 100644 (file)
@@ -207,7 +207,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern unsigned long ulCheckErrors;\r
 static char cCountBuf[ 32 ];\r
 long lRefreshCount = 0;\r
@@ -217,9 +217,9 @@ generate_rtos_stats(void *arg)
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", lRefreshCount );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
-       \r
+\r
        /* Have any errors been latched? */\r
        if( ulCheckErrors != 0 )\r
        {\r
index a01fd94a8ac72eb724717caf9bf626a4e0dcb3ac..86a243a6b146c4feb5c65df1ac09175b93cd02af 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * pages display some TCP/IP status information and permit LED3 to be turned on\r
  * and off using a check box.\r
  *\r
- * Tick hook function that implements a "Check" function -  This is executed \r
- * every 5 seconds from the tick hook function.  It checks to ensure that all \r
- * the standard demo tasks are still operational and running without error.  \r
- * The system status (pass/fail) is then displayed underneith the task table on \r
- * the served WEB pages.  \r
+ * Tick hook function that implements a "Check" function -  This is executed\r
+ * every 5 seconds from the tick hook function.  It checks to ensure that all\r
+ * the standard demo tasks are still operational and running without error.\r
+ * The system status (pass/fail) is then displayed underneith the task table on\r
+ * the served WEB pages.\r
  *\r
  * "Reg test" tasks - These fill the registers with known values, then check\r
  * that each register still contains its expected value.  Each task uses\r
@@ -168,8 +168,8 @@ extern void vBasicWEBServer( void *pv );
 \r
        /* Setup the hardware ready for this demo. */\r
        prvSetupHardware();\r
-       \r
-       xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+\r
+       xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
 \r
        /* Start the standard demo tasks. */\r
        vStartLEDFlashTasks( tskIDLE_PRIORITY );\r
@@ -179,8 +179,8 @@ extern void vBasicWEBServer( void *pv );
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
 \r
        /* Start the reg test tasks - defined in this file. */\r
-       xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -197,17 +197,17 @@ void vApplicationTickHook( void )
 {\r
 static unsigned long ulExecutionCount = 0, ulLastRegTest1Count = 0, ulLastRegTest2Count = 0;\r
 const unsigned long ulExecutionRate = 5000 / portTICK_RATE_MS;\r
-       \r
+\r
     /* Increment the count of how many times the tick hook has been called. */\r
     ulExecutionCount++;\r
-    \r
+\r
     /* Is it time to perform the check again? */\r
        if( ulExecutionCount >= ulExecutionRate )\r
        {\r
                /* Reset the execution count so this function is called again in 5\r
                seconds time. */\r
                ulExecutionCount = 0;\r
-       \r
+\r
                /* Has an error been found in any task? */\r
                if( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
                {\r
@@ -245,13 +245,13 @@ const unsigned long ulExecutionRate = 5000 / portTICK_RATE_MS;
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvSetupHardware( void ) \r
+static void prvSetupHardware( void )\r
 {\r
        /* Disable the watchdog, STOP and WAIT modes. */\r
        SOPT1 = 0;\r
 \r
        /* --- Setup clock to use external 25MHz source. --- */\r
-       \r
+\r
        /* Extal and xtal pin ON. */\r
        PTDPF1_D4 = 0x03;\r
        PTDPF1_D5 = 0x03;\r
@@ -261,12 +261,12 @@ static void prvSetupHardware( void )
        MCGC2 = MCGC2_ERCLKEN_MASK  /* Activate external reference clock */\r
              | MCGC2_EREFS_MASK    /* Because crystal is being used */\r
              | MCGC2_RANGE_MASK;   /* High range */\r
-               \r
+\r
        /* Select clock mode and clear IREFs. */\r
        MCGC1 = (0x02 << 6 )        /* CLKS = 10 -> external reference clock. */\r
              | (0x04 << 3 )        /* RDIV = 2^4 -> 25MHz/16 = 1.5625 MHz */\r
              | MCGC1_IRCLKEN_MASK; /* IRCLK to RTC enabled */\r
-         \r
+\r
        /* Wait for Reference and Clock status bits to update. */\r
        while( MCGSC_IREFST | ( MCGSC_CLKST != 0x02 ) )\r
        {\r
@@ -284,7 +284,7 @@ static void prvSetupHardware( void )
        }\r
 \r
 \r
-       /* Now in PBE Mode, finally switch from PBE to PEE (PLL enabled external \r
+       /* Now in PBE Mode, finally switch from PBE to PEE (PLL enabled external\r
        mode). */\r
        MCGC1_CLKS  = 0b00; /* PLL clock to system (MCGOUT) */\r
 \r
@@ -319,7 +319,7 @@ static void vRegTest1Task( void *pvParameters )
 {\r
   /* Just to remove compiler warnings. */\r
   ( void ) pvParameters;\r
-  \r
+\r
        /* Set all the registers to known values, then check that each retains its\r
        expected value - as described at the top of this file.  If an error is\r
        found then the loop counter will no longer be incremented allowing the check\r
@@ -330,7 +330,7 @@ static void vRegTest1Task( void *pvParameters )
                                                "       moveq           #3, d2                                  \n\t"\r
                                                "       moveq           #4, d3                                  \n\t"\r
                                                "       moveq           #5, d4                                  \n\t"\r
-                                               "       moveq           #6, d5                                  \n\t"                                           \r
+                                               "       moveq           #6, d5                                  \n\t"\r
                                                "       moveq           #7, d6                                  \n\t"\r
                                                "       moveq           #8, d7                                  \n\t"\r
                                                "       move            #9, a0                                  \n\t"\r
index 9634c1994952fc836fd180ceb9e7dbdcdb86b614..3478acf24be2eeeaccfb4fe10af843ebd565a379 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -177,12 +177,12 @@ int main( void )
        vStartFlashCoRoutines( mainNUM_FLASH_CO_ROUTINES );\r
 \r
        /* Create the check task. */\r
-       xTaskCreate( prvCheckTask, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
 \r
        /* Start the reg test tasks - defined in this file. */\r
-       xTaskCreate( vRegTest1Task, ( signed portCHAR * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed portCHAR * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -232,7 +232,7 @@ volatile unsigned portBASE_TYPE uxUnusedStack;
            {\r
                ulError |= 0x20UL;\r
            }\r
-           \r
+\r
            if( xAreComTestTasksStillRunning() != pdTRUE )\r
            {\r
                ulError |= 0x40UL;\r
@@ -260,7 +260,7 @@ volatile unsigned portBASE_TYPE uxUnusedStack;
 \r
                /* Toggle the LED each itteration. */\r
                vParTestToggleLED( mainCHECK_LED );\r
-               \r
+\r
                /* For demo only - how much unused stack does this task have? */\r
                uxUnusedStack = uxTaskGetStackHighWaterMark( NULL );\r
        }\r
index 3c91a2d27a6505a65baccc122f71519231d154a0..bb914c0bfad88bf61a4124e3355675ea42da536d 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -155,7 +155,7 @@ static void vRegTest2Task( void *pvParameters );
 /* Counters used to detect errors within the reg test tasks. */\r
 static volatile unsigned portLONG ulRegTest1Counter = 0x11111111, ulRegTest2Counter = 0x22222222;\r
 \r
-/* Any errors that the check task finds in any tasks are latched into \r
+/* Any errors that the check task finds in any tasks are latched into\r
 ulErrorCode, and then displayed via the WEB server. */\r
 static unsigned portLONG ulErrorCode = 0UL;\r
 \r
@@ -167,7 +167,7 @@ int main( void )
        prvSetupHardware();\r
 \r
        /* Create the WEB server task. */\r
-       xTaskCreate( vuIP_Task, ( signed portCHAR * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
+       xTaskCreate( vuIP_Task, "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );\r
 \r
        /* Start the standard demo tasks. */\r
        vStartLEDFlashTasks( tskIDLE_PRIORITY );\r
@@ -180,11 +180,11 @@ int main( void )
     vStartRecursiveMutexTasks();\r
 \r
        /* Start the reg test tasks - defined in this file. */\r
-       xTaskCreate( vRegTest1Task, ( signed portCHAR * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed portCHAR * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the check task. */\r
-       xTaskCreate( prvCheckTask, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
index 7b7fef7fd9214077350ce654f7d89b3632848e58..9e880759add38842ae56e813cd2882d0eb45d63c 100644 (file)
@@ -206,7 +206,7 @@ PT_THREAD(net_stats(struct httpd_state *s, char *ptr))
 }\r
 /*---------------------------------------------------------------------------*/\r
 \r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern unsigned long ulGetErrorCode( void );\r
 \r
 static char cCountBuf[ 32 ];\r
@@ -217,7 +217,7 @@ generate_rtos_stats(void *arg)
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d, Error code = %d (0 = no errors)", (int)lRefreshCount, (int)ulGetErrorCode() );\r
-    vTaskList( uip_appdata );\r
+    vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -272,7 +272,7 @@ void vApplicationProcessFormInput( char *pcInputString )
 {\r
 char *c = pcInputString;\r
 \r
-       /* Process the form input sent by the IO page of the served HTML. \r
+       /* Process the form input sent by the IO page of the served HTML.\r
        This just contains an instruction to either turn on or off the LED. */\r
        while( ( *c != '?' ) && ( *c != 0x00 ) )\r
        {\r
index 6228ccfd55f9632f8d23e482a5e46b86a2198a72..a20ee5593a7f6a474dc3f79bd79dc8cb6f3e1666 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -162,21 +162,21 @@ static void vProcessConnection( struct netconn *pxNetCon )
             ulPageHits++;\r
             sprintf( cPageHits, "%d", (int)ulPageHits );\r
 \r
-            /* Write out the HTTP OK header. */            \r
+            /* Write out the HTTP OK header. */\r
             netconn_write( pxNetCon, webHTTP_OK, ( u16_t ) strlen( webHTTP_OK ), NETCONN_COPY );\r
 \r
             /* Generate the dynamic page...\r
-            \r
+\r
                ... First the page header. */\r
             strcpy( cDynamicPage, webHTML_START );\r
             /* ... Then the hit count... */\r
             strcat( cDynamicPage, cPageHits );\r
-            \r
+\r
             strcat( cDynamicPage,\r
                     "<p><pre>Task          State  Priority  Stack      #<br>************************************************<br>" );\r
             /* ... Then the list of tasks and their status... */\r
-            vTaskList( ( signed portCHAR * )cDynamicPage + strlen( cDynamicPage ) );            \r
-            \r
+            vTaskList( cDynamicPage + strlen( cDynamicPage ) );\r
+\r
             /* ... Finally the page footer. */\r
             strcat( cDynamicPage, webHTML_END );\r
 \r
@@ -229,7 +229,7 @@ void vBasicWEBServer( void *pvParameters )
 \r
     /* Loop forever */\r
     for( ;; )\r
-    {  \r
+    {\r
         /* Wait for connection. */\r
         pxNewConnection = netconn_accept( pxHTTPListener );\r
 \r
index 516f3e493406728c122a14d141a25cfa296c6fcc..f3221260f65c3754576ddbf250cfd8a10c31d5ab 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -182,11 +182,11 @@ extern void vBasicWEBServer( void *pv );
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
 \r
        /* Start the reg test tasks - defined in this file. */\r
-       xTaskCreate( vRegTest1Task, ( signed portCHAR * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed portCHAR * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the check task. */\r
-       xTaskCreate( prvCheckTask, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
index 7f643fbca61f02af9c3fee4223365f9d165a5fef..f3819c9508b1669183981f73530c209a9b0de5cd 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -177,11 +177,11 @@ int main( void )
        vStartInterruptQueueTasks();\r
 \r
        /* Start the reg test tasks - defined in this file. */\r
-       xTaskCreate( vRegTest1Task, ( signed portCHAR * ) "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegTest2Task, ( signed portCHAR * ) "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest1Counter, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, ( void * ) &ulRegTest2Counter, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the check task. */\r
-       xTaskCreate( prvCheckTask, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
        tasks were running prior to their creation in order to ascertain whether\r
index aff7d32cd59754d7f8f4526ef3f737d3d1324d0a..0e180a121385eeac28f2749f673aba1a1a820819 100644 (file)
@@ -171,8 +171,8 @@ const portTickType xDontBlock = ( portTickType ) 0;
 \r
        /* Note the producer has a lower priority than the consumer when the tasks are\r
        spawned. */\r
-       xTaskCreate( vBlockingQueueConsumer, ( signed portCHAR * ) "QConsB1", blckqSTACK_SIZE, ( void * ) pxQueueParameters1, uxPriority, NULL );\r
-       xTaskCreate( vBlockingQueueProducer, ( signed portCHAR * ) "QProdB2", blckqSTACK_SIZE, ( void * ) pxQueueParameters2, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueConsumer, "QConsB1", blckqSTACK_SIZE, ( void * ) pxQueueParameters1, uxPriority, NULL );\r
+       xTaskCreate( vBlockingQueueProducer, "QProdB2", blckqSTACK_SIZE, ( void * ) pxQueueParameters2, tskIDLE_PRIORITY, NULL );\r
 \r
        \r
 \r
@@ -189,8 +189,8 @@ const portTickType xDontBlock = ( portTickType ) 0;
        pxQueueParameters4->xBlockTime = xBlockTime;\r
        pxQueueParameters4->psCheckVariable = &( sBlockingConsumerCount[ 1 ] );\r
 \r
-       xTaskCreate( vBlockingQueueConsumer, ( signed portCHAR * ) "QProdB3", blckqSTACK_SIZE, ( void * ) pxQueueParameters3, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vBlockingQueueProducer, ( signed portCHAR * ) "QConsB4", blckqSTACK_SIZE, ( void * ) pxQueueParameters4, uxPriority, NULL );\r
+       xTaskCreate( vBlockingQueueConsumer, "QProdB3", blckqSTACK_SIZE, ( void * ) pxQueueParameters3, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueProducer, "QConsB4", blckqSTACK_SIZE, ( void * ) pxQueueParameters4, uxPriority, NULL );\r
 \r
 \r
 \r
@@ -206,8 +206,8 @@ const portTickType xDontBlock = ( portTickType ) 0;
        pxQueueParameters6->xBlockTime = xBlockTime;\r
        pxQueueParameters6->psCheckVariable = &( sBlockingConsumerCount[ 2 ] ); \r
 \r
-       xTaskCreate( vBlockingQueueProducer, ( signed portCHAR * ) "QProdB5", blckqSTACK_SIZE, ( void * ) pxQueueParameters5, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vBlockingQueueConsumer, ( signed portCHAR * ) "QConsB6", blckqSTACK_SIZE, ( void * ) pxQueueParameters6, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueProducer, "QProdB5", blckqSTACK_SIZE, ( void * ) pxQueueParameters5, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueConsumer, "QConsB6", blckqSTACK_SIZE, ( void * ) pxQueueParameters6, tskIDLE_PRIORITY, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 93c8472199c8c78b8b9956d51306b1d2c13f3a4d..9cf4c982b3ad6326d128c4bef7715ec0453e931b 100644 (file)
@@ -124,12 +124,12 @@ void vCreateAltBlockTimeTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xTestQueue, ( signed portCHAR * ) "AltBlockQueue" );\r
+       vQueueAddToRegistry( xTestQueue, "AltBlockQueue" );\r
 \r
 \r
        /* Create the two test tasks. */\r
-       xTaskCreate( vPrimaryBlockTimeTestTask, ( signed portCHAR * )"FBTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
-       xTaskCreate( vSecondaryBlockTimeTestTask, ( signed portCHAR * )"FBTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
+       xTaskCreate( vPrimaryBlockTimeTestTask, "FBTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
+       xTaskCreate( vSecondaryBlockTimeTestTask, "FBTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 25949ea55a8627c4bad2e03512610893f41e62ca..f1af2a37c316e65b73f824dc3eae358e347524cf 100644 (file)
@@ -134,12 +134,12 @@ static xQueueHandle xPolledQueue;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xPolledQueue, ( signed portCHAR * ) "AltPollQueue" );\r
+       vQueueAddToRegistry( xPolledQueue, "AltPollQueue" );\r
 \r
 \r
        /* Spawn the producer and consumer. */\r
-       xTaskCreate( vPolledQueueConsumer, ( signed portCHAR * ) "QConsNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
-       xTaskCreate( vPolledQueueProducer, ( signed portCHAR * ) "QProdNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vPolledQueueConsumer, "QConsNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vPolledQueueProducer, "QProdNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 97103366265c0642f7615c52a556f08f9e6e6c66..4e17a1497ad98f01a8f1004a8512ba73d42b62e8 100644 (file)
@@ -154,12 +154,12 @@ xSemaphoreHandle xMutex;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xQueue, ( signed portCHAR * ) "Alt_Gen_Test_Queue" );\r
+       vQueueAddToRegistry( xQueue, "Alt_Gen_Test_Queue" );\r
 \r
        /* Create the demo task and pass it the queue just created.  We are\r
        passing the queue handle by value so it does not matter that it is\r
        declared on the stack here. */\r
-       xTaskCreate( prvSendFrontAndBackTest, ( signed portCHAR * ) "FGenQ", configMINIMAL_STACK_SIZE, ( void * ) xQueue, uxPriority, NULL );\r
+       xTaskCreate( prvSendFrontAndBackTest, "FGenQ", configMINIMAL_STACK_SIZE, ( void * ) xQueue, uxPriority, NULL );\r
 \r
        /* Create the mutex used by the prvMutexTest task. */\r
        xMutex = xSemaphoreCreateMutex();\r
@@ -170,14 +170,14 @@ xSemaphoreHandle xMutex;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( ( xQueueHandle ) xMutex, ( signed portCHAR * ) "Alt_Q_Mutex" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) xMutex, "Alt_Q_Mutex" );\r
 \r
        /* Create the mutex demo tasks and pass it the mutex just created.  We are\r
        passing the mutex handle by value so it does not matter that it is declared\r
        on the stack here. */\r
-       xTaskCreate( prvLowPriorityMutexTask, ( signed portCHAR * ) "FMuLow", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_LOW_PRIORITY, NULL );\r
-       xTaskCreate( prvMediumPriorityMutexTask, ( signed portCHAR * ) "FMuMed", configMINIMAL_STACK_SIZE, NULL, genqMUTEX_MEDIUM_PRIORITY, &xMediumPriorityMutexTask );\r
-       xTaskCreate( prvHighPriorityMutexTask, ( signed portCHAR * ) "FMuHigh", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_HIGH_PRIORITY, &xHighPriorityMutexTask );\r
+       xTaskCreate( prvLowPriorityMutexTask, "FMuLow", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_LOW_PRIORITY, NULL );\r
+       xTaskCreate( prvMediumPriorityMutexTask, "FMuMed", configMINIMAL_STACK_SIZE, NULL, genqMUTEX_MEDIUM_PRIORITY, &xMediumPriorityMutexTask );\r
+       xTaskCreate( prvHighPriorityMutexTask, "FMuHigh", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_HIGH_PRIORITY, &xHighPriorityMutexTask );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index be190501a71c7b4311aed3646e307026862de3ff..9c2d83323f39d5644fbeba6be881540e09e6717f 100644 (file)
@@ -168,8 +168,8 @@ const portTickType xDontBlock = ( portTickType ) 0;
 \r
        /* Note the producer has a lower priority than the consumer when the tasks are\r
        spawned. */\r
-       xTaskCreate( vBlockingQueueConsumer, ( signed char * ) "QConsB1", blckqSTACK_SIZE, ( void * ) pxQueueParameters1, uxPriority, NULL );\r
-       xTaskCreate( vBlockingQueueProducer, ( signed char * ) "QProdB2", blckqSTACK_SIZE, ( void * ) pxQueueParameters2, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueConsumer, "QConsB1", blckqSTACK_SIZE, ( void * ) pxQueueParameters1, uxPriority, NULL );\r
+       xTaskCreate( vBlockingQueueProducer, "QProdB2", blckqSTACK_SIZE, ( void * ) pxQueueParameters2, tskIDLE_PRIORITY, NULL );\r
 \r
 \r
 \r
@@ -186,8 +186,8 @@ const portTickType xDontBlock = ( portTickType ) 0;
        pxQueueParameters4->xBlockTime = xBlockTime;\r
        pxQueueParameters4->psCheckVariable = &( sBlockingConsumerCount[ 1 ] );\r
 \r
-       xTaskCreate( vBlockingQueueConsumer, ( signed char * ) "QConsB3", blckqSTACK_SIZE, ( void * ) pxQueueParameters3, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vBlockingQueueProducer, ( signed char * ) "QProdB4", blckqSTACK_SIZE, ( void * ) pxQueueParameters4, uxPriority, NULL );\r
+       xTaskCreate( vBlockingQueueConsumer, "QConsB3", blckqSTACK_SIZE, ( void * ) pxQueueParameters3, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueProducer, "QProdB4", blckqSTACK_SIZE, ( void * ) pxQueueParameters4, uxPriority, NULL );\r
 \r
 \r
 \r
@@ -203,8 +203,8 @@ const portTickType xDontBlock = ( portTickType ) 0;
        pxQueueParameters6->xBlockTime = xBlockTime;\r
        pxQueueParameters6->psCheckVariable = &( sBlockingConsumerCount[ 2 ] );\r
 \r
-       xTaskCreate( vBlockingQueueProducer, ( signed char * ) "QProdB5", blckqSTACK_SIZE, ( void * ) pxQueueParameters5, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vBlockingQueueConsumer, ( signed char * ) "QConsB6", blckqSTACK_SIZE, ( void * ) pxQueueParameters6, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueProducer, "QProdB5", blckqSTACK_SIZE, ( void * ) pxQueueParameters5, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vBlockingQueueConsumer, "QConsB6", blckqSTACK_SIZE, ( void * ) pxQueueParameters6, tskIDLE_PRIORITY, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index e1425076c495cafecf49f3fc4816311d2c2911aa..90139c59318f7b43940f923e7842a8632b30272b 100644 (file)
@@ -167,10 +167,10 @@ xTaskHandle xWaitBitsTaskHandle;
         * event groups API.\r
         */\r
 \r
-       xTaskCreate( prvWaitBitsTask, ( signed char * ) "WaitO", configMINIMAL_STACK_SIZE, NULL, ebWAIT_BIT_TASK_PRIORITY, &xWaitBitsTaskHandle );\r
-       xTaskCreate( prvSetBitsTask, ( signed char * ) "SetB", configMINIMAL_STACK_SIZE, ( void * ) xWaitBitsTaskHandle, ebSET_BIT_TASK_PRIORITY, NULL );\r
-       xTaskCreate( prvSyncTask, ( signed char * ) "Rndv", configMINIMAL_STACK_SIZE, ( void * ) ebRENDESVOUS_TASK_1_SYNC_BIT, ebWAIT_BIT_TASK_PRIORITY, &xSyncTask1 );\r
-       xTaskCreate( prvSyncTask, ( signed char * ) "Rndv", configMINIMAL_STACK_SIZE, ( void * ) ebRENDESVOUS_TASK_2_SYNC_BIT, ebWAIT_BIT_TASK_PRIORITY, &xSyncTask2 );\r
+       xTaskCreate( prvWaitBitsTask, "WaitO", configMINIMAL_STACK_SIZE, NULL, ebWAIT_BIT_TASK_PRIORITY, &xWaitBitsTaskHandle );\r
+       xTaskCreate( prvSetBitsTask, "SetB", configMINIMAL_STACK_SIZE, ( void * ) xWaitBitsTaskHandle, ebSET_BIT_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvSyncTask, "Rndv", configMINIMAL_STACK_SIZE, ( void * ) ebRENDESVOUS_TASK_1_SYNC_BIT, ebWAIT_BIT_TASK_PRIORITY, &xSyncTask1 );\r
+       xTaskCreate( prvSyncTask, "Rndv", configMINIMAL_STACK_SIZE, ( void * ) ebRENDESVOUS_TASK_2_SYNC_BIT, ebWAIT_BIT_TASK_PRIORITY, &xSyncTask2 );\r
 \r
        /* If the last task was created then the others will have been too. */\r
        configASSERT( xSyncTask2 );\r
index 90dac35202159c3eae135281ed20ec0b3381a795..232a90cd9fe3d6c4a4f1f475f2f33e22c058e95d 100644 (file)
@@ -156,12 +156,12 @@ xSemaphoreHandle xMutex;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is\r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xQueue, ( signed portCHAR * ) "Gen_Queue_Test" );\r
+       vQueueAddToRegistry( xQueue, "Gen_Queue_Test" );\r
 \r
        /* Create the demo task and pass it the queue just created.  We are\r
        passing the queue handle by value so it does not matter that it is\r
        declared on the stack here. */\r
-       xTaskCreate( prvSendFrontAndBackTest, ( signed portCHAR * )"GenQ", configMINIMAL_STACK_SIZE, ( void * ) xQueue, uxPriority, NULL );\r
+       xTaskCreate( prvSendFrontAndBackTest, "GenQ", configMINIMAL_STACK_SIZE, ( void * ) xQueue, uxPriority, NULL );\r
 \r
        /* Create the mutex used by the prvMutexTest task. */\r
        xMutex = xSemaphoreCreateMutex();\r
@@ -172,14 +172,14 @@ xSemaphoreHandle xMutex;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is\r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( ( xQueueHandle ) xMutex, ( signed portCHAR * ) "Gen_Queue_Mutex" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) xMutex, "Gen_Queue_Mutex" );\r
 \r
        /* Create the mutex demo tasks and pass it the mutex just created.  We are\r
        passing the mutex handle by value so it does not matter that it is declared\r
        on the stack here. */\r
-       xTaskCreate( prvLowPriorityMutexTask, ( signed portCHAR * )"MuLow", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_LOW_PRIORITY, NULL );\r
-       xTaskCreate( prvMediumPriorityMutexTask, ( signed portCHAR * )"MuMed", configMINIMAL_STACK_SIZE, NULL, genqMUTEX_MEDIUM_PRIORITY, &xMediumPriorityMutexTask );\r
-       xTaskCreate( prvHighPriorityMutexTask, ( signed portCHAR * )"MuHigh", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_HIGH_PRIORITY, &xHighPriorityMutexTask );\r
+       xTaskCreate( prvLowPriorityMutexTask, "MuLow", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_LOW_PRIORITY, NULL );\r
+       xTaskCreate( prvMediumPriorityMutexTask, "MuMed", configMINIMAL_STACK_SIZE, NULL, genqMUTEX_MEDIUM_PRIORITY, &xMediumPriorityMutexTask );\r
+       xTaskCreate( prvHighPriorityMutexTask, "MuHigh", configMINIMAL_STACK_SIZE, ( void * ) xMutex, genqMUTEX_HIGH_PRIORITY, &xHighPriorityMutexTask );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 42d21032c89e195029a95d2dd31b7c083b167d79..e54c4c549a4f953e0699b91e345b40979c9ca943 100644 (file)
@@ -225,12 +225,12 @@ static void prvQueueAccessLogError( unsigned portBASE_TYPE uxLine );
 void vStartInterruptQueueTasks( void )\r
 {\r
        /* Start the test tasks. */\r
-       xTaskCreate( prvHigherPriorityNormallyEmptyTask, ( signed portCHAR * ) "H1QRx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK1, intqHIGHER_PRIORITY, &xHighPriorityNormallyEmptyTask1 );\r
-       xTaskCreate( prvHigherPriorityNormallyEmptyTask, ( signed portCHAR * ) "H2QRx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK2, intqHIGHER_PRIORITY, &xHighPriorityNormallyEmptyTask2 );\r
-       xTaskCreate( prvLowerPriorityNormallyEmptyTask, ( signed portCHAR * ) "L1QRx", configMINIMAL_STACK_SIZE, NULL, intqLOWER_PRIORITY, NULL );\r
-       xTaskCreate( prv1stHigherPriorityNormallyFullTask, ( signed portCHAR * ) "H1QTx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK1, intqHIGHER_PRIORITY, &xHighPriorityNormallyFullTask1 );\r
-       xTaskCreate( prv2ndHigherPriorityNormallyFullTask, ( signed portCHAR * ) "H2QTx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK2, intqHIGHER_PRIORITY, &xHighPriorityNormallyFullTask2 );\r
-       xTaskCreate( prvLowerPriorityNormallyFullTask, ( signed portCHAR * ) "L2QRx", configMINIMAL_STACK_SIZE, NULL, intqLOWER_PRIORITY, NULL );\r
+       xTaskCreate( prvHigherPriorityNormallyEmptyTask, "H1QRx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK1, intqHIGHER_PRIORITY, &xHighPriorityNormallyEmptyTask1 );\r
+       xTaskCreate( prvHigherPriorityNormallyEmptyTask, "H2QRx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK2, intqHIGHER_PRIORITY, &xHighPriorityNormallyEmptyTask2 );\r
+       xTaskCreate( prvLowerPriorityNormallyEmptyTask, "L1QRx", configMINIMAL_STACK_SIZE, NULL, intqLOWER_PRIORITY, NULL );\r
+       xTaskCreate( prv1stHigherPriorityNormallyFullTask, "H1QTx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK1, intqHIGHER_PRIORITY, &xHighPriorityNormallyFullTask1 );\r
+       xTaskCreate( prv2ndHigherPriorityNormallyFullTask, "H2QTx", configMINIMAL_STACK_SIZE, ( void * ) intqHIGH_PRIORITY_TASK2, intqHIGHER_PRIORITY, &xHighPriorityNormallyFullTask2 );\r
+       xTaskCreate( prvLowerPriorityNormallyFullTask, "L2QRx", configMINIMAL_STACK_SIZE, NULL, intqLOWER_PRIORITY, NULL );\r
 \r
        /* Create the queues that are accessed by multiple tasks and multiple\r
        interrupts. */\r
@@ -243,8 +243,8 @@ void vStartInterruptQueueTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is\r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xNormallyFullQueue, ( signed portCHAR * ) "NormallyFull" );\r
-       vQueueAddToRegistry( xNormallyEmptyQueue, ( signed portCHAR * ) "NormallyEmpty" );\r
+       vQueueAddToRegistry( xNormallyFullQueue, "NormallyFull" );\r
+       vQueueAddToRegistry( xNormallyEmptyQueue, "NormallyEmpty" );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index e3a3cb3c5c3b724ceb43787155f8bd255f905c95..eb6158185e028c2726b12b2ad87f25dbb56d6db6 100644 (file)
@@ -136,11 +136,11 @@ static xQueueHandle xPolledQueue;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xPolledQueue, ( signed char * ) "Poll_Test_Queue" );\r
+       vQueueAddToRegistry( xPolledQueue, "Poll_Test_Queue" );\r
 \r
        /* Spawn the producer and consumer. */\r
-       xTaskCreate( vPolledQueueConsumer, ( signed char * ) "QConsNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
-       xTaskCreate( vPolledQueueProducer, ( signed char * ) "QProdNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vPolledQueueConsumer, "QConsNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vPolledQueueProducer, "QProdNB", pollqSTACK_SIZE, ( void * ) &xPolledQueue, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 942155c901be71eee775ddcafa4571e429b580b7..76cb7dfd3e010db5ff7c02e52c8b9e150945efe4 100644 (file)
@@ -129,15 +129,15 @@ xQueueHandle xQueue;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is\r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xQueue, ( signed portCHAR * ) "QPeek_Test_Queue" );\r
+       vQueueAddToRegistry( xQueue, "QPeek_Test_Queue" );\r
 \r
        /* Create the demo tasks and pass it the queue just created.  We are\r
        passing the queue handle by value so it does not matter that it is declared\r
        on the stack here. */\r
-       xTaskCreate( prvLowPriorityPeekTask, ( signed portCHAR * )"PeekL", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekLOW_PRIORITY, NULL );\r
-       xTaskCreate( prvMediumPriorityPeekTask, ( signed portCHAR * )"PeekM", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekMEDIUM_PRIORITY, &xMediumPriorityTask );\r
-       xTaskCreate( prvHighPriorityPeekTask, ( signed portCHAR * )"PeekH1", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekHIGH_PRIORITY, &xHighPriorityTask );\r
-       xTaskCreate( prvHighestPriorityPeekTask, ( signed portCHAR * )"PeekH2", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekHIGHEST_PRIORITY, &xHighestPriorityTask );\r
+       xTaskCreate( prvLowPriorityPeekTask, "PeekL", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekLOW_PRIORITY, NULL );\r
+       xTaskCreate( prvMediumPriorityPeekTask, "PeekM", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekMEDIUM_PRIORITY, &xMediumPriorityTask );\r
+       xTaskCreate( prvHighPriorityPeekTask, "PeekH1", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekHIGH_PRIORITY, &xHighPriorityTask );\r
+       xTaskCreate( prvHighestPriorityPeekTask, "PeekH2", configMINIMAL_STACK_SIZE, ( void * ) xQueue, qpeekHIGHEST_PRIORITY, &xHighestPriorityTask );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index b6259fc716834572be4702e5acf0e612a8cfa378..68cc62c0701bf5dafd59f9ec188ee714ac3ff761 100644 (file)
@@ -109,7 +109,7 @@ const unsigned portBASE_TYPE uxQueueLength = 1;
 \r
        /* Create the test task.  The queue used by the test task is created inside\r
        the task itself. */\r
-       xTaskCreate( prvQueueOverwriteTask, ( signed char * ) "QOver", configMINIMAL_STACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( prvQueueOverwriteTask, "QOver", configMINIMAL_STACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index dbd9db7f533e4833262c9ca50a8f685658af9f41..036b98b2ca0b707fe4b88b516f1449b68d4bc927 100644 (file)
@@ -229,8 +229,8 @@ xTaskHandle xQueueSetSendingTask, xQueueSetReceivingTask;
 void vStartQueueSetTasks( void )\r
 {\r
        /* Create the tasks. */\r
-       xTaskCreate( prvQueueSetSendingTask, ( signed char * ) "SetTx", configMINIMAL_STACK_SIZE, NULL, queuesetMEDIUM_PRIORITY, &xQueueSetSendingTask );\r
-       xTaskCreate( prvQueueSetReceivingTask, ( signed char * ) "SetRx", configMINIMAL_STACK_SIZE, ( void * ) xQueueSetSendingTask, queuesetMEDIUM_PRIORITY, &xQueueSetReceivingTask );\r
+       xTaskCreate( prvQueueSetSendingTask, "SetTx", configMINIMAL_STACK_SIZE, NULL, queuesetMEDIUM_PRIORITY, &xQueueSetSendingTask );\r
+       xTaskCreate( prvQueueSetReceivingTask, "SetRx", configMINIMAL_STACK_SIZE, ( void * ) xQueueSetSendingTask, queuesetMEDIUM_PRIORITY, &xQueueSetReceivingTask );\r
 \r
        /* It is important that the sending task does not attempt to write to a\r
        queue before the queue has been created.  It is therefore placed into the\r
index 62b675bcb6ab4c9038e57b1990aecadae274d599..f04975bd164c4055feeeb4281eb415240f9b3794 100644 (file)
@@ -175,7 +175,7 @@ void vStartTimerDemoTask( portTickType xBasePeriodIn )
        task, which will then preempt this task). */\r
        if( xTestStatus != pdFAIL )\r
        {\r
-               xTaskCreate( prvTimerTestTask, ( signed portCHAR * ) "Tmr Tst", configMINIMAL_STACK_SIZE, NULL, configTIMER_TASK_PRIORITY - 1, NULL );\r
+               xTaskCreate( prvTimerTestTask, "Tmr Tst", configMINIMAL_STACK_SIZE, NULL, configTIMER_TASK_PRIORITY - 1, NULL );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -185,11 +185,11 @@ static void prvTimerTestTask( void *pvParameters )
        ( void ) pvParameters;\r
 \r
        /* Create a one-shot timer for use later on in this test. */\r
-       xOneShotTimer = xTimerCreate(   ( const signed char * ) "Oneshot Timer",/* Text name to facilitate debugging.  The kernel does not use this itself. */\r
-                                                                       tmrdemoONE_SHOT_TIMER_PERIOD,                   /* The period for the timer. */\r
-                                                                       pdFALSE,                                                                /* Don't auto-reload - hence a one shot timer. */\r
-                                                                       ( void * ) 0,                                                   /* The timer identifier.  In this case this is not used as the timer has its own callback. */\r
-                                                                       prvOneShotTimerCallback );                              /* The callback to be called when the timer expires. */\r
+       xOneShotTimer = xTimerCreate(   "Oneshot Timer",                                /* Text name to facilitate debugging.  The kernel does not use this itself. */\r
+                                                                       tmrdemoONE_SHOT_TIMER_PERIOD,   /* The period for the timer. */\r
+                                                                       pdFALSE,                                                /* Don't auto-reload - hence a one shot timer. */\r
+                                                                       ( void * ) 0,                                   /* The timer identifier.  In this case this is not used as the timer has its own callback. */\r
+                                                                       prvOneShotTimerCallback );              /* The callback to be called when the timer expires. */\r
 \r
        if( xOneShotTimer == NULL )\r
        {\r
@@ -285,7 +285,7 @@ unsigned portBASE_TYPE xTimer;
                and start a timer.  These timers are being started before the scheduler has\r
                been started, so their block times should get set to zero within the timer\r
                API itself. */\r
-               xAutoReloadTimers[ xTimer ] = xTimerCreate( ( const signed char * )"FR Timer",  /* Text name to facilitate debugging.  The kernel does not use this itself. */\r
+               xAutoReloadTimers[ xTimer ] = xTimerCreate( "FR Timer",                                                 /* Text name to facilitate debugging.  The kernel does not use this itself. */\r
                                                                                                        ( ( xTimer + ( portTickType ) 1 ) * xBasePeriod ),/* The period for the timer.  The plus 1 ensures a period of zero is not specified. */\r
                                                                                                        pdTRUE,                                                         /* Auto-reload is set to true. */\r
                                                                                                        ( void * ) xTimer,                                      /* An identifier for the timer as all the auto reload timers use the same callback. */\r
@@ -313,11 +313,11 @@ unsigned portBASE_TYPE xTimer;
        /* The timers queue should now be full, so it should be possible to create\r
        another timer, but not possible to start it (the timer queue will not get\r
        drained until the scheduler has been started. */\r
-       xAutoReloadTimers[ configTIMER_QUEUE_LENGTH ] = xTimerCreate( ( const signed char * ) "FR Timer",       /* Text name to facilitate debugging.  The kernel does not use this itself. */\r
-                                                                                                       ( configTIMER_QUEUE_LENGTH * xBasePeriod ),                     /* The period for the timer. */\r
-                                                                                                       pdTRUE,                                                                                         /* Auto-reload is set to true. */\r
-                                                                                                       ( void * ) xTimer,                                                                      /* An identifier for the timer as all the auto reload timers use the same callback. */\r
-                                                                                                       prvAutoReloadTimerCallback );                                           /* The callback executed when the timer expires. */\r
+       xAutoReloadTimers[ configTIMER_QUEUE_LENGTH ] = xTimerCreate( "FR Timer",                                       /* Text name to facilitate debugging.  The kernel does not use this itself. */\r
+                                                                                                       ( configTIMER_QUEUE_LENGTH * xBasePeriod ),     /* The period for the timer. */\r
+                                                                                                       pdTRUE,                                                                         /* Auto-reload is set to true. */\r
+                                                                                                       ( void * ) xTimer,                                                      /* An identifier for the timer as all the auto reload timers use the same callback. */\r
+                                                                                                       prvAutoReloadTimerCallback );                           /* The callback executed when the timer expires. */\r
 \r
        if( xAutoReloadTimers[ configTIMER_QUEUE_LENGTH ] == NULL )\r
        {\r
@@ -337,13 +337,13 @@ unsigned portBASE_TYPE xTimer;
        \r
        /* Create the timers that are used from the tick interrupt to test the timer\r
        API functions that can be called from an ISR. */\r
-       xISRAutoReloadTimer = xTimerCreate( ( const signed char * ) "ISR AR",   /* The text name given to the timer. */\r
+       xISRAutoReloadTimer = xTimerCreate( "ISR AR",                                                   /* The text name given to the timer. */\r
                                                                                0xffff,                                                         /* The timer is not given a period yet - this will be done from the tick hook, but a period of 0 is invalid. */\r
                                                                                pdTRUE,                                                         /* This is an auto reload timer. */\r
                                                                                ( void * ) NULL,                                        /* The identifier is not required. */\r
                                                                                prvISRAutoReloadTimerCallback );        /* The callback that is executed when the timer expires. */\r
 \r
-       xISROneShotTimer = xTimerCreate(        ( const signed char * ) "ISR OS",       /* The text name given to the timer. */\r
+       xISROneShotTimer = xTimerCreate(        "ISR OS",                                                       /* The text name given to the timer. */\r
                                                                                0xffff,                                                         /* The timer is not given a period yet - this will be done from the tick hook, but a period of 0 is invalid. */\r
                                                                                pdFALSE,                                                        /* This is a one shot timer. */\r
                                                                                ( void * ) NULL,                                        /* The identifier is not required. */\r
index cef2ba6a16afdf7d24db8beba655842819eafef6..318caa14702bb011b82c25c41a6f253c8c646da1 100644 (file)
@@ -127,11 +127,11 @@ void vCreateBlockTimeTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is\r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xTestQueue, ( signed char * ) "Block_Time_Queue" );\r
+       vQueueAddToRegistry( xTestQueue, "Block_Time_Queue" );\r
 \r
        /* Create the two test tasks. */\r
-       xTaskCreate( vPrimaryBlockTimeTestTask, ( signed char * )"BTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
-       xTaskCreate( vSecondaryBlockTimeTestTask, ( signed char * )"BTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
+       xTaskCreate( vPrimaryBlockTimeTestTask, "BTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
+       xTaskCreate( vSecondaryBlockTimeTestTask, "BTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 3295535ec9c47d4239228c41a1dd20be21d71700..9c283e860bd4fedd11cd3060310ce220ca7133cc 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -158,14 +158,14 @@ void vAltStartComTestTasks( unsigned portBASE_TYPE uxPriority, unsigned long ulB
        xSerialPortInitMinimal( ulBaudRate, comBUFFER_LEN );\r
 \r
        /* The Tx task is spawned with a lower priority than the Rx task. */\r
-       xTaskCreate( vComTxTask, ( signed char * ) "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
-       xTaskCreate( vComRxTask, ( signed char * ) "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComTxTask, "COMTx", comSTACK_SIZE, NULL, uxPriority - 1, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( vComRxTask, "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
 static portTASK_FUNCTION( vComTxTask, pvParameters )\r
 {\r
-signed char cByteToSend;\r
+char cByteToSend;\r
 portTickType xTimeToWait;\r
 \r
        /* Just to stop compiler warnings. */\r
index 11b80c47831a188fb3400d0d8724a833061040fd..f77196f8b01b384c1a1f928eab44cab0dc5feb7d 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * See http://www.serialporttool.com/CommEcho.htm for a suitable echo server\r
  * for Windows hosts.\r
  *\r
- * The timer sends a string to the UART, toggles an LED, then resets itself by \r
- * changing its own period.  The period is calculated as a pseudo random number \r
+ * The timer sends a string to the UART, toggles an LED, then resets itself by\r
+ * changing its own period.  The period is calculated as a pseudo random number\r
  * between comTX_MAX_BLOCK_TIME and comTX_MIN_BLOCK_TIME.\r
  *\r
- * The task blocks on an Rx queue waiting for a character to become available.  \r
- * Received characters are checked to ensure they match those transmitted by the \r
- * Tx timer.  An error is latched if characters are missing, incorrect, or \r
+ * The task blocks on an Rx queue waiting for a character to become available.\r
+ * Received characters are checked to ensure they match those transmitted by the\r
+ * Tx timer.  An error is latched if characters are missing, incorrect, or\r
  * arrive too slowly.\r
  *\r
  * How characters are actually transmitted and received is port specific.  Demos\r
  * that include this test/demo file will provide example drivers.  The Tx timer\r
- * executes in the context of the timer service (daemon) task, and must \r
+ * executes in the context of the timer service (daemon) task, and must\r
  * therefore never attempt to block.\r
  *\r
  */\r
@@ -188,8 +188,8 @@ void vStartComTestStringsTasks( unsigned portBASE_TYPE uxPriority, unsigned long
 \r
        /* Create the Rx task and the Tx timer.  The timer is started from the\r
        Rx task. */\r
-       xTaskCreate( vComRxTask, ( signed char * ) "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
-       xTxTimer = xTimerCreate( ( const signed char * ) "TxTimer", comTX_MIN_BLOCK_TIME, pdFALSE, NULL, prvComTxTimerCallback );\r
+       xTaskCreate( vComRxTask, "COMRx", comSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTxTimer = xTimerCreate( "TxTimer", comTX_MIN_BLOCK_TIME, pdFALSE, NULL, prvComTxTimerCallback );\r
        configASSERT( xTxTimer );\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -205,7 +205,7 @@ portTickType xTimeToWait;
        sample driver provided with this demo.  However - as this is a timer,\r
        it executes in the context of the timer task and therefore must not\r
        block. */\r
-       vSerialPutString( xPort, ( const signed char * const ) comTRANSACTED_STRING, xStringLength );\r
+       vSerialPutString( xPort, comTRANSACTED_STRING, xStringLength );\r
 \r
        /* Toggle an LED to give a visible indication that another transmission\r
        has been performed. */\r
@@ -233,7 +233,7 @@ portTickType xTimeToWait;
 static void vComRxTask( void *pvParameters )\r
 {\r
 portBASE_TYPE xState = comtstWAITING_START_OF_STRING, xErrorOccurred = pdFALSE;\r
-signed char *pcExpectedByte, cRxedChar;\r
+char *pcExpectedByte, cRxedChar;\r
 const xComPortHandle xPort = NULL;\r
 \r
        /* The parameter is not used in this example. */\r
@@ -245,7 +245,7 @@ const xComPortHandle xPort = NULL;
 \r
        /* The first expected Rx character is the first in the string that is\r
        transmitted. */\r
-       pcExpectedByte = ( signed char * ) comTRANSACTED_STRING;\r
+       pcExpectedByte = comTRANSACTED_STRING;\r
 \r
        for( ;; )\r
        {\r
@@ -269,9 +269,9 @@ const xComPortHandle xPort = NULL;
                                        xState = comtstWAITING_END_OF_STRING;\r
                                        pcExpectedByte++;\r
 \r
-                                       /* Block for a short period.  This just allows the Rx queue \r
+                                       /* Block for a short period.  This just allows the Rx queue\r
                                        to contain more than one character, and therefore prevent\r
-                                       thrashing reads to the queue, and repetitive context \r
+                                       thrashing reads to the queue, and repetitive context\r
                                        switches as     each character is received. */\r
                                        vTaskDelay( comSHORT_DELAY );\r
                                }\r
@@ -298,7 +298,7 @@ const xComPortHandle xPort = NULL;
                                                }\r
 \r
                                                /* Go back to wait for the start of the next string. */\r
-                                               pcExpectedByte = ( signed char * ) comTRANSACTED_STRING;\r
+                                               pcExpectedByte = comTRANSACTED_STRING;\r
                                                xState = comtstWAITING_START_OF_STRING;\r
                                        }\r
                                        else\r
index d38e4f4c38f37ac9431fc1eb8b35d41702472b7c..4df90a601e60b79f406ebb8b7caf41389c65b4b6 100644 (file)
@@ -161,16 +161,16 @@ void vStartCountingSemaphoreTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( ( xQueueHandle ) xParameters[ 0 ].xSemaphore, ( signed portCHAR * ) "Counting_Sem_1" );\r
-       vQueueAddToRegistry( ( xQueueHandle ) xParameters[ 1 ].xSemaphore, ( signed portCHAR * ) "Counting_Sem_2" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) xParameters[ 0 ].xSemaphore, "Counting_Sem_1" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) xParameters[ 1 ].xSemaphore, "Counting_Sem_2" );\r
 \r
 \r
        /* Were the semaphores created? */\r
        if( ( xParameters[ 0 ].xSemaphore != NULL ) || ( xParameters[ 1 ].xSemaphore != NULL ) )\r
        {\r
                /* Create the demo tasks, passing in the semaphore to use as the parameter. */\r
-               xTaskCreate( prvCountingSemaphoreTask, ( signed portCHAR * ) "CNT1", configMINIMAL_STACK_SIZE, ( void * ) &( xParameters[ 0 ] ), tskIDLE_PRIORITY, NULL );\r
-               xTaskCreate( prvCountingSemaphoreTask, ( signed portCHAR * ) "CNT2", configMINIMAL_STACK_SIZE, ( void * ) &( xParameters[ 1 ] ), tskIDLE_PRIORITY, NULL );              \r
+               xTaskCreate( prvCountingSemaphoreTask, "CNT1", configMINIMAL_STACK_SIZE, ( void * ) &( xParameters[ 0 ] ), tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( prvCountingSemaphoreTask, "CNT2", configMINIMAL_STACK_SIZE, ( void * ) &( xParameters[ 1 ] ), tskIDLE_PRIORITY, NULL );            \r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index d6a9110b700b1aafefd2b08550fd7ae12b4d6a7c..ca7981a7dce3589d5ca325c82c099b38a059a455 100644 (file)
@@ -143,7 +143,7 @@ unsigned portBASE_TYPE *puxPriority;
        puxPriority = ( unsigned portBASE_TYPE * ) pvPortMalloc( sizeof( unsigned portBASE_TYPE ) );\r
        *puxPriority = uxPriority;\r
 \r
-       xTaskCreate( vCreateTasks, ( signed char * ) "CREATOR", deathSTACK_SIZE, ( void * ) puxPriority, uxPriority, NULL );\r
+       xTaskCreate( vCreateTasks, "CREATOR", deathSTACK_SIZE, ( void * ) puxPriority, uxPriority, NULL );\r
 \r
        /* Record the number of tasks that are running now so we know if any of the\r
        suicidal tasks have failed to be killed. */\r
@@ -221,8 +221,8 @@ unsigned portBASE_TYPE uxPriority;
 \r
                xCreatedTask = NULL;\r
 \r
-               xTaskCreate( vSuicidalTask, ( signed char * ) "SUICID1", configMINIMAL_STACK_SIZE, NULL, uxPriority, &xCreatedTask );\r
-               xTaskCreate( vSuicidalTask, ( signed char * ) "SUICID2", configMINIMAL_STACK_SIZE, &xCreatedTask, uxPriority, NULL );\r
+               xTaskCreate( vSuicidalTask, "SUICID1", configMINIMAL_STACK_SIZE, NULL, uxPriority, &xCreatedTask );\r
+               xTaskCreate( vSuicidalTask, "SUICID2", configMINIMAL_STACK_SIZE, &xCreatedTask, uxPriority, NULL );\r
 \r
                ++usCreationCount;\r
        }\r
index 2a900afd982873a15c0ee808a1f32ee6325d5eb7..8790886d00032c7239ea78c8a2067cf7ae835a3c 100644 (file)
@@ -191,13 +191,13 @@ void vStartDynamicPriorityTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is\r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( xSuspendedTestQueue, ( signed char * ) "Suspended_Test_Queue" );\r
+       vQueueAddToRegistry( xSuspendedTestQueue, "Suspended_Test_Queue" );\r
 \r
-       xTaskCreate( vContinuousIncrementTask, ( signed char * ) "CNT_INC", priSTACK_SIZE, ( void * ) &ulCounter, tskIDLE_PRIORITY, &xContinuousIncrementHandle );\r
-       xTaskCreate( vLimitedIncrementTask, ( signed char * ) "LIM_INC", priSTACK_SIZE, ( void * ) &ulCounter, tskIDLE_PRIORITY + 1, &xLimitedIncrementHandle );\r
-       xTaskCreate( vCounterControlTask, ( signed char * ) "C_CTRL", priSTACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vQueueSendWhenSuspendedTask, ( signed char * ) "SUSP_TX", priSTACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vQueueReceiveWhenSuspendedTask, ( signed char * ) "SUSP_RX", priSTACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vContinuousIncrementTask, "CNT_INC", priSTACK_SIZE, ( void * ) &ulCounter, tskIDLE_PRIORITY, &xContinuousIncrementHandle );\r
+       xTaskCreate( vLimitedIncrementTask, "LIM_INC", priSTACK_SIZE, ( void * ) &ulCounter, tskIDLE_PRIORITY + 1, &xLimitedIncrementHandle );\r
+       xTaskCreate( vCounterControlTask, "C_CTRL", priSTACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vQueueSendWhenSuspendedTask, "SUSP_TX", priSTACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vQueueReceiveWhenSuspendedTask, "SUSP_RX", priSTACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index fda5870936b6b7d49a36e20b7637e32f509ec9cb..9ea5487b6a3cc8b8f0574e1a2308b8d6eb8ae44e 100644 (file)
@@ -108,7 +108,7 @@ signed portBASE_TYPE xLEDTask;
        for( xLEDTask = 0; xLEDTask < ledNUMBER_OF_LEDS; ++xLEDTask )\r
        {\r
                /* Spawn the task. */\r
-               xTaskCreate( vLEDFlashTask, ( signed char * ) "LEDx", ledSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+               xTaskCreate( vLEDFlashTask, "LEDx", ledSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index a5985ff9832eb293d298caacbe1aa71495c7e5bc..7bd9654f5d34ab39788ee4e6e1f8ee2b7f88d0aa 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -67,7 +67,7 @@
  * Repeatedly toggles one or more LEDs using software timers - one timer per\r
  * LED.\r
  */\r
\r
+\r
 /* Scheduler include files. */\r
 #include "FreeRTOS.h"\r
 #include "timers.h"\r
@@ -102,13 +102,13 @@ xTimerHandle xTimer;
        for( uxLEDTimer = 0; uxLEDTimer < uxNumberOfLEDs; ++uxLEDTimer )\r
        {\r
                /* Create the timer. */\r
-               xTimer = xTimerCreate(  ( const signed char * const ) "Flasher",/* A text name, purely to help debugging. */\r
-                                                               ledFLASH_RATE_BASE * ( uxLEDTimer + 1 ),        /* The timer period, which is a multiple of ledFLASH_RATE_BASE. */\r
+               xTimer = xTimerCreate(  "Flasher",                                                              /* A text name, purely to help debugging. */\r
+                                                               ledFLASH_RATE_BASE * ( uxLEDTimer + 1 ),/* The timer period, which is a multiple of ledFLASH_RATE_BASE. */\r
                                                                pdTRUE,                                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) uxLEDTimer,                                  /* The ID is used to identify the timer within the timer callback function, as each timer uses the same callback. */\r
                                                                prvLEDTimerCallback                                             /* Each timer uses the same callback. */\r
                                                          );\r
-                               \r
+\r
                /* If the timer was created successfully, attempt to start it.  If the\r
                scheduler has not yet been started then the timer command queue must\r
                be long enough to hold each command sent to it until such time that the\r
@@ -117,7 +117,7 @@ xTimerHandle xTimer;
                if( xTimer != NULL )\r
                {\r
                        xTimerStart( xTimer, ledDONT_BLOCK );\r
-               }                                                         \r
+               }\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index e45ec642bbfd0e3e272b838738b0176aa525c074..97da2fbda4f2d8828b9a21f3ec856265fcdaf549 100644 (file)
@@ -104,10 +104,10 @@ static volatile unsigned short usTaskCheck[ mathNUMBER_OF_TASKS ] = { ( unsigned
 \r
 void vStartMathTasks( unsigned portBASE_TYPE uxPriority )\r
 {\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 76ea4237c978335cc3c15191623a0246d54452f8..ca145985820577a9a83d4f9b9be16a9f945eee95 100644 (file)
@@ -110,7 +110,7 @@ short sTask;
 \r
        for( sTask = 0; sTask < intgNUMBER_OF_TASKS; sTask++ )\r
        {\r
-               xTaskCreate( vCompeteingIntMathTask, ( signed char * ) "IntMath", intgSTACK_SIZE, ( void * ) &( xTaskCheck[ sTask ] ), uxPriority, ( xTaskHandle * ) NULL );\r
+               xTaskCreate( vCompeteingIntMathTask, "IntMath", intgSTACK_SIZE, ( void * ) &( xTaskCheck[ sTask ] ), uxPriority, ( xTaskHandle * ) NULL );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index 760233cd6e3c3c9dbffd63cc55eec95c7d95668b..0741248f596146e6d0e25d696e1359f9f96751c6 100644 (file)
@@ -153,14 +153,14 @@ void vStartRecursiveMutexTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is\r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( ( xQueueHandle ) xMutex, ( signed portCHAR * ) "Recursive_Mutex" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) xMutex, "Recursive_Mutex" );\r
 \r
 \r
        if( xMutex != NULL )\r
        {\r
-               xTaskCreate( prvRecursiveMutexControllingTask, ( signed portCHAR * ) "Rec1", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle );\r
-        xTaskCreate( prvRecursiveMutexBlockingTask, ( signed portCHAR * ) "Rec2", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle );\r
-        xTaskCreate( prvRecursiveMutexPollingTask, ( signed portCHAR * ) "Rec3", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvRecursiveMutexControllingTask, "Rec1", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle );\r
+        xTaskCreate( prvRecursiveMutexBlockingTask, "Rec2", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle );\r
+        xTaskCreate( prvRecursiveMutexPollingTask, "Rec3", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, NULL );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index f25547f8641ba47af1d2a89fa00f1b2924b788de..1033fd73aecb8616d87fb7276c45de745937aee8 100644 (file)
@@ -150,8 +150,8 @@ const portTickType xBlockTime = ( portTickType ) 100;
                        pxFirstSemaphoreParameters->xBlockTime = ( portTickType ) 0;\r
 \r
                        /* Spawn the first two tasks.  As they poll they operate at the idle priority. */\r
-                       xTaskCreate( prvSemaphoreTest, ( signed char * ) "PolSEM1", semtstSTACK_SIZE, ( void * ) pxFirstSemaphoreParameters, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );\r
-                       xTaskCreate( prvSemaphoreTest, ( signed char * ) "PolSEM2", semtstSTACK_SIZE, ( void * ) pxFirstSemaphoreParameters, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );\r
+                       xTaskCreate( prvSemaphoreTest, "PolSEM1", semtstSTACK_SIZE, ( void * ) pxFirstSemaphoreParameters, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );\r
+                       xTaskCreate( prvSemaphoreTest, "PolSEM2", semtstSTACK_SIZE, ( void * ) pxFirstSemaphoreParameters, tskIDLE_PRIORITY, ( xTaskHandle * ) NULL );\r
                }\r
        }\r
 \r
@@ -169,8 +169,8 @@ const portTickType xBlockTime = ( portTickType ) 100;
                        *( pxSecondSemaphoreParameters->pulSharedVariable ) = semtstBLOCKING_EXPECTED_VALUE;\r
                        pxSecondSemaphoreParameters->xBlockTime = xBlockTime / portTICK_RATE_MS;\r
 \r
-                       xTaskCreate( prvSemaphoreTest, ( signed char * ) "BlkSEM1", semtstSTACK_SIZE, ( void * ) pxSecondSemaphoreParameters, uxPriority, ( xTaskHandle * ) NULL );\r
-                       xTaskCreate( prvSemaphoreTest, ( signed char * ) "BlkSEM2", semtstSTACK_SIZE, ( void * ) pxSecondSemaphoreParameters, uxPriority, ( xTaskHandle * ) NULL );\r
+                       xTaskCreate( prvSemaphoreTest, "BlkSEM1", semtstSTACK_SIZE, ( void * ) pxSecondSemaphoreParameters, uxPriority, ( xTaskHandle * ) NULL );\r
+                       xTaskCreate( prvSemaphoreTest, "BlkSEM2", semtstSTACK_SIZE, ( void * ) pxSecondSemaphoreParameters, uxPriority, ( xTaskHandle * ) NULL );\r
                }\r
        }\r
 \r
@@ -180,8 +180,8 @@ const portTickType xBlockTime = ( portTickType ) 100;
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( ( xQueueHandle ) pxFirstSemaphoreParameters->xSemaphore, ( signed char * ) "Counting_Sem_1" );\r
-       vQueueAddToRegistry( ( xQueueHandle ) pxSecondSemaphoreParameters->xSemaphore, ( signed char * ) "Counting_Sem_2" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) pxFirstSemaphoreParameters->xSemaphore, "Counting_Sem_1" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) pxSecondSemaphoreParameters->xSemaphore, "Counting_Sem_2" );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index 75453443e8a1038297dcfe663e35bed527198fff..321086fa528746796f334b71b33a18aafd8e7078 100644 (file)
@@ -105,14 +105,14 @@ static volatile unsigned short usTaskCheck[ mathNUMBER_OF_TASKS ] = { ( unsigned
 \r
 void vStartMathTasks( unsigned portBASE_TYPE uxPriority )\r
 {\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, NULL );\r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, NULL );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index b6f02b1aacc95c02b3a0fd4cd679ba2ea34ae540..36e612f0842aa6119d7aedb99c1777342d8c7d72 100644 (file)
@@ -501,7 +501,7 @@ const unsigned char ucMACAddress[6] =
        #endif\r
 \r
        /* Create the task that handles the EMAC. */\r
-       xTaskCreate( ethernetif_input, ( signed char * ) "ETH_INT", configETHERNET_INPUT_TASK_STACK_SIZE, (void *)netif, configETHERNET_INPUT_TASK_PRIORITY, &xEthIntTask );\r
+       xTaskCreate( ethernetif_input, "ETH_INT", configETHERNET_INPUT_TASK_STACK_SIZE, (void *)netif, configETHERNET_INPUT_TASK_PRIORITY, &xEthIntTask );\r
        \r
        fec_irq_enable();\r
        MCF_FEC_ECR = MCF_FEC_ECR_ETHER_EN;\r
index 54210efb6b470d55599ba253da2457c83f573539..7097b3307c01d0f81a59fd7c28789b7a6f5e5f2e 100644 (file)
@@ -131,7 +131,7 @@ sys_arch_unprotect( sys_prot_t pval )
  */\r
 void\r
 sys_assert( const char *msg )\r
-{      \r
+{\r
        /*FSL:only needed for debugging\r
        printf(msg);\r
        printf("\n\r");\r
@@ -204,7 +204,7 @@ sys_thread_new(char *name, void ( *thread ) ( void *arg ), void *arg, int /*size
         THREAD_INIT( p );\r
 \r
         /* Now q points to a free element in the list. */\r
-        if( xTaskCreate( thread, (const signed char *const)name, stacksize, arg, prio, &p->pid ) == pdPASS )\r
+        if( xTaskCreate( thread, name, stacksize, arg, prio, &p->pid ) == pdPASS )\r
         {\r
             thread_hdl = p;\r
         }\r
@@ -257,7 +257,7 @@ sys_arch_thread_remove( sys_thread_t hdl )
             vPortFree( toremove );\r
         }\r
     }\r
-    /* We are done with accessing the shared datastructure. Release the \r
+    /* We are done with accessing the shared datastructure. Release the\r
      * resources.\r
      */\r
     vPortExitCritical(  );\r
@@ -489,7 +489,7 @@ sys_mbox_post( sys_mbox_t mbox, void *data )
 }\r
 \r
 /*FSL*/\r
-/*  \r
+/*\r
  *Try to post the "msg" to the mailbox. Returns ERR_MEM if this one\r
  *is full, else, ERR_OK if the "msg" is posted.\r
  */\r
index 1ff37d44e03d87c580f82a288144fca982ae5d93..bd7ff38fbcbc05149ffc7dd6811e4a5ee1268700 100644 (file)
@@ -55,9 +55,9 @@ static u16_t s_nextthread = 0;
 sys_mbox_t sys_mbox_new(int size)\r
 {\r
        xQueueHandle mbox;\r
-       \r
+\r
        ( void ) size;\r
-       \r
+\r
        mbox = xQueueCreate( archMESG_QUEUE_LENGTH, sizeof( void * ) );\r
 \r
 #if SYS_STATS\r
@@ -85,7 +85,7 @@ void sys_mbox_free(sys_mbox_t mbox)
 #if SYS_STATS\r
            lwip_stats.sys.mbox.err++;\r
 #endif /* SYS_STATS */\r
-                       \r
+\r
                // TODO notify the user of failure.\r
        }\r
 \r
@@ -117,11 +117,11 @@ err_t result;
    else {\r
       // could not post, queue must be full\r
       result = ERR_MEM;\r
-                       \r
+\r
 #if SYS_STATS\r
       lwip_stats.sys.mbox.err++;\r
 #endif /* SYS_STATS */\r
-                       \r
+\r
    }\r
 \r
    return result;\r
@@ -154,20 +154,20 @@ portTickType StartTime, EndTime, Elapsed;
        {\r
                msg = &dummyptr;\r
        }\r
-               \r
+\r
        if ( timeout != 0 )\r
        {\r
                if ( pdTRUE == xQueueReceive( mbox, &(*msg), timeout / portTICK_RATE_MS ) )\r
                {\r
                        EndTime = xTaskGetTickCount();\r
                        Elapsed = (EndTime - StartTime) * portTICK_RATE_MS;\r
-                       \r
+\r
                        return ( Elapsed );\r
                }\r
                else // timed out blocking for message\r
                {\r
                        *msg = NULL;\r
-                       \r
+\r
                        return SYS_ARCH_TIMEOUT;\r
                }\r
        }\r
@@ -176,8 +176,8 @@ portTickType StartTime, EndTime, Elapsed;
                while( pdTRUE != xQueueReceive( mbox, &(*msg), portMAX_DELAY ) ){} // time is arbitrary\r
                EndTime = xTaskGetTickCount();\r
                Elapsed = (EndTime - StartTime) * portTICK_RATE_MS;\r
-               \r
-               return ( Elapsed ); // return time blocked TODO test    \r
+\r
+               return ( Elapsed ); // return time blocked TODO test\r
        }\r
 }\r
 \r
@@ -213,17 +213,17 @@ sys_sem_t sys_sem_new(u8_t count)
        xSemaphoreHandle  xSemaphore;\r
 \r
        vSemaphoreCreateBinary( xSemaphore );\r
-       \r
+\r
        if( xSemaphore == NULL )\r
        {\r
-               \r
+\r
 #if SYS_STATS\r
       ++lwip_stats.sys.sem.err;\r
 #endif /* SYS_STATS */\r
-                       \r
+\r
                return SYS_SEM_NULL;    // TODO need assert\r
        }\r
-       \r
+\r
        if(count == 0)  // Means it can't be taken\r
        {\r
                xSemaphoreTake(xSemaphore,1);\r
@@ -235,7 +235,7 @@ sys_sem_t sys_sem_new(u8_t count)
                lwip_stats.sys.sem.max = lwip_stats.sys.sem.used;\r
        }\r
 #endif /* SYS_STATS */\r
-               \r
+\r
        return xSemaphore;\r
 }\r
 \r
@@ -267,8 +267,8 @@ portTickType StartTime, EndTime, Elapsed;
                {\r
                        EndTime = xTaskGetTickCount();\r
                        Elapsed = (EndTime - StartTime) * portTICK_RATE_MS;\r
-                       \r
-                       return (Elapsed); // return time blocked TODO test      \r
+\r
+                       return (Elapsed); // return time blocked TODO test\r
                }\r
                else\r
                {\r
@@ -281,8 +281,8 @@ portTickType StartTime, EndTime, Elapsed;
                EndTime = xTaskGetTickCount();\r
                Elapsed = (EndTime - StartTime) * portTICK_RATE_MS;\r
 \r
-               return ( Elapsed ); // return time blocked      \r
-               \r
+               return ( Elapsed ); // return time blocked\r
+\r
        }\r
 }\r
 \r
@@ -300,7 +300,7 @@ void sys_sem_free(sys_sem_t sem)
 #if SYS_STATS\r
       --lwip_stats.sys.sem.used;\r
 #endif /* SYS_STATS */\r
-                       \r
+\r
        vQueueDelete( sem );\r
 }\r
 \r
@@ -372,7 +372,7 @@ int result;
 \r
    if ( s_nextthread < SYS_THREAD_MAX )\r
    {\r
-      result = xTaskCreate( thread, ( signed portCHAR * ) name, stacksize, arg, prio, &CreatedTask );\r
+      result = xTaskCreate( thread, name, stacksize, arg, prio, &CreatedTask );\r
 \r
           // For each task created, store the task handle (pid) in the timers array.\r
           // This scheme doesn't allow for threads to be deleted\r
@@ -428,7 +428,7 @@ void sys_arch_unprotect(sys_prot_t pval)
  * Prints an assertion messages and aborts execution.\r
  */\r
 void sys_assert( const char *msg )\r
-{      \r
+{\r
        ( void ) msg;\r
        /*FSL:only needed for debugging\r
        printf(msg);\r
index 1b58aac4ea9aa276e899c34babe256372b2c01d2..5d1328fa325bacfe8c4d4c5212f841bc1ed85327 100644 (file)
@@ -134,7 +134,7 @@ static void low_level_init(struct netif *netif)
   netif->flags |= NETIF_FLAG_LINK_UP;\r
 \r
   /* Create the task that handles the EMAC. */\r
-  xTaskCreate( ethernetif_input, ( signed portCHAR * ) "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, (void *)netif, netifINTERFACE_TASK_PRIORITY, NULL );\r
+  xTaskCreate( ethernetif_input, "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, (void *)netif, netifINTERFACE_TASK_PRIORITY, NULL );\r
 }      \r
 \r
 \r
index c65e1f82b3ef188a82f91c5febfb2907f33fa141..8e07c13f05070ebac508dc0b1305821d77416786 100644 (file)
@@ -393,16 +393,16 @@ err_t xReturn = ERR_MEM;
 \r
        *pxMutex = xSemaphoreCreateMutex();\r
 \r
-       if( *pxMutex != NULL ) \r
+       if( *pxMutex != NULL )\r
        {\r
                xReturn = ERR_OK;\r
                SYS_STATS_INC_USED( mutex );\r
-       } \r
-       else \r
+       }\r
+       else\r
        {\r
                SYS_STATS_INC( mutex.err );\r
        }\r
-       \r
+\r
        return xReturn;\r
 }\r
 \r
@@ -505,7 +505,7 @@ xTaskHandle xCreatedTask;
 portBASE_TYPE xResult;\r
 sys_thread_t xReturn;\r
 \r
-       xResult = xTaskCreate( pxThread, ( signed char * ) pcName, iStackSize, pvArg, iPriority, &xCreatedTask );\r
+       xResult = xTaskCreate( pxThread, pcName, iStackSize, pvArg, iPriority, &xCreatedTask );\r
 \r
        if( xResult == pdPASS )\r
        {\r
index 6714cc35b6aef87e09cb4cac9262f29eb3e1a3fc..99ff96106500320d40a1039cc362ce558745286f 100644 (file)
@@ -327,7 +327,7 @@ unsigned long ulNetMask;
        /* Create a task that simulates an interrupt in a real system.  This will\r
        block waiting for packets, then send a message to the uIP task when data\r
        is available. */\r
-       xTaskCreate( prvInterruptSimulator, ( signed char * ) "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, ( configuIP_TASK_PRIORITY - 1 ), NULL );\r
+       xTaskCreate( prvInterruptSimulator, "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, ( configuIP_TASK_PRIORITY - 1 ), NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index dd136c0e25f81ccc31c691dc57e35c322642aaaf..8ba261e490299a6f311c345c05af4c4879fb69ba 100644 (file)
@@ -648,6 +648,6 @@ unsigned long ulNetMask;
        /* Create a task that simulates an interrupt in a real system.  This will\r
        block waiting for packets, then send a message to the uIP task when data\r
        is available. */\r
-       xTaskCreate( prvInterruptSimulator, ( signed char * ) "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, configMAC_ISR_SIMULATOR_PRIORITY, NULL );\r
+       xTaskCreate( prvInterruptSimulator, "MAC_ISR", configMINIMAL_STACK_SIZE, NULL, configMAC_ISR_SIMULATOR_PRIORITY, NULL );\r
 }\r
 \r
index bf4080039a645a37aa8ba71a8b3eb0bc01dfda8b..904ffc8a9f8a041e495733449664d3450fa2417a 100644 (file)
@@ -143,7 +143,7 @@ err_t xReturn;
                xReturn = ERR_OK;\r
        }\r
        else\r
-       {               \r
+       {\r
                /* The queue was already full. */\r
                xReturn = ERR_MEM;\r
                SYS_STATS_INC( mbox.err );\r
@@ -199,7 +199,7 @@ unsigned long ulReturn;
 \r
                        ulReturn = xElapsed;\r
                }\r
-               else \r
+               else\r
                {\r
                        /* Timed out. */\r
                        *ppvBuffer = NULL;\r
@@ -359,22 +359,22 @@ unsigned long ulReturn;
 /** Create a new mutex\r
  * @param mutex pointer to the mutex to create\r
  * @return a new mutex */\r
-err_t sys_mutex_new( sys_mutex_t *pxMutex ) \r
+err_t sys_mutex_new( sys_mutex_t *pxMutex )\r
 {\r
 err_t xReturn = ERR_MEM;\r
 \r
        *pxMutex = xSemaphoreCreateMutex();\r
 \r
-       if( *pxMutex != NULL ) \r
+       if( *pxMutex != NULL )\r
        {\r
                xReturn = ERR_OK;\r
                SYS_STATS_INC_USED( mutex );\r
-       } \r
-       else \r
+       }\r
+       else\r
        {\r
                SYS_STATS_INC( mutex.err );\r
        }\r
-       \r
+\r
        return xReturn;\r
 }\r
 \r
@@ -468,7 +468,7 @@ xTaskHandle xCreatedTask;
 portBASE_TYPE xResult;\r
 sys_thread_t xReturn;\r
 \r
-       xResult = xTaskCreate( pxThread, ( signed char * ) pcName, iStackSize, pvArg, iPriority, &xCreatedTask );\r
+       xResult = xTaskCreate( pxThread, pcName, iStackSize, pvArg, iPriority, &xCreatedTask );\r
 \r
        if( xResult == pdPASS )\r
        {\r
index 7ef16c98fc5aac4218cd1d7a0e2488f81a4b82e2..b553062aa2ffae0b40f8542bd1275e8703b43f60 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
  * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
  * documentation provides more details of the demo application tasks.\r
- * \r
- * Main.c also creates a task called "Check".  This only executes every three \r
- * seconds but has the highest priority so is guaranteed to get processor time.  \r
+ *\r
+ * Main.c also creates a task called "Check".  This only executes every three\r
+ * seconds but has the highest priority so is guaranteed to get processor time.\r
  * Its main function is to check that all the other tasks are still operational.\r
- * Each task (other than the "flash" tasks) maintains a unique count that is \r
- * incremented each time the task successfully completes its function.  Should \r
- * any error occur within such a task the count is permanently halted.  The \r
+ * Each task (other than the "flash" tasks) maintains a unique count that is\r
+ * incremented each time the task successfully completes its function.  Should\r
+ * any error occur within such a task the count is permanently halted.  The\r
  * check task inspects the count of each task to ensure it has changed since\r
- * the last time the check task executed.  If all the count variables have \r
+ * the last time the check task executed.  If all the count variables have\r
  * changed all the tasks are still executing error free, and the check task\r
- * toggles the onboard LED.  Should any task contain an error at any time \r
+ * toggles the onboard LED.  Should any task contain an error at any time\r
  * the LED toggle rate will change from 3 seconds to 500ms.\r
  *\r
- * To check the operation of the memory allocator the check task also \r
- * dynamically creates a task before delaying, and deletes it again when it \r
+ * To check the operation of the memory allocator the check task also\r
+ * dynamically creates a task before delaying, and deletes it again when it\r
  * wakes.  If memory cannot be allocated for the new task the call to xTaskCreate\r
  * will fail and an error is signalled.  The dynamically created task itself\r
  * allocates and frees memory just to give the allocator a bit more exercise.\r
@@ -125,7 +125,7 @@ and mainCOM_TEST_LED + 1 is toggles on each character Rx. */
 \r
 /* LED that is toggled by the check task.  The check task periodically checks\r
 that all the other tasks are operating without error.  If no errors are found\r
-the LED is toggled with mainCHECK_PERIOD frequency.  If an error is found \r
+the LED is toggled with mainCHECK_PERIOD frequency.  If an error is found\r
 the the toggle rate increases to mainERROR_CHECK_PERIOD. */\r
 #define mainCHECK_TASK_LED                             ( 5 )\r
 #define mainCHECK_PERIOD                               ( ( portTickType ) 3000 / portTICK_RATE_MS  )\r
@@ -178,10 +178,10 @@ int main( void )
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
 \r
        /* Start the 'Check' task. */\r
-       xTaskCreate( vErrorChecks, ( signed char * )"Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
-       /* In this port, to use preemptive scheduler define configUSE_PREEMPTION \r
-       as 1 in portmacro.h.  To use the cooperative scheduler define \r
+       /* In this port, to use preemptive scheduler define configUSE_PREEMPTION\r
+       as 1 in portmacro.h.  To use the cooperative scheduler define\r
        configUSE_PREEMPTION as 0. */\r
        vTaskStartScheduler();\r
 \r
@@ -194,14 +194,14 @@ int main( void )
  * Cycle for ever, delaying then checking all the other tasks are still\r
  * operating without error.  If an error is detected then the delay period\r
  * is decreased from mainCHECK_PERIOD to mainERROR_CHECK_PERIOD so\r
- * the on board LED flash rate will increase. \r
+ * the on board LED flash rate will increase.\r
  *\r
  * In addition to the standard tests the memory allocator is tested through\r
- * the dynamic creation and deletion of a task each cycle.  Each time the \r
+ * the dynamic creation and deletion of a task each cycle.  Each time the\r
  * task is created memory must be allocated for its stack.  When the task is\r
- * deleted this memory is returned to the heap.  If the task cannot be created \r
+ * deleted this memory is returned to the heap.  If the task cannot be created\r
  * then it is likely that the memory allocation failed.   In addition the\r
- * dynamically created task allocates and frees memory while it runs. \r
+ * dynamically created task allocates and frees memory while it runs.\r
  */\r
 static void vErrorChecks( void *pvParameters )\r
 {\r
@@ -220,28 +220,28 @@ portTickType xLastWakeTime;
                later that it has changed. */\r
                ulMemCheckTaskRunningCount = mainCOUNT_INITIAL_VALUE;\r
 \r
-               /* Dynamically create a task - passing ulMemCheckTaskRunningCount as a \r
-               parameter. */           \r
+               /* Dynamically create a task - passing ulMemCheckTaskRunningCount as a\r
+               parameter. */\r
                xCreatedTask = mainNO_TASK;\r
-               if( xTaskCreate( vMemCheckTask, ( signed char * ) "MEM_CHECK", configMINIMAL_STACK_SIZE, ( void * ) &ulMemCheckTaskRunningCount, tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
+               if( xTaskCreate( vMemCheckTask, "MEM_CHECK", configMINIMAL_STACK_SIZE, ( void * ) &ulMemCheckTaskRunningCount, tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
                {\r
                        /* Could not create the task - we have probably run out of heap. */\r
                        xDelayPeriod = mainERROR_CHECK_PERIOD;\r
                }\r
 \r
 \r
-               /* Delay until it is time to execute again.  The delay period is \r
+               /* Delay until it is time to execute again.  The delay period is\r
                shorter following an error. */\r
                vTaskDelayUntil( &xLastWakeTime, xDelayPeriod );\r
 \r
-       \r
+\r
                /* Delete the dynamically created task. */\r
                if( xCreatedTask != mainNO_TASK )\r
                {\r
                        vTaskDelete( xCreatedTask );\r
                }\r
 \r
-               /* Check all the standard demo application tasks are executing without \r
+               /* Check all the standard demo application tasks are executing without\r
                error.  ulMemCheckTaskRunningCount is checked to ensure it was\r
                modified by the task just deleted. */\r
                if( prvCheckOtherTasksAreStillRunning( ulMemCheckTaskRunningCount ) != pdPASS )\r
@@ -257,7 +257,7 @@ portTickType xLastWakeTime;
 \r
 /*\r
  *     Check each set of tasks in turn to see if they have experienced any\r
- *     error conditions. \r
+ *     error conditions.\r
  */\r
 static long prvCheckOtherTasksAreStillRunning( unsigned long ulMemCheckTaskCount )\r
 {\r
@@ -319,10 +319,10 @@ static long lErrorOccurred = pdFALSE;
        vErrorChecks task to check the operation of the memory allocator.  Each time\r
        the task is created memory is allocated for the stack and TCB.  Each time\r
        the task is deleted this memory is returned to the heap.  This task itself\r
-       exercises the allocator by allocating and freeing blocks. \r
-       \r
-       The task executes at the idle priority so does not require a delay. \r
-       \r
+       exercises the allocator by allocating and freeing blocks.\r
+\r
+       The task executes at the idle priority so does not require a delay.\r
+\r
        pulMemCheckTaskRunningCounter is incremented each cycle to indicate to the\r
        vErrorChecks() task that this task is still executing without error. */\r
 \r
@@ -337,12 +337,12 @@ static long lErrorOccurred = pdFALSE;
                }\r
                else\r
                {\r
-                       /* Reset the count so an error is detected by the \r
+                       /* Reset the count so an error is detected by the\r
                        prvCheckOtherTasksAreStillRunning() function. */\r
                        *pulMemCheckTaskRunningCounter = mainCOUNT_INITIAL_VALUE;\r
                }\r
 \r
-               /* Allocate some memory - just to give the allocator some extra \r
+               /* Allocate some memory - just to give the allocator some extra\r
                exercise.  This has to be in a critical section to ensure the\r
                task does not get deleted while it has memory allocated. */\r
                vTaskSuspendAll();\r
index 3fe943c9382e6d8f3c609b0b930d3402e3322edc..802c9c53b5e9cb52e79704e24311fec059ac4adc 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
  * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
  * documentation provides more details of the demo application tasks.\r
- * \r
+ *\r
  * In addition to the standard demo tasks, the follow demo specific tasks are\r
  * create:\r
  *\r
- * The "Check" task.  This only executes every three seconds but has the highest \r
- * priority so is guaranteed to get processor time.  Its main function is to \r
- * check that all the other tasks are still operational.  Most tasks maintain \r
- * a unique count that is incremented each time the task successfully completes \r
- * its function.  Should any error occur within such a task the count is \r
- * permanently halted.  The check task inspects the count of each task to ensure \r
- * it has changed since the last time the check task executed.  If all the count \r
- * variables have changed all the tasks are still executing error free, and the \r
- * check task toggles the onboard LED.  Should any task contain an error at any time \r
+ * The "Check" task.  This only executes every three seconds but has the highest\r
+ * priority so is guaranteed to get processor time.  Its main function is to\r
+ * check that all the other tasks are still operational.  Most tasks maintain\r
+ * a unique count that is incremented each time the task successfully completes\r
+ * its function.  Should any error occur within such a task the count is\r
+ * permanently halted.  The check task inspects the count of each task to ensure\r
+ * it has changed since the last time the check task executed.  If all the count\r
+ * variables have changed all the tasks are still executing error free, and the\r
+ * check task toggles the onboard LED.  Should any task contain an error at any time\r
  * the LED toggle rate will change from 3 seconds to 500ms.\r
  *\r
  * The "Register Check" tasks.  These tasks fill the CPU registers with known\r
@@ -88,7 +88,7 @@
  * context switch mechanism.  The register check tasks operate at low priority\r
  * so are switched in and out frequently.\r
  *\r
- * The "Trace Utility" task.  This can be used to obtain trace and debug \r
+ * The "Trace Utility" task.  This can be used to obtain trace and debug\r
  * information via UART5.\r
  */\r
 \r
 #include "taskutility.h"\r
 #include "partest.h"\r
 #include "crflash.h"\r
-       \r
+\r
 /* Demo task priorities. */\r
 #define mainWATCHDOG_TASK_PRIORITY             ( tskIDLE_PRIORITY + 5 )\r
 #define mainCHECK_TASK_PRIORITY                        ( tskIDLE_PRIORITY + 4 )\r
 /* Baud rate used by the COM test tasks. */\r
 #define mainCOM_TEST_BAUD_RATE                 ( ( unsigned portLONG ) 19200 )\r
 \r
-/* The frequency at which the 'Check' tasks executes.  See the comments at the \r
+/* The frequency at which the 'Check' tasks executes.  See the comments at the\r
 top of the page.  When the system is operating error free the 'Check' task\r
 toggles an LED every three seconds.  If an error is discovered in any task the\r
-rate is increased to 500 milliseconds.  [in this case the '*' characters on the \r
+rate is increased to 500 milliseconds.  [in this case the '*' characters on the\r
 LCD represent LEDs]*/\r
 #define mainNO_ERROR_CHECK_DELAY               ( ( portTickType ) 3000 / portTICK_RATE_MS  )\r
 #define mainERROR_CHECK_DELAY                  ( ( portTickType ) 500 / portTICK_RATE_MS  )\r
@@ -157,10 +157,10 @@ LCD represent LEDs]*/
 \r
 /*---------------------------------------------------------------------------*/\r
 \r
-/* \r
+/*\r
  * The function that implements the Check task.  See the comments at the head\r
  * of the page for implementation details.\r
- */ \r
+ */\r
 static void prvErrorChecks( void *pvParameters );\r
 \r
 /*\r
@@ -169,8 +169,8 @@ static void prvErrorChecks( void *pvParameters );
  */\r
 static portSHORT prvCheckOtherTasksAreStillRunning( void );\r
 \r
-/* \r
- * Setup the microcontroller as used by this demo. \r
+/*\r
+ * Setup the microcontroller as used by this demo.\r
  */\r
 static void prvSetupHardware( void );\r
 \r
@@ -185,7 +185,7 @@ static void vSecondRegisterTestTask( void *pvParameters );
 \r
 /*---------------------------------------------------------------------------*/\r
 \r
-/* The variable that is set to true should an error be found in one of the \r
+/* The variable that is set to true should an error be found in one of the\r
 register test tasks. */\r
 unsigned portLONG ulRegTestError = pdFALSE;\r
 \r
@@ -194,48 +194,48 @@ unsigned portLONG ulRegTestError = pdFALSE;
 /* Start all the demo application tasks, then start the scheduler. */\r
 void main(void)\r
 {\r
-       /* Initialise the hardware ready for the demo. */       \r
+       /* Initialise the hardware ready for the demo. */\r
        prvSetupHardware();\r
 \r
        /* Start the standard demo application tasks. */\r
-       vStartLEDFlashTasks( mainLED_TASK_PRIORITY );   \r
+       vStartLEDFlashTasks( mainLED_TASK_PRIORITY );\r
        vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED - 1 );\r
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
-       vStartBlockingQueueTasks ( mainQUEUE_BLOCK_PRIORITY );  \r
-       vStartDynamicPriorityTasks();   \r
-       vStartMathTasks( tskIDLE_PRIORITY );    \r
+       vStartBlockingQueueTasks ( mainQUEUE_BLOCK_PRIORITY );\r
+       vStartDynamicPriorityTasks();\r
+       vStartMathTasks( tskIDLE_PRIORITY );\r
        vStartGenericQueueTasks( mainGENERIC_QUEUE_PRIORITY );\r
        vStartQueuePeekTasks();\r
        vCreateBlockTimeTasks();\r
        vStartFlashCoRoutines( mainNUM_FLASH_CO_ROUTINES );\r
 \r
        /* Start the 'Check' task which is defined in this file. */\r
-       xTaskCreate( prvErrorChecks, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );    \r
+       xTaskCreate( prvErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the 'Register Test' tasks as described at the top of this file. */\r
-       xTaskCreate( vFirstRegisterTestTask, ( signed portCHAR * ) "Reg1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vSecondRegisterTestTask, ( signed portCHAR * ) "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vFirstRegisterTestTask, "Reg1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vSecondRegisterTestTask, "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
-       /* Start the task that write trace information to the UART. */  \r
+       /* Start the task that write trace information to the UART. */\r
        vUtilityStartTraceTask( mainUTILITY_TASK_PRIORITY );\r
 \r
        /* If we are going to service the watchdog from within a task, then create\r
-       the task here. */       \r
-       #if WATCHDOG == WTC_IN_TASK     \r
+       the task here. */\r
+       #if WATCHDOG == WTC_IN_TASK\r
                vStartWatchdogTask( mainWATCHDOG_TASK_PRIORITY );\r
-       #endif          \r
-       \r
+       #endif\r
+\r
        /* The suicide tasks must be started last as they record the number of other\r
        tasks that exist within the system.  The value is then used to ensure at run\r
        time the number of tasks that exists is within expected bounds. */\r
        vCreateSuicidalTasks( mainDEATH_PRIORITY );\r
 \r
        /* Now start the scheduler.  Following this call the created tasks should\r
-       be executing. */        \r
+       be executing. */\r
        vTaskStartScheduler( );\r
-       \r
-       /* vTaskStartScheduler() will only return if an error occurs while the \r
+\r
+       /* vTaskStartScheduler() will only return if an error occurs while the\r
        idle task is being created. */\r
        for( ;; );\r
 }\r
@@ -254,7 +254,7 @@ portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY, xLastExecutionTime;
        for( ;; )\r
        {\r
                /* Wait until it is time to check again.  The time we wait here depends\r
-               on whether an error has been detected or not.  When an error is \r
+               on whether an error has been detected or not.  When an error is\r
                detected the time is shortened resulting in a faster LED flash rate. */\r
                /* Perform this check every mainCHECK_DELAY milliseconds. */\r
                vTaskDelayUntil( &xLastExecutionTime, xDelayPeriod );\r
@@ -262,7 +262,7 @@ portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY, xLastExecutionTime;
                /* See if the other tasks are all ok. */\r
                if( prvCheckOtherTasksAreStillRunning() != pdPASS )\r
                {\r
-                       /* An error occurred in one of the tasks so shorten the delay \r
+                       /* An error occurred in one of the tasks so shorten the delay\r
                        period - which has the effect of increasing the frequency of the\r
                        LED toggle. */\r
                        xDelayPeriod = mainERROR_CHECK_DELAY;\r
@@ -279,7 +279,7 @@ static portSHORT prvCheckOtherTasksAreStillRunning( void )
 portBASE_TYPE lReturn = pdPASS;\r
 \r
        /* The demo tasks maintain a count that increments every cycle of the task\r
-       provided that the task has never encountered an error.  This function \r
+       provided that the task has never encountered an error.  This function\r
        checks the counts maintained by the tasks to ensure they are still being\r
        incremented.  A count remaining at the same value between calls therefore\r
        indicates that an error has been detected. */\r
@@ -293,42 +293,42 @@ portBASE_TYPE lReturn = pdPASS;
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if( xAreSemaphoreTasksStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if( xAreBlockingQueuesStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if( xAreDynamicPriorityTasksStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if( xAreMathsTaskStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if( xIsCreateTaskStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if( xAreBlockTimeTestTasksStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if ( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
        }\r
-       \r
+\r
        if ( xAreQueuePeekTasksStillRunning() != pdTRUE )\r
        {\r
                lReturn = pdFAIL;\r
@@ -356,7 +356,7 @@ static void prvSetupHardware( void )
        vParTestInitialise();\r
 \r
        /* If we are going to use the watchdog, then initialise it now. */\r
-       #if WATCHDOG != WTC_NONE        \r
+       #if WATCHDOG != WTC_NONE\r
                InitWatchdog();\r
        #endif\r
 }\r
@@ -429,7 +429,7 @@ extern volatile unsigned portLONG ulCriticalNesting;
                        LDI     #0xbbbbbbbb, R10\r
                        LDI     #0xcccccccc, R11\r
                        LDI     #0xdddddddd, R12\r
-                       \r
+\r
                        ;Check each register still contains the expected value.\r
                        LDI #0x11111111, R13\r
                        CMP R13, R0\r
@@ -488,7 +488,7 @@ extern volatile unsigned portLONG ulCriticalNesting;
                First_Set_Error:\r
 \r
                        ; Latch that an error has occurred.\r
-                       LDI #_ulRegTestError, R0                        \r
+                       LDI #_ulRegTestError, R0\r
                        LDI #0x00000001, R1\r
                        ST R1, @R0\r
 \r
@@ -529,7 +529,7 @@ extern volatile unsigned portLONG ulCriticalNesting;
                        LDI     #0xbbbbbbbb, R11\r
                        LDI     #0xcccccccc, R12\r
                        LDI     #0xdddddddd, R0\r
-                       \r
+\r
                        ;Check each register still contains the expected value.\r
                        LDI #0x11111111, R13\r
                        CMP R13, R1\r
@@ -592,7 +592,7 @@ extern volatile unsigned portLONG ulCriticalNesting;
                Second_Set_Error:\r
 \r
                        ; Latch that an error has occurred.\r
-                       LDI #_ulRegTestError, R0                        \r
+                       LDI #_ulRegTestError, R0\r
                        LDI #0x00000001, R1\r
                        ST R1, @R0\r
 \r
index 0d462263129e3e206a33feeb4a9a475be1bd9b5b..9844ee40c254bdb897c1aaaddf1528e9c9bfef02 100644 (file)
@@ -4,7 +4,7 @@
 /*                              (C) Fujitsu Microelectronics Europe GmbH                                        */\r
 /*------------------------------------------------------------------------\r
   taskutility.C\r
-  - \r
+  -\r
 -------------------------------------------------------------------------*/\r
 #include "mb91467d.h"\r
 #include "vectors.h"\r
@@ -133,7 +133,7 @@ void vUtilityStartTraceTask( unsigned portBASE_TYPE uxPriority )
                vInitUart5();\r
                portENTER_CRITICAL();\r
 \r
-               xTaskCreate( vUART5Task, (signed portCHAR *) "UART5", configMINIMAL_STACK_SIZE * 2, ( void * ) NULL, uxPriority, NULL );\r
+               xTaskCreate( vUART5Task, "UART5", configMINIMAL_STACK_SIZE * 2, ( void * ) NULL, uxPriority, NULL );\r
        }\r
 }\r
 \r
@@ -163,7 +163,7 @@ static void vUART5Task( void *pvParameters )
                switch( ch )\r
                {\r
                        case '1':\r
-                               vTaskList( (signed char *) buff );\r
+                               vTaskList( buff );\r
                                Puts5( "\n\rThe current task list is as follows...." );\r
                                Puts5( "\n\r----------------------------------------------" );\r
                                Puts5( "\n\rName                  State  Priority  Stack   Number" );\r
index e75d80bf8be1c253b62f24264c3eb601cd7fe21c..7660b4205306e3bf5f1e354f10c2e9e4281edb7c 100644 (file)
@@ -14,7 +14,7 @@
 \r
 /*---------------------------------------------------------------------------\r
  * Setup Watchdog\r
- *---------------------------------------------------------------------------*/ \r
+ *---------------------------------------------------------------------------*/\r
 #if WATCHDOG != WTC_NONE\r
 void InitWatchdog(void)\r
 {\r
@@ -25,32 +25,32 @@ void InitWatchdog(void)
 /*---------------------------------------------------------------------------\r
  * The below task clears the watchdog and blocks itself for WTC_CLR_PER ticks.\r
  *---------------------------------------------------------------------------*/\r
-#if WATCHDOG == WTC_IN_TASK    \r
+#if WATCHDOG == WTC_IN_TASK\r
 static void prvWatchdogTask    ( void *pvParameters )\r
 {\r
        const portTickType xFrequency = WTC_CLR_PER;\r
        portTickType xLastWakeTime;\r
 \r
-       /* Get currrent tick count */ \r
+       /* Get currrent tick count */\r
        xLastWakeTime = xTaskGetTickCount();\r
-       \r
+\r
        for( ; ; )\r
        {\r
                Kick_Watchdog();\r
-                          \r
-               /* Block the task for WTC_CLR_PER ticks (300 ms) at watchdog overflow \r
-               period of WTC_PER_2_16 CLKRC cycles (655.36 ms) */ \r
+\r
+               /* Block the task for WTC_CLR_PER ticks (300 ms) at watchdog overflow\r
+               period of WTC_PER_2_16 CLKRC cycles (655.36 ms) */\r
                vTaskDelayUntil( &xLastWakeTime, xFrequency );\r
-       } \r
+       }\r
 }\r
 #endif\r
 \r
 /*---------------------------------------------------------------------------\r
  * The below function creates hardware watchdog task.\r
- *---------------------------------------------------------------------------*/ \r
-#if WATCHDOG == WTC_IN_TASK    \r
+ *---------------------------------------------------------------------------*/\r
+#if WATCHDOG == WTC_IN_TASK\r
 void vStartWatchdogTask( unsigned portSHORT uxPriority )\r
 {\r
-       xTaskCreate( prvWatchdogTask , ( signed portCHAR * ) "KickWTC",   portMINIMAL_STACK_SIZE, ( void * ) NULL, uxPriority, ( xTaskHandle * ) NULL );        \r
+       xTaskCreate( prvWatchdogTask , "KickWTC",   portMINIMAL_STACK_SIZE, ( void * ) NULL, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 #endif\r
index 171f0460d29d08699e44325c20a4515051ba3bb2..440ffb1b28e0b26e7424972064571c05a34675d3 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
  * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
  * documentation provides more details of the demo application tasks.\r
- * \r
+ *\r
  * In addition to the standard demo tasks, the follow demo specific tasks are\r
  * create:\r
  *\r
- * The "Check" task.  This only executes every three seconds but has the highest \r
- * priority so is guaranteed to get processor time.  Its main function is to \r
- * check that all the other tasks are still operational.  Most tasks maintain \r
- * a unique count that is incremented each time the task successfully completes \r
- * its function.  Should any error occur within such a task the count is \r
- * permanently halted.  The check task inspects the count of each task to ensure \r
- * it has changed since the last time the check task executed.  If all the count \r
- * variables have changed all the tasks are still executing error free, and the \r
- * check task toggles the onboard LED.  Should any task contain an error at any time \r
+ * The "Check" task.  This only executes every three seconds but has the highest\r
+ * priority so is guaranteed to get processor time.  Its main function is to\r
+ * check that all the other tasks are still operational.  Most tasks maintain\r
+ * a unique count that is incremented each time the task successfully completes\r
+ * its function.  Should any error occur within such a task the count is\r
+ * permanently halted.  The check task inspects the count of each task to ensure\r
+ * it has changed since the last time the check task executed.  If all the count\r
+ * variables have changed all the tasks are still executing error free, and the\r
+ * check task toggles the onboard LED.  Should any task contain an error at any time\r
  * the LED toggle rate will change from 3 seconds to 500ms.\r
  *\r
- * The "Trace Utility" task.  This can be used to obtain trace and debug \r
+ * The "Trace Utility" task.  This can be used to obtain trace and debug\r
  * information via UART1.\r
  */\r
 \r
 /* Baud rate used by the COM test tasks. */\r
 #define mainCOM_TEST_BAUD_RATE ( ( unsigned long ) 19200 )\r
 \r
-/* The frequency at which the 'Check' tasks executes.  See the comments at the \r
+/* The frequency at which the 'Check' tasks executes.  See the comments at the\r
 top of the page.  When the system is operating error free the 'Check' task\r
 toggles an LED every three seconds.  If an error is discovered in any task the\r
-rate is increased to 500 milliseconds.  [in this case the '*' characters on the \r
+rate is increased to 500 milliseconds.  [in this case the '*' characters on the\r
 LCD represent LED's] */\r
 #define mainNO_ERROR_CHECK_DELAY       ( (portTickType) 3000 / portTICK_RATE_MS )\r
 #define mainERROR_CHECK_DELAY          ( (portTickType) 500 / portTICK_RATE_MS )\r
@@ -144,7 +144,7 @@ LCD represent LED's] */
 \r
 /*-----------------------------------------------------------*/\r
 \r
-/* \r
+/*\r
  * The function that implements the Check task.  See the comments at the head\r
  * of the page for implementation details.\r
  */\r
@@ -176,7 +176,7 @@ void main( void )
 \r
        /* Start the standard demo application tasks. */\r
        vStartLEDFlashTasks( mainLED_TASK_PRIORITY );\r
-       vStartIntegerMathTasks( tskIDLE_PRIORITY );     \r
+       vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
        vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
        vStartBlockingQueueTasks( mainQUEUE_BLOCK_PRIORITY );\r
@@ -193,7 +193,7 @@ void main( void )
        #endif\r
 \r
        /* Start the 'Check' task which is defined in this file. */\r
-       xTaskCreate( vErrorChecks, (signed char *) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be started last as they record the number of other\r
        tasks that exist within the system.  The value is then used to ensure at run\r
@@ -201,10 +201,10 @@ void main( void )
        vCreateSuicidalTasks( mainDEATH_PRIORITY );\r
 \r
        /* Now start the scheduler.  Following this call the created tasks should\r
-       be executing. */        \r
+       be executing. */\r
        vTaskStartScheduler( );\r
-       \r
-       /* vTaskStartScheduler() will only return if an error occurs while the \r
+\r
+       /* vTaskStartScheduler() will only return if an error occurs while the\r
        idle task is being created. */\r
        for( ;; );\r
 }\r
@@ -234,14 +234,14 @@ portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
        for( ;; )\r
        {\r
                /* Wait until it is time to check again.  The time we wait here depends\r
-               on whether an error has been detected or not.  When an error is \r
+               on whether an error has been detected or not.  When an error is\r
                detected the time is shortened resulting in a faster LED flash rate. */\r
                vTaskDelay( xDelayPeriod );\r
 \r
                /* See if the other tasks are all ok. */\r
                if( prvCheckOtherTasksAreStillRunning() != pdPASS )\r
                {\r
-                       /* An error occurred in one of the tasks so shorten the delay \r
+                       /* An error occurred in one of the tasks so shorten the delay\r
                        period - which has the effect of increasing the frequency of the\r
                        LED toggle. */\r
                        xDelayPeriod = mainERROR_CHECK_DELAY;\r
@@ -258,7 +258,7 @@ static short prvCheckOtherTasksAreStillRunning( void )
        static short    sNoErrorFound = pdTRUE;\r
 \r
        /* The demo tasks maintain a count that increments every cycle of the task\r
-       provided that the task has never encountered an error.  This function \r
+       provided that the task has never encountered an error.  This function\r
        checks the counts maintained by the tasks to ensure they are still being\r
        incremented.  A count remaining at the same value between calls therefore\r
        indicates that an error has been detected.  Only tasks that do not flash\r
index fe10964c9332df7bdf9c9b0cc305cfbc1d50d3d4..c37b8b87e47dadd3e0370696ad7ca982c5d378a2 100644 (file)
@@ -8,7 +8,7 @@
 \r
 /*------------------------------------------------------------------------\r
   taskutility.C\r
-  - \r
+  -\r
 -------------------------------------------------------------------------*/\r
 \r
 /*************************@INCLUDE_START************************/\r
@@ -138,7 +138,7 @@ void vUtilityStartTraceTask( unsigned portBASE_TYPE uxPriority )
                portENTER_CRITICAL();\r
                InitUart0();\r
                portENTER_CRITICAL();\r
-               xTaskCreate( vUART0Task, (signed portCHAR *) "UART1", configMINIMAL_STACK_SIZE * 3, ( void * ) NULL, uxPriority, &UART_TaskHandle );\r
+               xTaskCreate( vUART0Task, "UART1", configMINIMAL_STACK_SIZE * 3, ( void * ) NULL, uxPriority, &UART_TaskHandle );\r
        }\r
 }\r
 \r
@@ -171,7 +171,7 @@ static void vUART0Task( void *pvParameters )
                switch( ch )\r
                {\r
                        case '1':\r
-                               vTaskList( (signed char *) buff );\r
+                               vTaskList( buff );\r
                                Puts0( "\n\rThe current task list is as follows...." );\r
                                Puts0( "\n\r----------------------------------------------" );\r
                                Puts0( "\n\rName          State  Priority  Stack   Number" );\r
index 84d5f730fe25f10b5cf33def95015151a73d5633..b65f376cc9f6ddec32294ec203b94adaabf55c3a 100644 (file)
@@ -58,7 +58,7 @@ static void prvWatchdogTask( void *pvParameters )
 #if WATCHDOG == WTC_IN_TASK\r
 void vStartWatchdogTask( unsigned portBASE_TYPE uxPriority )\r
 {\r
-       xTaskCreate( prvWatchdogTask, (signed portCHAR *) "KickWTC", portMINIMAL_STACK_SIZE, ( void * ) NULL, uxPriority, ( xTaskHandle * ) NULL );\r
+       xTaskCreate( prvWatchdogTask, "KickWTC", portMINIMAL_STACK_SIZE, ( void * ) NULL, uxPriority, ( xTaskHandle * ) NULL );\r
 }\r
 \r
 #endif\r
index 16717c6a93140f1658a2003a494864016e0bf7a3..b01118a08277d7ca8b423704d7bc77e6d0b8a5ce 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -126,12 +126,12 @@ signed short sLEDTask;
        for( sLEDTask = 0; sLEDTask < ledNUM_OF_LED_TASKS; ++sLEDTask )\r
        {\r
                /* Spawn the task. */\r
-               xTaskCreate( vLEDFlashTask, ( signed char * ) "LEDt", configMINIMAL_STACK_SIZE, ( void * ) sLEDTask, ( tskIDLE_PRIORITY + 1 ), &( xFlashTaskHandles[ sLEDTask ] ) );\r
+               xTaskCreate( vLEDFlashTask, "LEDt", configMINIMAL_STACK_SIZE, ( void * ) sLEDTask, ( tskIDLE_PRIORITY + 1 ), &( xFlashTaskHandles[ sLEDTask ] ) );\r
        }\r
 \r
        /* Create the task in which the co-routines run.  The co-routines themselves\r
        are created within the task. */\r
-       xTaskCreate( vLEDCoRoutineControlTask, ( signed char * ) "LEDc", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xCoroutineTask );\r
+       xTaskCreate( vLEDCoRoutineControlTask, "LEDc", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xCoroutineTask );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -190,7 +190,7 @@ unsigned short usLED;
        delay is only half the total period. */\r
        xFlashRate /= ( portTickType ) 2;\r
 \r
-       /* We need to initialise xLastFlashTime prior to the first call to \r
+       /* We need to initialise xLastFlashTime prior to the first call to\r
        vTaskDelayUntil(). */\r
        xLastFlashTime = xTaskGetTickCount();\r
 \r
index 7be5228f36a9ffa95c516cfbcc74f9fbc24eaf4f..9624f2c642ad2b41ec4885bb02cc1fc2fb6ffb4f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
  *\r
  * See http://www.freertos.org/Documentation/FreeRTOS-documentation-and-book.html\r
- * for an introductory guide to using real time kernels, and FreeRTOS in \r
- * particular. \r
+ * for an introductory guide to using real time kernels, and FreeRTOS in\r
+ * particular.\r
  *\r
  *****\r
- *  \r
+ *\r
  * The DICE-KIT-16FX has two 7 segment displays and two buttons that can\r
  * generate interrupts.  This example uses this IO as follows:\r
  *\r
  *\r
- * - Left 7 segment display - \r
+ * - Left 7 segment display -\r
  *\r
- * 7 'flash' tasks are created, each of which toggles a single segment of the \r
- * left display.  Each task executes at a fixed frequency, with a different \r
+ * 7 'flash' tasks are created, each of which toggles a single segment of the\r
+ * left display.  Each task executes at a fixed frequency, with a different\r
  * frequency being used by each task.\r
  *\r
  * When button SW2 is pressed an interrupt is generated that wakes up a 'dice'\r
  * task.  The dice task suspends the 7 tasks that are accessing the left display\r
  * before simulating a dice being thrown by generating a random number between\r
  * 1 and 6.  After the number has been generated the task sleeps for 5 seconds,\r
- * if SW2 is pressed again within the 5 seconds another random number is \r
+ * if SW2 is pressed again within the 5 seconds another random number is\r
  * generated, if SW2 is not pressed within the 5 seconds then the 7 tasks are\r
  * un-suspended and will once again toggle the segments of the left hand display.\r
  *\r
  * Only one dice task is actually defined.  Two instances of this single\r
  * definition are created, the first to simulate a dice being thrown on the left\r
  * display, and the other to simulate a dice being thrown on the right display.\r
- * The task parameter is used to let the dice tasks know which display to \r
+ * The task parameter is used to let the dice tasks know which display to\r
  * control.\r
  *\r
  * Both dice tasks and the flash tasks operate completely independently under\r
  * the control of FreeRTOS.  11 tasks and 7 co-routines are created in total,\r
- * including the idle task. \r
+ * including the idle task.\r
  *\r
  * The co-routines all execute within a single low priority task.\r
  *\r
@@ -160,10 +160,10 @@ void main( void )
        vCreateFlashTasksAndCoRoutines();\r
 \r
        /* Create a 'dice' task to control the left hand display. */\r
-       xTaskCreate( vDiceTask, ( signed char * ) "Dice1", configMINIMAL_STACK_SIZE, ( void * ) configLEFT_DISPLAY, mainDICE_PRIORITY, NULL );\r
+       xTaskCreate( vDiceTask, "Dice1", configMINIMAL_STACK_SIZE, ( void * ) configLEFT_DISPLAY, mainDICE_PRIORITY, NULL );\r
 \r
        /* Create a 'dice' task to control the right hand display. */\r
-       xTaskCreate( vDiceTask, ( signed char * ) "Dice2", configMINIMAL_STACK_SIZE, ( void * ) configRIGHT_DISPLAY, mainDICE_PRIORITY, NULL );\r
+       xTaskCreate( vDiceTask, "Dice2", configMINIMAL_STACK_SIZE, ( void * ) configRIGHT_DISPLAY, mainDICE_PRIORITY, NULL );\r
 \r
        /* Start the scheduler running. */\r
        vTaskStartScheduler();\r
@@ -181,7 +181,7 @@ static void prvSetupHardware( void )
        scheduler has been started. */\r
        InitIrqLevels();\r
        portDISABLE_INTERRUPTS();\r
-       __set_il( 7 );  \r
+       __set_il( 7 );\r
 \r
        /* Set Port3 as output (7Segment Display). */\r
        DDR03  = 0xff;\r
@@ -210,7 +210,7 @@ static void prvSetupHardware( void )
 \r
        /* Enable external interrupt 8. */\r
        PIER00_IE0 = 1;\r
-       \r
+\r
        /* LB0, LA0 = 11 -> falling edge. */\r
        ELVRL1_LB8 = 1;\r
        ELVRL1_LA8 = 1;\r
@@ -221,13 +221,13 @@ static void prvSetupHardware( void )
 \r
        /* Enable external interrupt 9. */\r
        PIER00_IE1 = 1;\r
-       \r
+\r
        /* LB1, LA1 = 11 -> falling edge. */\r
        ELVRL1_LB9 = 1;\r
        ELVRL1_LA9 = 1;\r
 \r
        /* Reset and enable the interrupt request. */\r
        EIRR1_ER9 = 0;\r
-       ENIR1_EN9 = 1;  \r
+       ENIR1_EN9 = 1;\r
 }\r
 \r
index e4c4f86959c62f9988fa9ba2c8d4bb5d5911d38b..0e0066cae53caedaa6161e791720f8952ce6d9d9 100644 (file)
        Please ensure to read the configuration and relevant port sections of the\r
        online documentation.\r
 \r
-       http://www.FreeRTOS.org - Documentation, latest information, license and \r
+       http://www.FreeRTOS.org - Documentation, latest information, license and\r
        contact details.\r
 \r
-       http://www.SafeRTOS.com - A version that is certified for use in safety \r
+       http://www.SafeRTOS.com - A version that is certified for use in safety\r
        critical systems.\r
 \r
-       http://www.OpenRTOS.com - Commercial support, development, porting, \r
+       http://www.OpenRTOS.com - Commercial support, development, porting,\r
        licensing and training services.\r
 */\r
 \r
@@ -122,7 +122,7 @@ main( int argc, char *argv[] )
     vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
 \r
     /* Start the check task - which is defined in this file. */\r
-    xTaskCreate( vErrorChecks, ( signed char * )"Check", 512, NULL,\r
+    xTaskCreate( vErrorChecks, "Check", 512, NULL,\r
                  mainCHECK_TASK_PRIORITY, NULL );\r
 \r
     /* Now all the tasks have been started - start the scheduler. */\r
@@ -151,7 +151,7 @@ portTASK_FUNCTION( vErrorChecks, pvParameters )
         xCreatedTask = mainNO_TASK;\r
 \r
         if( xTaskCreate\r
-            ( vMemCheckTask, ( signed char * )"MEM_CHECK",\r
+            ( vMemCheckTask, "MEM_CHECK",\r
               configMINIMAL_STACK_SIZE, ( void * )&ulMemCheckTaskRunningCount,\r
               tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
         {\r
index 40122b74cb499fc23a0e37c26f889902d0ea7751..77f32ef24e3c44d18f9e6ec1dd6f023fffaa984f 100644 (file)
@@ -296,17 +296,17 @@ void main( void )
                \r
                /* Create the LCD, button poll and register test tasks, as described at\r
                the top of this file. */\r
-               xTaskCreate( prvLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE * 2, mainTASK_PARAMETER_CHECK_VALUE, mainLCD_TASK_PRIORITY, NULL );\r
-               xTaskCreate( prvButtonPollTask, ( signed char * ) "BPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-               xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
-               xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
+               xTaskCreate( prvLCDTask, "LCD", configMINIMAL_STACK_SIZE * 2, mainTASK_PARAMETER_CHECK_VALUE, mainLCD_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvButtonPollTask, "BPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
+               xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
 \r
                /* Create the 'check' timer - the timer that periodically calls the\r
                check function as described at the top of this file.  Note that, for\r
                the reasons stated in the comments above the call to \r
                vStartTimerDemoTask(), that the check timer is not actually started \r
                until after the scheduler has been started. */\r
-               xCheckTimer = xTimerCreate( ( const signed char * ) "Check timer", mainCHECK_TIMER_PERIOD, pdTRUE, ( void * ) 0, vCheckTimerCallback ); \r
+               xCheckTimer = xTimerCreate( "Check timer", mainCHECK_TIMER_PERIOD, pdTRUE, ( void * ) 0, vCheckTimerCallback ); \r
 \r
                /* Start the scheduler. */\r
                vTaskStartScheduler();\r
index db025bebe92e829f5d51e5174136e7063a45a72f..e7062c689fe18bba2edc8cd5c028c7e57e303956 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -251,9 +251,9 @@ typedef struct
 \r
 /*-----------------------------------------------------------*/\r
 \r
-/* The linker script can be used to test the FreeRTOS ports use of 20bit \r
-addresses by locating all code in high memory.  The following pragma ensures \r
-that main remains in low memory when that is done.  The ISR_CODE segment is used \r
+/* The linker script can be used to test the FreeRTOS ports use of 20bit\r
+addresses by locating all code in high memory.  The following pragma ensures\r
+that main remains in low memory when that is done.  The ISR_CODE segment is used\r
 for convenience as ISR functions are always placed in low memory. */\r
 #pragma location="ISR_CODE"\r
 void main( void )\r
@@ -278,22 +278,22 @@ void main( void )
                vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
                vStartDynamicPriorityTasks();\r
                vStartGenericQueueTasks( mainGENERIC_QUEUE_TEST_PRIORITY );\r
-               \r
+\r
                /* Create the LCD, button poll and register test tasks, as described at\r
                the top of this file. */\r
-               xTaskCreate( prvLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE * 2, mainTASK_PARAMETER_CHECK_VALUE, mainLCD_TASK_PRIORITY, NULL );\r
-               xTaskCreate( prvButtonPollTask, ( signed char * ) "BPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-               xTaskCreate( vRegTest1Task, ( signed char * ) "Reg1", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
-               xTaskCreate( vRegTest2Task, ( signed char * ) "Reg2", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
+               xTaskCreate( prvLCDTask, "LCD", configMINIMAL_STACK_SIZE * 2, mainTASK_PARAMETER_CHECK_VALUE, mainLCD_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvButtonPollTask, "BPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( vRegTest1Task, "Reg1", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
+               xTaskCreate( vRegTest2Task, "Reg2", configMINIMAL_STACK_SIZE, NULL, 0, NULL );\r
 \r
                /* Start the scheduler. */\r
                vTaskStartScheduler();\r
        }\r
-       \r
+\r
        /* If all is well then this line will never be reached.  If it is reached\r
        then it is likely that there was insufficient (FreeRTOS) heap memory space\r
        to create the idle task.  This may have been trapped by the malloc() failed\r
-       hook function, if one is configured. */ \r
+       hook function, if one is configured. */\r
        for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -313,19 +313,19 @@ unsigned char ucLine = 1;
        /* This function is the only function that uses printf().  If printf() is\r
        used from any other function then some sort of mutual exclusion on stdout\r
        will be necessary.\r
-       \r
+\r
        This is also the only function that is permitted to access the LCD.\r
-       \r
+\r
        First print out the number of bytes that remain in the FreeRTOS heap.  This\r
        can be viewed in the terminal IO window within the IAR Embedded Workbench. */\r
        printf( "%d bytes of heap space remain unallocated\n", ( int ) xPortGetFreeHeapSize() );\r
-       \r
+\r
        /* Just as a test of the port, and for no functional reason, check the task\r
        parameter contains its expected value. */\r
        if( pvParameters != mainTASK_PARAMETER_CHECK_VALUE )\r
        {\r
                halLcdPrintLine( "Invalid parameter", ucLine,  OVERWRITE_TEXT );\r
-               ucLine++;               \r
+               ucLine++;\r
        }\r
 \r
        for( ;; )\r
@@ -343,7 +343,7 @@ unsigned char ucLine = 1;
                        halLcdClearScreen();\r
                        ucLine = 0;\r
                }\r
-               \r
+\r
                /* What is this message?  What does it contain? */\r
                switch( xReceivedMessage.cMessageID )\r
                {\r
@@ -362,9 +362,9 @@ unsigned char ucLine = 1;
                                                                                                the terminal IO window in the IAR\r
                                                                                                embedded workbench. */\r
                                                                                                printf( "\nTask\t     Abs Time\t     %%Time\n*****************************************" );\r
-                                                                                               vTaskGetRunTimeStats( ( signed char * ) cBuffer );\r
+                                                                                               vTaskGetRunTimeStats( cBuffer );\r
                                                                                                printf( cBuffer );\r
-                                                                                               \r
+\r
                                                                                                /* Also print out a message to\r
                                                                                                the LCD - in this case the\r
                                                                                                pointer to the string to print\r
@@ -375,7 +375,7 @@ unsigned char ucLine = 1;
                                                                                                technique. */\r
                                                                                                sprintf( cBuffer, "%s", ( char * ) xReceivedMessage.ulMessageValue );\r
                                                                                                break;\r
-                                                                                               \r
+\r
                        case mainMESSAGE_STATUS                 :       /* The tick interrupt hook\r
                                                                                                function has just informed this\r
                                                                                                task of the system status.\r
@@ -383,11 +383,11 @@ unsigned char ucLine = 1;
                                                                                                with the status value. */\r
                                                                                                prvGenerateStatusMessage( cBuffer, xReceivedMessage.ulMessageValue );\r
                                                                                                break;\r
-                                                                                               \r
+\r
                        default                                                 :       sprintf( cBuffer, "Unknown message" );\r
                                                                                                break;\r
                }\r
-               \r
+\r
                /* Output the message that was placed into the cBuffer array within the\r
                switch statement above, then move onto the next line ready for the next\r
                message to arrive on the queue. */\r
@@ -430,13 +430,13 @@ xQueueMessage xMessage;
        {\r
                /* Check the button state. */\r
                ucState = ( halButtonsPressed() & BUTTON_UP );\r
-               \r
+\r
                if( ucState != 0 )\r
                {\r
                        /* The button was pressed. */\r
                        ucState = pdTRUE;\r
                }\r
-               \r
+\r
                if( ucState != ucLastState )\r
                {\r
                        /* The state has changed, send a message to the LCD task. */\r
@@ -445,7 +445,7 @@ xQueueMessage xMessage;
                        ucLastState = ucState;\r
                        xQueueSend( xLCDQueue, &xMessage, portMAX_DELAY );\r
                }\r
-               \r
+\r
                /* Block for 10 milliseconds so this task does not utilise all the CPU\r
                time and debouncing of the button is not necessary. */\r
                vTaskDelay( 10 / portTICK_RATE_MS );\r
@@ -472,7 +472,7 @@ static void prvSetupHardware( void )
        halLcdInit();\r
        halLcdSetContrast( 100 );\r
        halLcdClearScreen();\r
-       \r
+\r
        halLcdPrintLine( " www.FreeRTOS.org", 0,  OVERWRITE_TEXT );\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -507,11 +507,11 @@ static xQueueMessage xStatusMessage = { mainMESSAGE_STATUS, pdPASS };
                {\r
                        xStatusMessage.ulMessageValue = mainERROR_DYNAMIC_TASKS;\r
                }\r
-               \r
+\r
                if( xAreGenericQueueTasksStillRunning() != pdPASS )\r
                {\r
                        xStatusMessage.ulMessageValue = mainERROR_GEN_QUEUE_TEST;\r
-               }                       \r
+               }\r
 \r
                /* Check the reg test tasks are still cycling.  They will stop\r
                incrementing their loop counters if they encounter an error. */\r
@@ -527,7 +527,7 @@ static xQueueMessage xStatusMessage = { mainMESSAGE_STATUS, pdPASS };
 \r
                usLastRegTest1Counter = usRegTest1Counter;\r
                usLastRegTest2Counter = usRegTest2Counter;\r
-               \r
+\r
                /* As this is the tick hook the lHigherPriorityTaskWoken parameter is not\r
                needed (a context switch is going to be performed anyway), but it must\r
                still be provided. */\r
@@ -564,7 +564,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
        xQueueSendFromISR( xLCDQueue, &xMessage, &xHigherPriorityTaskWoken );\r
 \r
        P2IFG = 0;\r
-       \r
+\r
        /* If writing to xLCDQueue caused a task to unblock, and the unblocked task\r
        has a priority equal to or above the task that this interrupt interrupted,\r
        then lHigherPriorityTaskWoken will have been set to pdTRUE internally within\r
@@ -630,7 +630,7 @@ void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName
 {\r
        ( void ) pxTask;\r
        ( void ) pcTaskName;\r
-       \r
+\r
        /* Run time stack overflow checking is performed if\r
        configconfigCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2.  This hook\r
        function is called if a stack overflow is detected. */\r
index eca7fc03fbe29bfcd5129c7b67d753e5610dbaa2..655767dd110093e9fbb4db9cecfca9adfe330a09 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -187,15 +187,15 @@ 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 */\r
-       xExampleSoftwareTimer = xTimerCreate(   ( const signed char * ) "SoftwareTimer", /* A text name, purely to help debugging. */\r
-                                                                                       ( 5000 / portTICK_RATE_MS ),            /* The timer period, in this case 5000ms (5s). */\r
-                                                                                       pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                                                       ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                                                       vSoftwareTimerCallback                          /* The callback function that switches the LED off. */\r
+       xExampleSoftwareTimer = xTimerCreate(   "SoftwareTimer",                        /* A text name, purely to help debugging. */\r
+                                                                                       ( 5000 / portTICK_RATE_MS ),/* The timer period, in this case 5000ms (5s). */\r
+                                                                                       pdTRUE,                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                                                       ( void * ) 0,                           /* The ID is not used, so can be set to anything. */\r
+                                                                                       vSoftwareTimerCallback          /* The callback function that switches the LED off. */\r
                                                                                );\r
 \r
        /* Start the software timer. */\r
index 4588a73bce53f1a12562caa314797c04045214a4..8687d2c9495292d1885b0c2ca35c582f080c4a09 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -88,7 +88,7 @@ address are located at the bottom of FreeRTOSConfig.h. */
 #define LWIP_PORT_INIT_NETMASK(addr)  IP4_ADDR((addr), configNET_MASK0,configNET_MASK1,configNET_MASK2,configNET_MASK3)\r
 #define LWIP_MAC_ADDR_BASE            { configMAC_ADDR0, configMAC_ADDR1, configMAC_ADDR2, configMAC_ADDR3, configMAC_ADDR4, configMAC_ADDR5 }\r
 \r
-/* Definitions of the various SSI callback functions within the pccSSITags \r
+/* Definitions of the various SSI callback functions within the pccSSITags\r
 array.  If pccSSITags is updated, then these definitions must also be updated. */\r
 #define ssiTASK_STATS_INDEX                    0\r
 #define ssiRUN_TIME_STATS_INDEX                1\r
@@ -101,9 +101,9 @@ static unsigned short uslwIPAppsSSIHandler( int iIndex, char *pcBuffer, int iBuf
 /*-----------------------------------------------------------*/\r
 \r
 /* The SSI strings that are embedded in the served html files.  If this array\r
-is changed, then the index position defined by the #defines such as \r
+is changed, then the index position defined by the #defines such as\r
 ssiTASK_STATS_INDEX above must also be updated. */\r
-static const char *pccSSITags[] = \r
+static const char *pccSSITags[] =\r
 {\r
        "rtos_stats",\r
        "run_stats"\r
@@ -151,15 +151,15 @@ extern char *pcMainGetTaskStatusMessage( void );
 \r
        /* The SSI handler function that generates text depending on the index of\r
        the SSI tag encountered. */\r
-       \r
+\r
        switch( iIndex )\r
        {\r
                case ssiTASK_STATS_INDEX :\r
-                       vTaskList( ( signed char * ) pcBuffer );\r
+                       vTaskList( pcBuffer );\r
                        break;\r
 \r
                case ssiRUN_TIME_STATS_INDEX :\r
-                       vTaskGetRunTimeStats( ( signed char * ) pcBuffer );\r
+                       vTaskGetRunTimeStats( pcBuffer );\r
                        break;\r
        }\r
 \r
index 5cb54eef889d9905938854ceb86d2f565b11fb5b..352567e0ee52ef67d6fd45b49dee42c04c2d36f2 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -71,7 +71,7 @@
  * one queue, and one timer.  It also demonstrates how MicroBlaze interrupts\r
  * can interact with FreeRTOS tasks/timers.\r
  *\r
- * This simple demo project was developed and tested on the Spartan-6 SP605 \r
+ * This simple demo project was developed and tested on the Spartan-6 SP605\r
  * development board, using the hardware configuration found in the hardware\r
  * project that is already included in the Eclipse project.\r
  *\r
@@ -95,7 +95,7 @@
  * in this file.  prvQueueReceiveTask() sits in a loop that causes it to\r
  * repeatedly attempt to read data from the queue that was created within\r
  * main().  When data is received, the task checks the value of the data, and\r
- * if the value equals the expected 100, toggles an LED.  The 'block time' \r
+ * if the value equals the expected 100, toggles an LED.  The 'block time'\r
  * parameter passed to the queue receive function specifies that the task\r
  * should be held in the Blocked state indefinitely to wait for data to be\r
  * available on the queue.  The queue receive task will only leave the Blocked\r
@@ -132,7 +132,7 @@ converted to ticks using the portTICK_RATE_MS constant. */
 #define mainQUEUE_SEND_FREQUENCY_MS                    ( 200 / portTICK_RATE_MS )\r
 \r
 /* The number of items the queue can hold.  This is 1 as the receive task\r
-will remove items as they are added because it has the higher priority, meaning \r
+will remove items as they are added because it has the higher priority, meaning\r
 the send task should always find the queue empty. */\r
 #define mainQUEUE_LENGTH                                       ( 1 )\r
 \r
@@ -164,7 +164,7 @@ static void prvQueueSendTask( void *pvParameters );
  */\r
 static void vLEDTimerCallback( xTimerHandle xTimer );\r
 \r
-/* \r
+/*\r
  * The handler executed each time a button interrupt is generated.  This ensures\r
  * the LED defined by mainTIMER_CONTROLLED_LED is on, and resets the timer so\r
  * the timer will not turn the LED off for a full 5 seconds after the button\r
@@ -200,10 +200,10 @@ static const unsigned long ulGPIOOutputChannel = 1UL, ulGPIOInputChannel = 1UL;
 int main( void )\r
 {\r
        /* *************************************************************************\r
-       This is a very simple project suitable for getting started with FreeRTOS.  \r
-       If you would prefer a more complex project that demonstrates a lot more \r
-       features and tests, then select the 'Full' build configuration within the \r
-       SDK Eclipse IDE. \r
+       This is a very simple project suitable for getting started with FreeRTOS.\r
+       If you would prefer a more complex project that demonstrates a lot more\r
+       features and tests, then select the 'Full' build configuration within the\r
+       SDK Eclipse IDE.\r
        ***************************************************************************/\r
 \r
        /* Configure the interrupt controller, LED outputs and button inputs. */\r
@@ -216,20 +216,20 @@ int main( void )
        /* Sanity check that the queue was created. */\r
        configASSERT( xQueue );\r
 \r
-       /* Start the two tasks as described in the comments at the top of this \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.  The timer is not actually started until a button interrupt is\r
        pushed, as it is not until that point that the LED is turned on. */\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
@@ -368,7 +368,7 @@ const unsigned char ucSetToOutput = 0U;
 \r
        if( xStatus == XST_SUCCESS )\r
        {\r
-               /* Install the handler defined in this task for the button input. \r
+               /* Install the handler defined in this task for the button input.\r
                *NOTE* The FreeRTOS defined xPortInstallInterruptHandler() API function\r
                must be used for this purpose. */\r
                xStatus = xPortInstallInterruptHandler( XPAR_MICROBLAZE_0_INTC_PUSH_BUTTONS_4BITS_IP2INTC_IRPT_INTR, prvButtonInputInterruptHandler, NULL );\r
@@ -377,7 +377,7 @@ const unsigned char ucSetToOutput = 0U;
                {\r
                        /* Set buttons to input. */\r
                        XGpio_SetDataDirection( &xInputGPIOInstance, ulGPIOInputChannel, ~( ucSetToOutput ) );\r
-                       \r
+\r
                        /* Enable the button input interrupts in the interrupt controller.\r
                        *NOTE* The vPortEnableInterrupt() API function must be used for this\r
                        purpose. */\r
@@ -397,7 +397,7 @@ void vApplicationMallocFailedHook( void )
 {\r
        /* vApplicationMallocFailedHook() will only be called if\r
        configUSE_MALLOC_FAILED_HOOK is set to 1 in FreeRTOSConfig.h.  It is a hook\r
-       function that will get called if a call to pvPortMalloc() fails. \r
+       function that will get called if a call to pvPortMalloc() fails.\r
        pvPortMalloc() is called internally by the kernel whenever a task, queue or\r
        semaphore is created.  It is also called by various parts of the demo\r
        application.  If heap_1.c or heap_2.c are used, then the size of the heap\r
@@ -417,7 +417,7 @@ void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName
 \r
        /* vApplicationStackOverflowHook() will only be called if\r
        configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2.  The handle and name\r
-       of the offending task will be passed into the hook function via its \r
+       of the offending task will be passed into the hook function via its\r
        parameters.  However, when a stack has overflowed, it is possible that the\r
        parameters will have been corrupted, in which case the pxCurrentTCB variable\r
        can be inspected directly. */\r
@@ -468,7 +468,7 @@ will run on lots of different MicroBlaze and FPGA configurations - not all of
 which will have the same timer peripherals defined or available.  This example\r
 uses the AXI Timer 0.  If that is available on your hardware platform then this\r
 example callback implementation should not require modification.   The name of\r
-the interrupt handler that should be installed is vPortTickISR(), which the \r
+the interrupt handler that should be installed is vPortTickISR(), which the\r
 function below declares as an extern. */\r
 void vApplicationSetupTimerInterrupt( void )\r
 {\r
@@ -482,7 +482,7 @@ extern void vPortTickISR( void *pvUnused );
 \r
        if( xStatus == XST_SUCCESS )\r
        {\r
-               /* Install the tick interrupt handler as the timer ISR. \r
+               /* Install the tick interrupt handler as the timer ISR.\r
                *NOTE* The xPortInstallInterruptHandler() API function must be used for\r
                this purpose. */\r
                xStatus = xPortInstallInterruptHandler( XPAR_INTC_0_TMRCTR_0_VEC_ID, vPortTickISR, NULL );\r
@@ -518,11 +518,11 @@ extern void vPortTickISR( void *pvUnused );
 \r
 /* This is an application defined callback function used to clear whichever\r
 interrupt was installed by the the vApplicationSetupTimerInterrupt() callback\r
-function - in this case the interrupt generated by the AXI timer.  It is \r
-provided as an application callback because the kernel will run on lots of \r
-different MicroBlaze and FPGA configurations - not all of which will have the \r
-same timer peripherals defined or available.  This example uses the AXI Timer 0.  \r
-If that is available on your hardware platform then this example callback \r
+function - in this case the interrupt generated by the AXI timer.  It is\r
+provided as an application callback because the kernel will run on lots of\r
+different MicroBlaze and FPGA configurations - not all of which will have the\r
+same timer peripherals defined or available.  This example uses the AXI Timer 0.\r
+If that is available on your hardware platform then this example callback\r
 implementation should not require modification provided the example definition\r
 of vApplicationSetupTimerInterrupt() is also not modified. */\r
 void vApplicationClearTimerInterrupt( void )\r
index 8b8b7862d3f908e909d17141036c5064163c731a..3e9ac9ab84672a99c9b5d6237aad75dff51ce153 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * main-blinky.c is included when the "Blinky" build configuration is used.\r
  * main-full.c is included when the "Full" build configuration is used.\r
  *\r
- * main-full.c creates a lot of demo and test tasks and timers,  and is \r
- * therefore very comprehensive but also complex.  If you would prefer a much \r
- * simpler project to get started with, then select the 'Blinky' build \r
+ * main-full.c creates a lot of demo and test tasks and timers,  and is\r
+ * therefore very comprehensive but also complex.  If you would prefer a much\r
+ * simpler project to get started with, then select the 'Blinky' build\r
  * configuration within the SDK Eclipse IDE.  See the documentation page for\r
  * this demo on the http://www.FreeRTOS.org web site for more information.\r
  * ****************************************************************************\r
  *\r
- * main() creates all the demo application tasks and timers, then starts the \r
- * scheduler.  The web documentation provides more details of the standard demo \r
- * application tasks, which provide no particular functionality, but do provide \r
- * a good example of how to use the FreeRTOS API.  \r
+ * main() creates all the demo application tasks and timers, then starts the\r
+ * scheduler.  The web documentation provides more details of the standard demo\r
+ * application tasks, which provide no particular functionality, but do provide\r
+ * a good example of how to use the FreeRTOS API.\r
  *\r
  * In addition to the standard demo tasks, the following tasks and tests are\r
  * defined and/or created within this file:\r
  * http://www.FreeRTOS.org/Free-RTOS-for-Xilinx-MicroBlaze-on-Spartan-6-FPGA.html\r
  * for details on setting up and using the embedded web server.\r
  *\r
- * "Reg test" tasks - These test the task context switch mechanism by first \r
+ * "Reg test" tasks - These test the task context switch mechanism by first\r
  * filling the MicroBlaze registers with known values, before checking that each\r
  * register maintains the value that was written to it as the tasks are switched\r
  * in and out.  The two register test tasks do not use the same values, and\r
  * execute at a very low priority, to ensure they are pre-empted regularly.\r
  *\r
- * "Check" timer - The check timer period is initially set to five seconds.  \r
+ * "Check" timer - The check timer period is initially set to five seconds.\r
  * The check timer callback function checks that all the standard demo tasks,\r
  * and the register check tasks, are not only still executing, but are executing\r
  * without reporting any errors.  If the check timer discovers that a task has\r
@@ -172,7 +172,7 @@ top of this file. */
 #define mainNO_ERROR_CHECK_TIMER_PERIOD                ( 5000 / portTICK_RATE_MS )\r
 \r
 /* The rate at which mainCHECK_LED will toggle when an error has been reported\r
-by at least one task.  See the description of the check timer in the comments at \r
+by at least one task.  See the description of the check timer in the comments at\r
 the top of this file. */\r
 #define mainERROR_CHECK_TIMER_PERIOD           ( 200 / portTICK_RATE_MS )\r
 \r
@@ -184,13 +184,13 @@ information.  In this case an invalid LED number is provided as all four
 available LEDs (LEDs 0 to 3) are already in use. */\r
 #define mainCOM_TEST_LED                       ( 4 )\r
 \r
-/* Baud rate used by the comtest tasks.  The baud rate used is actually fixed in \r
-UARTLite IP when the hardware was built, but the standard serial init function \r
-required a baud rate parameter to be provided - in this case it is just \r
+/* Baud rate used by the comtest tasks.  The baud rate used is actually fixed in\r
+UARTLite IP when the hardware was built, but the standard serial init function\r
+required a baud rate parameter to be provided - in this case it is just\r
 ignored. */\r
 #define mainCOM_TEST_BAUD_RATE                         ( XPAR_RS232_UART_1_BAUDRATE )\r
 \r
-/* The timer test task generates a lot of timers that all use a different \r
+/* The timer test task generates a lot of timers that all use a different\r
 period that is a multiple of the mainTIMER_TEST_PERIOD definition. */\r
 #define mainTIMER_TEST_PERIOD                  ( 20 )\r
 \r
@@ -205,13 +205,13 @@ extern void vRegisterTest1( void *pvParameters );
 extern void vRegisterTest2( void *pvParameters );\r
 \r
 /*\r
- * Defines the 'check' timer functionality as described at the top of this file.  \r
+ * Defines the 'check' timer functionality as described at the top of this file.\r
  * This function is the callback function associated with the 'check' timer.\r
  */\r
 static void vCheckTimerCallback( xTimerHandle xTimer );\r
 \r
-/* \r
- * Configure the interrupt controller, LED outputs and button inputs. \r
+/*\r
+ * Configure the interrupt controller, LED outputs and button inputs.\r
  */\r
 static void prvSetupHardware( void );\r
 \r
@@ -244,9 +244,9 @@ static const unsigned long ulCounterReloadValue = ( ( XPAR_AXI_TIMER_0_CLOCK_FRE
 int main( void )\r
 {\r
        /***************************************************************************\r
-       This project includes a lot of demo and test tasks and timers,  and is \r
-       therefore comprehensive, but complex.  If you would prefer a much simpler \r
-       project to get started with, then select the 'Blinky' build configuration \r
+       This project includes a lot of demo and test tasks and timers,  and is\r
+       therefore comprehensive, but complex.  If you would prefer a much simpler\r
+       project to get started with, then select the 'Blinky' build configuration\r
        within the SDK Eclipse IDE.\r
        ***************************************************************************/\r
 \r
@@ -258,8 +258,8 @@ int main( void )
 \r
        /* Start the reg test tasks, as described in the comments at the top of this\r
        file. */\r
-       xTaskCreate( vRegisterTest1, ( const signed char * const ) "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( vRegisterTest2, ( const signed char * const ) "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegisterTest1, "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vRegisterTest2, "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) 0, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
@@ -284,25 +284,25 @@ int main( void )
        vStartMathTasks( mainFLOP_TASK_PRIORITY );\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
-       tasks were running prior to their creation.  This then allows them to \r
-       ascertain whether or not the correct/expected number of tasks are running at \r
+       tasks were running prior to their creation.  This then allows them to\r
+       ascertain whether or not the correct/expected number of tasks are running at\r
        any given time. */\r
        vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
 \r
        /* Create the 'check' timer - the timer that periodically calls the\r
-       check function as described in the comments at the top of this file.  Note \r
+       check function as described in the comments at the top of this file.  Note\r
        that, for reasons stated in the comments within vApplicationIdleHook()\r
-       (defined in this file), the check timer is not actually started until after \r
+       (defined in this file), the check timer is not actually started until after\r
        the scheduler has been started. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "Check timer", mainNO_ERROR_CHECK_TIMER_PERIOD, pdTRUE, ( void * ) 0, vCheckTimerCallback );\r
+       xCheckTimer = xTimerCreate( "Check timer", mainNO_ERROR_CHECK_TIMER_PERIOD, pdTRUE, ( void * ) 0, vCheckTimerCallback );\r
 \r
-       /* Start the scheduler running.  From this point on, only tasks and \r
+       /* Start the scheduler running.  From this point on, only tasks and\r
        interrupts will be executing. */\r
        vTaskStartScheduler();\r
 \r
        /* If all is well then the following line will never be reached.  If\r
        execution does reach here, then it is highly probably that the heap size\r
-       is too small for the idle and/or timer tasks to be created within \r
+       is too small for the idle and/or timer tasks to be created within\r
        vTaskStartScheduler(). */\r
        taskDISABLE_INTERRUPTS();\r
        for( ;; );\r
@@ -429,7 +429,7 @@ will run on lots of different MicroBlaze and FPGA configurations - not all of
 which will have the same timer peripherals defined or available.  This example\r
 uses the AXI Timer 0.  If that is available on your hardware platform then this\r
 example callback implementation should not require modification.   The name of\r
-the interrupt handler that should be installed is vPortTickISR(), which the \r
+the interrupt handler that should be installed is vPortTickISR(), which the\r
 function below declares as an extern. */\r
 void vApplicationSetupTimerInterrupt( void )\r
 {\r
@@ -441,7 +441,7 @@ extern void vPortTickISR( void *pvUnused );
 \r
        if( xStatus == XST_SUCCESS )\r
        {\r
-               /* Install the tick interrupt handler as the timer ISR. \r
+               /* Install the tick interrupt handler as the timer ISR.\r
                *NOTE* The xPortInstallInterruptHandler() API function must be used for\r
                this purpose. */\r
                xStatus = xPortInstallInterruptHandler( XPAR_INTC_0_TMRCTR_0_VEC_ID, vPortTickISR, NULL );\r
@@ -477,11 +477,11 @@ extern void vPortTickISR( void *pvUnused );
 \r
 /* This is an application defined callback function used to clear whichever\r
 interrupt was installed by the the vApplicationSetupTimerInterrupt() callback\r
-function - in this case the interrupt generated by the AXI timer.  It is \r
-provided as an application callback because the kernel will run on lots of \r
-different MicroBlaze and FPGA configurations - not all of which will have the \r
-same timer peripherals defined or available.  This example uses the AXI Timer 0.  \r
-If that is available on your hardware platform then this example callback \r
+function - in this case the interrupt generated by the AXI timer.  It is\r
+provided as an application callback because the kernel will run on lots of\r
+different MicroBlaze and FPGA configurations - not all of which will have the\r
+same timer peripherals defined or available.  This example uses the AXI Timer 0.\r
+If that is available on your hardware platform then this example callback\r
 implementation should not require modification provided the example definition\r
 of vApplicationSetupTimerInterrupt() is also not modified. */\r
 void vApplicationClearTimerInterrupt( void )\r
@@ -498,7 +498,7 @@ void vApplicationMallocFailedHook( void )
 {\r
        /* vApplicationMallocFailedHook() will only be called if\r
        configUSE_MALLOC_FAILED_HOOK is set to 1 in FreeRTOSConfig.h.  It is a hook\r
-       function that will get called if a call to pvPortMalloc() fails. \r
+       function that will get called if a call to pvPortMalloc() fails.\r
        pvPortMalloc() is called internally by the kernel whenever a task, queue or\r
        semaphore is created.  It is also called by various parts of the demo\r
        application.  If heap_1.c or heap_2.c are used, then the size of the heap\r
@@ -518,7 +518,7 @@ void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName
 \r
        /* vApplicationStackOverflowHook() will only be called if\r
        configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2.  The handle and name\r
-       of the offending task will be passed into the hook function via its \r
+       of the offending task will be passed into the hook function via its\r
        parameters.  However, when a stack has overflowed, it is possible that the\r
        parameters will have been corrupted, in which case the pxCurrentTCB variable\r
        can be inspected directly. */\r
@@ -531,14 +531,14 @@ void vApplicationIdleHook( void )
 {\r
 static long lCheckTimerStarted = pdFALSE;\r
 \r
-       /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set \r
-       to 1 in FreeRTOSConfig.h.  It will be called on each iteration of the idle \r
-       task.  It is essential that code added to this hook function never attempts \r
-       to block in any way (for example, call xQueueReceive() with a block time \r
-       specified, or call vTaskDelay()).  If the application makes use of the \r
-       vTaskDelete() API function (as this demo application does) then it is also \r
-       important that vApplicationIdleHook() is permitted to return to its calling \r
-       function, because it is the responsibility of the idle task to clean up \r
+       /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set\r
+       to 1 in FreeRTOSConfig.h.  It will be called on each iteration of the idle\r
+       task.  It is essential that code added to this hook function never attempts\r
+       to block in any way (for example, call xQueueReceive() with a block time\r
+       specified, or call vTaskDelay()).  If the application makes use of the\r
+       vTaskDelete() API function (as this demo application does) then it is also\r
+       important that vApplicationIdleHook() is permitted to return to its calling\r
+       function, because it is the responsibility of the idle task to clean up\r
        memory allocated by the kernel to any task that has since been deleted. */\r
 \r
        /* If the check timer has not already been started, then start it now.\r
@@ -550,7 +550,7 @@ static long lCheckTimerStarted = pdFALSE;
        queue will have been drained. */\r
        if( lCheckTimerStarted == pdFALSE )\r
        {\r
-               xTimerStart( xCheckTimer, mainDONT_BLOCK ); \r
+               xTimerStart( xCheckTimer, mainDONT_BLOCK );\r
                lCheckTimerStarted = pdTRUE;\r
        }\r
 }\r
@@ -560,11 +560,11 @@ void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump )
 {\r
        ( void ) xRegisterDump;\r
 \r
-       /* If configINSTALL_EXCEPTION_HANDLERS is set to 1 in FreeRTOSConfig.h, then \r
-       the kernel will automatically install its own exception handlers before the \r
-       kernel is started, if the application writer has not already caused them to \r
-       be installed by calling either of the vPortExceptionsInstallHandlers() \r
-       or xPortInstallInterruptHandler() API functions before that time.  The \r
+       /* If configINSTALL_EXCEPTION_HANDLERS is set to 1 in FreeRTOSConfig.h, then\r
+       the kernel will automatically install its own exception handlers before the\r
+       kernel is started, if the application writer has not already caused them to\r
+       be installed by calling either of the vPortExceptionsInstallHandlers()\r
+       or xPortInstallInterruptHandler() API functions before that time.  The\r
        kernels exception handler populates an xPortRegisterDump structure with\r
        the processor state at the point that the exception was triggered - and also\r
        includes a strings that say what the exception cause was and which task was\r
@@ -584,7 +584,7 @@ void vApplicationExceptionRegisterDump( xPortRegisterDump *xRegisterDump )
 static void prvSetupHardware( void )\r
 {\r
        taskDISABLE_INTERRUPTS();\r
-       \r
+\r
        /* Configure the LED outputs. */\r
        vParTestInitialise();\r
 \r
index e96048adc39c97da8872c4af131718899b85e1a1..3748e8388bddbd0bb54612f5cb058f42c009013d 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the first.  This enables the \r
- * demo's to be executed on the RAM limited 40 pin devices.  The 64 and 80 pin \r
- * devices require a more costly development platform and are not so readily \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the first.  This enables the\r
+ * demo's to be executed on the RAM limited 40 pin devices.  The 64 and 80 pin\r
+ * devices require a more costly development platform and are not so readily\r
  * available.\r
  *\r
- * The RTOSDemo1 project is configured for a PIC18F452 device.  Main1.c starts 5 \r
+ * The RTOSDemo1 project is configured for a PIC18F452 device.  Main1.c starts 5\r
  * tasks (including the idle task).\r
  *\r
- * The first task runs at the idle priority.  It repeatedly performs a 32bit \r
- * calculation and checks it's result against the expected value.  This checks \r
- * that the temporary storage utilised by the compiler to hold intermediate \r
- * results does not get corrupted when the task gets switched in and out.  See \r
+ * The first task runs at the idle priority.  It repeatedly performs a 32bit\r
+ * calculation and checks it's result against the expected value.  This checks\r
+ * that the temporary storage utilised by the compiler to hold intermediate\r
+ * results does not get corrupted when the task gets switched in and out.  See\r
  * demo/common/minimal/integer.c for more information.\r
  *\r
- * The second and third tasks pass an incrementing value between each other on \r
+ * The second and third tasks pass an incrementing value between each other on\r
  * a message queue.  See demo/common/minimal/PollQ.c for more information.\r
  *\r
- * Main1.c also creates a check task.  This periodically checks that all the \r
- * other tasks are still running and have not experienced any unexpected \r
- * results.  If all the other tasks are executing correctly an LED is flashed \r
- * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not \r
- * executed, or report and error, the frequency of the LED flash will increase \r
+ * Main1.c also creates a check task.  This periodically checks that all the\r
+ * other tasks are still running and have not experienced any unexpected\r
+ * results.  If all the other tasks are executing correctly an LED is flashed\r
+ * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not\r
+ * executed, or report and error, the frequency of the LED flash will increase\r
  * to mainERROR_FLASH_RATE.\r
  *\r
  * On entry to main an 'X' is transmitted.  Monitoring the serial port using a\r
- * dumb terminal allows for verification that the device is not continuously \r
+ * dumb terminal allows for verification that the device is not continuously\r
  * being reset (no more than one 'X' should be transmitted).\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * PIC18F port.\r
  */\r
 \r
@@ -128,7 +128,7 @@ priority. */
 /* The LED that is flashed by the check task. */\r
 #define mainCHECK_TASK_LED                             ( 0 )\r
 \r
-/* Constants required for the communications.  Only one character is ever \r
+/* Constants required for the communications.  Only one character is ever\r
 transmitted. */\r
 #define mainCOMMS_QUEUE_LENGTH                 ( 5 )\r
 #define mainNO_BLOCK                                   ( ( portTickType ) 0 )\r
@@ -163,7 +163,7 @@ void main( void )
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler.  Will never return here. */\r
        vTaskStartScheduler();\r
index 89f82435ac6142834cd0b4e39b4e3233e81727a8..2afaac39c4dfacaca75ceff16a928bb619a4cddf 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the second.  This enables the \r
- * demo's to be executed on the RAM limited 40 pin devices.  The 64 and 80 pin \r
- * devices require a more costly development platform and are not so readily \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the second.  This enables the\r
+ * demo's to be executed on the RAM limited 40 pin devices.  The 64 and 80 pin\r
+ * devices require a more costly development platform and are not so readily\r
  * available.\r
  *\r
- * The RTOSDemo2 project is configured for a PIC18F452 device.  Main2.c starts  \r
+ * The RTOSDemo2 project is configured for a PIC18F452 device.  Main2.c starts\r
  * 5 tasks (including the idle task).\r
- * \r
+ *\r
  * The first, second and third tasks do nothing but flash an LED.  This gives\r
  * visual feedback that everything is executing as expected.  One task flashes\r
  * an LED every 333ms (i.e. on and off every 333/2 ms), then next every 666ms\r
  * and the last every 999ms.\r
  *\r
- * The last task runs at the idle priority.  It repeatedly performs a 32bit \r
- * calculation and checks it's result against the expected value.  This checks \r
- * that the temporary storage utilised by the compiler to hold intermediate \r
+ * The last task runs at the idle priority.  It repeatedly performs a 32bit\r
+ * calculation and checks it's result against the expected value.  This checks\r
+ * that the temporary storage utilised by the compiler to hold intermediate\r
  * results does not get corrupted when the task gets switched in and out.\r
  * should the calculation ever provide an incorrect result the final LED is\r
  * turned on.\r
  *\r
  * On entry to main() an 'X' is transmitted.  Monitoring the serial port using a\r
- * dumb terminal allows for verification that the device is not continuously \r
+ * dumb terminal allows for verification that the device is not continuously\r
  * being reset (no more than one 'X' should be transmitted).\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * PIC18F port.\r
  */\r
 \r
@@ -116,7 +116,7 @@ priority. */
 /* The LED that is lit when should the calculation fail. */\r
 #define mainCHECK_TASK_LED                             ( ( unsigned portBASE_TYPE ) 3 )\r
 \r
-/* Constants required for the communications.  Only one character is ever \r
+/* Constants required for the communications.  Only one character is ever\r
 transmitted. */\r
 #define mainCOMMS_QUEUE_LENGTH                 ( ( unsigned portBASE_TYPE ) 5 )\r
 #define mainNO_BLOCK                                   ( ( portTickType ) 0 )\r
@@ -144,7 +144,7 @@ void main( void )
        vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vCalculationTask, ( const char * const ) "Check", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( vCalculationTask, "Check", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
index e1a2b1c6760a5e5e8d7f74c7d252a44678f2fba3..2ab3b277b4521847c3f879fd98d7cbad190c45f6 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * THIS DEMO APPLICATION REQUIRES A LOOPBACK CONNECTOR TO BE FITTED TO THE PIC\r
  * USART PORT - connect pin 2 to pin 3 on J2.\r
  *\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the third.  This enables the \r
- * demo's to be executed on the RAM limited 40 pin devices.  The 64 and 80 pin \r
- * devices require a more costly development platform and are not so readily \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the third.  This enables the\r
+ * demo's to be executed on the RAM limited 40 pin devices.  The 64 and 80 pin\r
+ * devices require a more costly development platform and are not so readily\r
  * available.\r
  *\r
  * The RTOSDemo3 project is configured for a PIC18F452 device.  Main3.c starts\r
  * 5 tasks (including the idle task).\r
- * \r
+ *\r
  * The first task repeatedly transmits a string of characters on the PIC USART\r
  * port.  The second task receives the characters, checking that the correct\r
- * sequence is maintained (i.e. what is transmitted is identical to that \r
- * received).  Each transmitted and each received character causes an LED to \r
+ * sequence is maintained (i.e. what is transmitted is identical to that\r
+ * received).  Each transmitted and each received character causes an LED to\r
  * flash.  See demo/common/minimal/comtest. c for more information.\r
  *\r
  * The third task continuously performs a 32 bit calculation.  This is a good\r
- * test of the context switch mechanism as the 8 bit architecture requires \r
+ * test of the context switch mechanism as the 8 bit architecture requires\r
  * the use of several file registers to perform the 32 bit operations.  See\r
  * demo/common/minimal/integer. c for more information.\r
  *\r
  * The third task is the check task.  This periodically checks that the other\r
  * tasks are still running and have not experienced any errors.  If no errors\r
  * have been reported by either the comms or integer tasks an LED is flashed\r
- * with a frequency mainNO_ERROR_CHECK_PERIOD.  If an error is discovered the \r
+ * with a frequency mainNO_ERROR_CHECK_PERIOD.  If an error is discovered the\r
  * frequency is increased to mainERROR_FLASH_RATE.\r
  *\r
  * The check task also provides a visual indication of a system reset by\r
- * flashing the one remaining LED (mainRESET_LED) when it starts.  After \r
+ * flashing the one remaining LED (mainRESET_LED) when it starts.  After\r
  * this initial flash mainRESET_LED should remain off.\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * PIC18F port.\r
  */\r
 \r
@@ -136,7 +136,7 @@ more frequently - increasing the LED flash rate. */
 mainCOMM_TX_RX_LED + 1 will be toggled every time a character is received. */\r
 #define mainCOMM_TX_RX_LED                             ( ( unsigned portBASE_TYPE ) 2 )\r
 \r
-/* The LED that is flashed by the check task at a rate that indicates the \r
+/* The LED that is flashed by the check task at a rate that indicates the\r
 error status. */\r
 #define mainCHECK_TASK_LED                             ( ( unsigned portBASE_TYPE ) 1 )\r
 \r
@@ -148,9 +148,9 @@ error status. */
 #define mainBAUD_RATE                                  ( ( unsigned long ) 57600 )\r
 /*-----------------------------------------------------------*/\r
 \r
-/* \r
+/*\r
  * Task function which periodically checks the other tasks for errors.  Flashes\r
- * an LED at a rate that indicates whether an error has ever been detected. \r
+ * an LED at a rate that indicates whether an error has ever been detected.\r
  */\r
 static void vErrorChecks( void *pvParameters );\r
 \r
@@ -173,7 +173,7 @@ void main( void )
        vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler.  This will never return. */\r
        vTaskStartScheduler();\r
@@ -214,7 +214,7 @@ volatile unsigned long ulDummy = 3UL;
                        xDelayTime = mainERROR_CHECK_PERIOD;\r
                }\r
 \r
-               /* Flash the LED for visual feedback.  The rate of the flash will \r
+               /* Flash the LED for visual feedback.  The rate of the flash will\r
                indicate the health of the system. */\r
                vParTestToggleLED( mainCHECK_TASK_LED );\r
        }\r
index 11f555eb630e469b4e61e804c2e14e0e3a54a6b0..47a6feebbd5b626307cb44246e0a266563530a1f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -70,11 +70,11 @@ Changes from V3.0.1
 */\r
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the second.  This enables the \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the second.  This enables the\r
  * demo's to be executed on the RAM limited PIC-devices.\r
  *\r
- * The Demo2 project is configured for a PIC18F4620 device.  Main.c starts 12 \r
+ * The Demo2 project is configured for a PIC18F4620 device.  Main.c starts 12\r
  * tasks (including the idle task). See the indicated files in the demo/common\r
  * directory for more information.\r
  *\r
@@ -83,18 +83,18 @@ Changes from V3.0.1
  * demo/common/minimal/semtest.c:      Creates 4 tasks\r
  * demo/common/minimal/flash.c:                Creates 3 tasks\r
  *\r
- * Main.c also creates a check task.  This periodically checks that all the \r
- * other tasks are still running and have not experienced any unexpected \r
- * results.  If all the other tasks are executing correctly an LED is flashed \r
- * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not \r
- * executed, or report an error, the frequency of the LED flash will increase \r
+ * Main.c also creates a check task.  This periodically checks that all the\r
+ * other tasks are still running and have not experienced any unexpected\r
+ * results.  If all the other tasks are executing correctly an LED is flashed\r
+ * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not\r
+ * executed, or report an error, the frequency of the LED flash will increase\r
  * to mainERROR_FLASH_RATE.\r
  *\r
  * On entry to main an 'X' is transmitted.  Monitoring the serial port using a\r
- * dumb terminal allows for verification that the device is not continuously \r
+ * dumb terminal allows for verification that the device is not continuously\r
  * being reset (no more than one 'X' should be transmitted).\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * wizC PIC18F port.\r
  */\r
 \r
@@ -125,7 +125,7 @@ priority. */
 #define mainSEM_TEST_PRIORITY  ( tskIDLE_PRIORITY + ( unsigned char ) 1 )\r
 #define mainINTEGER_PRIORITY   ( tskIDLE_PRIORITY + ( unsigned char ) 0 )\r
 \r
-/* Constants required for the communications.  Only one character is ever \r
+/* Constants required for the communications.  Only one character is ever\r
 transmitted. */\r
 #define mainCOMMS_QUEUE_LENGTH         ( ( unsigned char ) 5 )\r
 #define mainNO_BLOCK                           ( ( portTickType ) 0 )\r
@@ -161,7 +161,7 @@ void main( void )
        vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler.  Will never return here. */\r
        vTaskStartScheduler();\r
@@ -178,17 +178,17 @@ portTickType xLastCheckTime;
 portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;\r
 char cErrorOccurred;\r
 \r
-       /* We need to initialise xLastCheckTime prior to the first call to \r
+       /* We need to initialise xLastCheckTime prior to the first call to\r
        vTaskDelayUntil(). */\r
        xLastCheckTime = xTaskGetTickCount();\r
-       \r
+\r
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error. */\r
        for( ;; )\r
        {\r
                /* Wait until it is time to check the other tasks again. */\r
                vTaskDelayUntil( &xLastCheckTime, xDelayTime );\r
-               \r
+\r
                /* Check all the other tasks are running, and running without ever\r
                having an error. */\r
                cErrorOccurred = prvCheckOtherTasksAreStillRunning();\r
index e2e867505d24e1b589b09a3a751ded542d85131a..3ecb768b6d62df39f655f3f422987eff01236cbd 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -70,11 +70,11 @@ Changes from V3.0.1
 */\r
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the third.  This enables the \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the third.  This enables the\r
  * demo's to be executed on the RAM limited PIC-devices.\r
  *\r
- * The Demo3 project is configured for a PIC18F4620 device.  Main.c starts 12 \r
+ * The Demo3 project is configured for a PIC18F4620 device.  Main.c starts 12\r
  * tasks (including the idle task). See the indicated files in the demo/common\r
  * directory for more information.\r
  *\r
@@ -82,18 +82,18 @@ Changes from V3.0.1
  * demo/common/minimal/BlockQ.c:       Creates 6 tasks\r
  * demo/common/minimal/flash.c:                Creates 3 tasks\r
  *\r
- * Main.c also creates a check task.  This periodically checks that all the \r
- * other tasks are still running and have not experienced any unexpected \r
- * results.  If all the other tasks are executing correctly an LED is flashed \r
- * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not \r
- * executed, or report an error, the frequency of the LED flash will increase \r
+ * Main.c also creates a check task.  This periodically checks that all the\r
+ * other tasks are still running and have not experienced any unexpected\r
+ * results.  If all the other tasks are executing correctly an LED is flashed\r
+ * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not\r
+ * executed, or report an error, the frequency of the LED flash will increase\r
  * to mainERROR_FLASH_RATE.\r
  *\r
  * On entry to main an 'X' is transmitted.  Monitoring the serial port using a\r
- * dumb terminal allows for verification that the device is not continuously \r
+ * dumb terminal allows for verification that the device is not continuously\r
  * being reset (no more than one 'X' should be transmitted).\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * wizC PIC18F port.\r
  */\r
 \r
@@ -122,7 +122,7 @@ priority. */
 #define mainBLOCK_Q_PRIORITY   ( tskIDLE_PRIORITY + ( unsigned char ) 1 )\r
 #define mainINTEGER_PRIORITY   ( tskIDLE_PRIORITY + ( unsigned char ) 0 )\r
 \r
-/* Constants required for the communications.  Only one character is ever \r
+/* Constants required for the communications.  Only one character is ever\r
 transmitted. */\r
 #define mainCOMMS_QUEUE_LENGTH                 ( ( unsigned char ) 5 )\r
 #define mainNO_BLOCK                                   ( ( portTickType ) 0 )\r
@@ -157,7 +157,7 @@ void main( void )
        vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler.  Will never return here. */\r
        vTaskStartScheduler( );\r
@@ -174,10 +174,10 @@ static portTASK_FUNCTION( vErrorChecks, pvParameters )
        portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;\r
        char cErrorOccurred;\r
 \r
-       /* We need to initialise xLastCheckTime prior to the first call to \r
+       /* We need to initialise xLastCheckTime prior to the first call to\r
        vTaskDelayUntil(). */\r
        xLastCheckTime = xTaskGetTickCount();\r
-       \r
+\r
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error. */\r
        for( ;; )\r
index 030c576bc7071fd2fc775cea488858de1e9299be..b63f5751eb4ed9962d9e0c21dc270330f5f453ed 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -70,11 +70,11 @@ Changes from V3.0.1
 */\r
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the fourth.  This enables the \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the fourth.  This enables the\r
  * demo's to be executed on the RAM limited PIC-devices.\r
  *\r
- * The Demo4 project is configured for a PIC18F4620 device.  Main.c starts 11 \r
+ * The Demo4 project is configured for a PIC18F4620 device.  Main.c starts 11\r
  * tasks (including the idle task). See the indicated files in the demo/common\r
  * directory for more information.\r
  *\r
@@ -82,18 +82,18 @@ Changes from V3.0.1
  * demo/common/minimal/dynamic.c:      Creates 5 tasks\r
  * demo/common/minimal/flash.c:                Creates 3 tasks\r
  *\r
- * Main.c also creates a check task.  This periodically checks that all the \r
- * other tasks are still running and have not experienced any unexpected \r
- * results.  If all the other tasks are executing correctly an LED is flashed \r
- * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not \r
- * executed, or report an error, the frequency of the LED flash will increase \r
+ * Main.c also creates a check task.  This periodically checks that all the\r
+ * other tasks are still running and have not experienced any unexpected\r
+ * results.  If all the other tasks are executing correctly an LED is flashed\r
+ * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not\r
+ * executed, or report an error, the frequency of the LED flash will increase\r
  * to mainERROR_FLASH_RATE.\r
  *\r
  * On entry to main an 'X' is transmitted.  Monitoring the serial port using a\r
- * dumb terminal allows for verification that the device is not continuously \r
+ * dumb terminal allows for verification that the device is not continuously\r
  * being reset (no more than one 'X' should be transmitted).\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * wizC PIC18F port.\r
  */\r
 \r
@@ -121,7 +121,7 @@ priority. */
 #define mainLED_FLASH_PRIORITY ( tskIDLE_PRIORITY + ( unsigned char ) 2 )\r
 #define mainINTEGER_PRIORITY   ( tskIDLE_PRIORITY + ( unsigned char ) 0 )\r
 \r
-/* Constants required for the communications.  Only one character is ever \r
+/* Constants required for the communications.  Only one character is ever\r
 transmitted. */\r
 #define mainCOMMS_QUEUE_LENGTH         ( ( unsigned char ) 5 )\r
 #define mainNO_BLOCK                           ( ( portTickType ) 0 )\r
@@ -156,7 +156,7 @@ void main( void )
        vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler.  Will never return here. */\r
        vTaskStartScheduler( );\r
@@ -173,10 +173,10 @@ static portTASK_FUNCTION( vErrorChecks, pvParameters )
        portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;\r
        char cErrorOccurred;\r
 \r
-       /* We need to initialise xLastCheckTime prior to the first call to \r
+       /* We need to initialise xLastCheckTime prior to the first call to\r
        vTaskDelayUntil(). */\r
        xLastCheckTime = xTaskGetTickCount();\r
-       \r
+\r
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error. */\r
        for( ;; )\r
index e0af85f4f466748ea024227eec014c0cced0ac6e..1786bbf06111d1493cd302bbe6ac4a930b29f7ed 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -70,29 +70,29 @@ Changes from V3.0.1
 */\r
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the fifth.  This enables the \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the fifth.  This enables the\r
  * demo's to be executed on the RAM limited PIC-devices.\r
  *\r
- * The Demo5 project is configured for a PIC18F4620 device.  Main.c starts 13 \r
+ * The Demo5 project is configured for a PIC18F4620 device.  Main.c starts 13\r
  * tasks (including the idle task). See the indicated files in the demo/common\r
  * directory for more information.\r
  *\r
  * demo/common/minimal/flop.c:         Creates 8 tasks\r
  * demo/common/minimal/flash.c:                Creates 3 tasks\r
  *\r
- * Main.c also creates a check task.  This periodically checks that all the \r
- * other tasks are still running and have not experienced any unexpected \r
- * results.  If all the other tasks are executing correctly an LED is flashed \r
- * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not \r
- * executed, or report an error, the frequency of the LED flash will increase \r
+ * Main.c also creates a check task.  This periodically checks that all the\r
+ * other tasks are still running and have not experienced any unexpected\r
+ * results.  If all the other tasks are executing correctly an LED is flashed\r
+ * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not\r
+ * executed, or report an error, the frequency of the LED flash will increase\r
  * to mainERROR_FLASH_RATE.\r
  *\r
  * On entry to main an 'X' is transmitted.  Monitoring the serial port using a\r
- * dumb terminal allows for verification that the device is not continuously \r
+ * dumb terminal allows for verification that the device is not continuously\r
  * being reset (no more than one 'X' should be transmitted).\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * wizC PIC18F port.\r
  */\r
 \r
@@ -118,7 +118,7 @@ priority. */
 #define mainCHECK_TASK_PRIORITY        ( tskIDLE_PRIORITY + ( unsigned char ) 2 )\r
 #define mainLED_FLASH_PRIORITY ( tskIDLE_PRIORITY + ( unsigned char ) 1 )\r
 \r
-/* Constants required for the communications.  Only one character is ever \r
+/* Constants required for the communications.  Only one character is ever\r
 transmitted. */\r
 #define mainCOMMS_QUEUE_LENGTH         ( ( unsigned char ) 5 )\r
 #define mainNO_BLOCK                           ( ( portTickType ) 0 )\r
@@ -152,7 +152,7 @@ void main( void )
        vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler.  Will never return here. */\r
        vTaskStartScheduler();\r
@@ -169,17 +169,17 @@ portTickType xLastCheckTime;
 portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;\r
 char cErrorOccurred;\r
 \r
-       /* We need to initialise xLastCheckTime prior to the first call to \r
+       /* We need to initialise xLastCheckTime prior to the first call to\r
        vTaskDelayUntil(). */\r
        xLastCheckTime = xTaskGetTickCount();\r
-       \r
+\r
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error. */\r
        for( ;; )\r
        {\r
                /* Wait until it is time to check the other tasks again. */\r
                vTaskDelayUntil( &xLastCheckTime, xDelayTime );\r
-               \r
+\r
                /* Check all the other tasks are running, and running without ever\r
                having an error. */\r
                cErrorOccurred = prvCheckOtherTasksAreStillRunning();\r
index 1f045f5f562ac77bc2cb3af83950c1f6b4cc98be..9f85a3a442917e976171e30d9776eb9dcea73055 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -70,25 +70,25 @@ Changes from V3.0.1
 */\r
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the sixth.  This enables the \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the sixth.  This enables the\r
  * demo's to be executed on the RAM limited PIC-devices.\r
  *\r
- * The Demo6 project is configured for a PIC18F4620 device.  Main.c starts 4 \r
+ * The Demo6 project is configured for a PIC18F4620 device.  Main.c starts 4\r
  * tasks (including the idle task). See the indicated files in the demo/common\r
  * directory for more information.\r
  *\r
  * demo/common/minimal/comtest.c:      Creates 2 tasks\r
  * ATTENTION: Comtest needs a loopback-connector on the serial port.\r
  *\r
- * Main.c also creates a check task.  This periodically checks that all the \r
- * other tasks are still running and have not experienced any unexpected \r
- * results.  If all the other tasks are executing correctly an LED is flashed \r
- * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not \r
- * executed, or report an error, the frequency of the LED flash will increase \r
+ * Main.c also creates a check task.  This periodically checks that all the\r
+ * other tasks are still running and have not experienced any unexpected\r
+ * results.  If all the other tasks are executing correctly an LED is flashed\r
+ * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not\r
+ * executed, or report an error, the frequency of the LED flash will increase\r
  * to mainERROR_FLASH_RATE.\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * wizC PIC18F port.\r
  */\r
 \r
@@ -143,7 +143,7 @@ void main( void )
        vAltStartComTestTasks( mainCOMM_TEST_PRIORITY, mainBAUD_RATE, mainCOMM_TX_RX_LED );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler.  Will never return here. */\r
        vTaskStartScheduler();\r
@@ -160,17 +160,17 @@ portTickType xLastCheckTime;
 portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;\r
 char cErrorOccurred;\r
 \r
-       /* We need to initialise xLastCheckTime prior to the first call to \r
+       /* We need to initialise xLastCheckTime prior to the first call to\r
        vTaskDelayUntil(). */\r
        xLastCheckTime = xTaskGetTickCount();\r
-       \r
+\r
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error. */\r
        for( ;; )\r
        {\r
                /* Wait until it is time to check the other tasks again. */\r
                vTaskDelayUntil( &xLastCheckTime, xDelayTime );\r
-               \r
+\r
                /* Check all the other tasks are running, and running without ever\r
                having an error. */\r
                cErrorOccurred = prvCheckOtherTasksAreStillRunning();\r
index 6d7134a68bd94d84e542dd8a28471352c1a81933..f0891ff52a3a9131d1fd4451f1a6217b73b5dbb0 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -70,11 +70,11 @@ Changes from V3.0.1
 */\r
 \r
 /*\r
- * Instead of the normal single demo application, the PIC18F demo is split \r
- * into several smaller programs of which this is the seventh.  This enables the \r
+ * Instead of the normal single demo application, the PIC18F demo is split\r
+ * into several smaller programs of which this is the seventh.  This enables the\r
  * demo's to be executed on the RAM limited PIC-devices.\r
  *\r
- * The Demo7 project is configured for a PIC18F4620 device.  Main.c starts 10 \r
+ * The Demo7 project is configured for a PIC18F4620 device.  Main.c starts 10\r
  * tasks (including the idle task). See the indicated files in the demo/common\r
  * directory for more information.\r
  *\r
@@ -82,18 +82,18 @@ Changes from V3.0.1
  * demo/common/minimal/death.c:                Creates 1 controltask and\r
  *                                                                     creates/deletes 4 suicidaltasks\r
  *\r
- * Main.c also creates a check task.  This periodically checks that all the \r
- * other tasks are still running and have not experienced any unexpected \r
- * results.  If all the other tasks are executing correctly an LED is flashed \r
- * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not \r
- * executed, or report an error, the frequency of the LED flash will increase \r
+ * Main.c also creates a check task.  This periodically checks that all the\r
+ * other tasks are still running and have not experienced any unexpected\r
+ * results.  If all the other tasks are executing correctly an LED is flashed\r
+ * once every mainCHECK_PERIOD milliseconds.  If any of the tasks have not\r
+ * executed, or report an error, the frequency of the LED flash will increase\r
  * to mainERROR_FLASH_RATE.\r
  *\r
  * On entry to main an 'X' is transmitted.  Monitoring the serial port using a\r
- * dumb terminal allows for verification that the device is not continuously \r
+ * dumb terminal allows for verification that the device is not continuously\r
  * being reset (no more than one 'X' should be transmitted).\r
  *\r
- * http://www.FreeRTOS.org contains important information on the use of the \r
+ * http://www.FreeRTOS.org contains important information on the use of the\r
  * wizC PIC18F port.\r
  */\r
 \r
@@ -120,7 +120,7 @@ priority. */
 #define mainLED_FLASH_PRIORITY         ( tskIDLE_PRIORITY + ( unsigned char ) 2 )\r
 #define mainCREATOR_TASK_PRIORITY      ( tskIDLE_PRIORITY + ( unsigned char ) 1 )\r
 \r
-/* Constants required for the communications.  Only one character is ever \r
+/* Constants required for the communications.  Only one character is ever\r
 transmitted. */\r
 #define mainCOMMS_QUEUE_LENGTH         ( ( unsigned char ) 5 )\r
 #define mainNO_BLOCK                           ( ( portTickType ) 0 )\r
@@ -153,7 +153,7 @@ void main( void )
        vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );\r
 \r
        /* Start the check task defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* This task has to be created last as it keeps account of the number of tasks\r
        it expects to see running. */\r
@@ -174,17 +174,17 @@ portTickType xLastCheckTime;
 portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;\r
 char cErrorOccurred;\r
 \r
-       /* We need to initialise xLastCheckTime prior to the first call to \r
+       /* We need to initialise xLastCheckTime prior to the first call to\r
        vTaskDelayUntil(). */\r
        xLastCheckTime = xTaskGetTickCount();\r
-       \r
+\r
        /* Cycle for ever, delaying then checking all the other tasks are still\r
        operating without error. */\r
        for( ;; )\r
        {\r
                /* Wait until it is time to check the other tasks again. */\r
                vTaskDelayUntil( &xLastCheckTime, xDelayTime );\r
-               \r
+\r
                /* Check all the other tasks are running, and running without ever\r
                having an error. */\r
                cErrorOccurred = prvCheckOtherTasksAreStillRunning();\r
index b8f4fecb41df756263e88c5d3c3a647efcb8c210..8e3ba08ebdbcc1f7d55156f0697d76718a6197e6 100644 (file)
@@ -131,7 +131,7 @@ xQueueHandle xStartLCDTask( void )
 \r
        /* Start the task that will write to the LCD.  The LCD hardware is\r
        initialised from within the task itself so delays can be used. */\r
-       xTaskCreate( vLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
+       xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
 \r
        return xLCDQueue;\r
 }\r
index d489b14489389268fa7f62e2e939644071dabd69..7974e6aa687dcff06dd1791cfb44eaf95ce6228b 100644 (file)
@@ -184,7 +184,7 @@ int main( void )
        vCreateBlockTimeTasks();\r
 \r
        /* Create the test tasks defined within this file. */\r
-       xTaskCreate( vCheckTask, ( signed char * ) "Check", mainCHECK_TAKS_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vCheckTask, "Check", mainCHECK_TAKS_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the task that will control the LCD.  This returns the handle\r
        to the queue used to write text out to the task. */\r
index 10d3e51e2a5527aadc9bb62a20e69899aeef56b2..c124d9eba2f8b7e4bf737be01cea9a3819e6c438 100644 (file)
@@ -146,7 +146,7 @@ xQueueHandle xStartLCDTask( void )
 \r
        /* Start the task that will write to the LCD.  The LCD hardware is\r
        initialised from within the task itself so delays can be used. */\r
-       xTaskCreate( vLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
+       xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
 \r
        return xLCDQueue;\r
 }\r
index 841c4dc90819f1899ad594b606e38339f6a874ac..d1f69aaae2d651c293b503539bb44a6130226307 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -75,7 +75,7 @@
  * required to configure the hardware, are defined in main.c.\r
  ******************************************************************************\r
  *\r
- * main_blinky() creates one queue, two tasks, and one software timer.  It then \r
+ * main_blinky() creates one queue, two tasks, and one software timer.  It then\r
  * starts the scheduler.\r
  *\r
  * The Blinky Software Timer:\r
@@ -158,7 +158,7 @@ static void prvQueueSendTask( void *pvParameters );
  * of this file.\r
  */\r
 static void prvBlinkyTimerCallback( xTimerHandle xTimer );\r
\r
+\r
 /*\r
  * Called by main() to create the simply blinky style application if\r
  * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1.\r
@@ -184,28 +184,28 @@ xTimerHandle xTimer;
                /* Create the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Create the blinky software timer as described at the top of this\r
                file. */\r
-               xTimer = xTimerCreate(  ( const signed char * ) "Blinky",       /* A text name, purely to help debugging. */\r
-                                                               ( mainBLINKY_TIMER_PERIOD ),            /* The timer period. */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvBlinkyTimerCallback                          /* The callback function that inspects the status of all the other tasks. */\r
-                                                       );      \r
-               \r
+               xTimer = xTimerCreate(  "Blinky",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainBLINKY_TIMER_PERIOD ),/* The timer period. */\r
+                                                               pdTRUE,                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                           /* The ID is not used, so can be set to anything. */\r
+                                                               prvBlinkyTimerCallback          /* The callback function that inspects the status of all the other tasks. */\r
+                                                       );\r
+\r
                if( xTimer != NULL )\r
                {\r
                        xTimerStart( xTimer, mainDONT_BLOCK );\r
                }\r
-                               \r
+\r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
        }\r
index 6ebec91b936cd0b33ac2537d8f11a001023a2cff..6f398a3547ca5933c512fd2845a93eed33457bd7 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -75,9 +75,9 @@
  * required to configure the hardware, are defined in main.c.\r
  ******************************************************************************\r
  *\r
- * main_full() creates all the demo application tasks and software timers, then \r
- * starts the scheduler.  The WEB documentation provides more details of the \r
- * standard demo application tasks.  In addition to the standard demo tasks, the \r
+ * main_full() creates all the demo application tasks and software timers, then\r
+ * starts the scheduler.  The WEB documentation provides more details of the\r
+ * standard demo application tasks.  In addition to the standard demo tasks, the\r
  * following tasks and tests are defined and/or created within this file:\r
  *\r
  * "LCD" task - the LCD task is a 'gatekeeper' task.  It is the only task that\r
  * the check software timer discovers that a task has either stalled, or\r
  * reported an error, then it changes its own execution period from the initial\r
  * three seconds, to just 200ms.  The check software timer callback function\r
- * also writes a status message to the LCD (via the LCD task).  If all the demo \r
- * tasks are executing with their expected behaviour then the check task writes \r
+ * also writes a status message to the LCD (via the LCD task).  If all the demo\r
+ * tasks are executing with their expected behaviour then the check task writes\r
  * a count of the number of times the high frequency interrupt has incremented\r
  * ulHighFrequencyTimerInterrupts - which is one in every 20,000 interrupts.\r
  *\r
  * "Register test" tasks - These tasks are used in part to test the kernel port.\r
- * They set each processor register to a known value, then check that the \r
+ * They set each processor register to a known value, then check that the\r
  * register still contains that value.  Each of the tasks sets the registers\r
- * to different values, and will get swapping in and out between setting and \r
+ * to different values, and will get swapping in and out between setting and\r
  * then subsequently checking the register values.  Discovery of an incorrect\r
  * value would be indicative of an error in the task switching mechanism.\r
  *\r
- * By way of demonstration, the demo application defines \r
- * configMAX_SYSCALL_INTERRUPT_PRIORITY to be 3, configKERNEL_INTERRUPT_PRIORITY \r
+ * By way of demonstration, the demo application defines\r
+ * configMAX_SYSCALL_INTERRUPT_PRIORITY to be 3, configKERNEL_INTERRUPT_PRIORITY\r
  * to be 1, and all other interrupts as follows:\r
  *\r
- *     + The UART is allocated a priority of 2. This means it can interrupt the \r
+ *     + The UART is allocated a priority of 2. This means it can interrupt the\r
  *    RTOS tick, and can also safely use queues.\r
- *  + Two timers are configured to generate interrupts just to test the nesting \r
- *    and queue access mechanisms. These timers are allocated priorities 2 and 3 \r
- *    respectively. Even though they both access the same two queues, the \r
- *    priority 3 interrupt can safely interrupt the priority 2 interrupt. Both \r
+ *  + Two timers are configured to generate interrupts just to test the nesting\r
+ *    and queue access mechanisms. These timers are allocated priorities 2 and 3\r
+ *    respectively. Even though they both access the same two queues, the\r
+ *    priority 3 interrupt can safely interrupt the priority 2 interrupt. Both\r
  *    can interrupt the RTOS tick.\r
- *  + Finally a high frequency timer interrupt is configured to use priority 4 - \r
- *    therefore kernel activity will never prevent the high frequency timer from \r
- *    executing immediately that the interrupt is raised (within the limitations \r
- *    of the hardware itself). It would not be safe to access a queue from this \r
- *    interrupt as it is above configMAX_SYSCALL_INTERRUPT_PRIORITY. \r
+ *  + Finally a high frequency timer interrupt is configured to use priority 4 -\r
+ *    therefore kernel activity will never prevent the high frequency timer from\r
+ *    executing immediately that the interrupt is raised (within the limitations\r
+ *    of the hardware itself). It would not be safe to access a queue from this\r
+ *    interrupt as it is above configMAX_SYSCALL_INTERRUPT_PRIORITY.\r
  *\r
  * See the online documentation for this demo for more information on interrupt\r
  * usage.\r
@@ -176,14 +176,14 @@ See the comtest.c file for more information. */
 /* Misc. */\r
 #define mainDONT_BLOCK                                         ( 0 )\r
 \r
-/* Dimension the buffer used to hold the value of the high frequency timer \r
+/* Dimension the buffer used to hold the value of the high frequency timer\r
 count when it is converted to a string. */\r
 #define mainMAX_STRING_LENGTH                          ( 20 )\r
 \r
 /* The frequency at which the "fast interrupt test" interrupt will occur. */\r
 #define mainTEST_INTERRUPT_FREQUENCY           ( 20000 )\r
 \r
-/* The number of timer clocks expected to occur between each "fast interrupt \r
+/* The number of timer clocks expected to occur between each "fast interrupt\r
 test" interrupt. */\r
 #define mainEXPECTED_CLOCKS_BETWEEN_INTERRUPTS ( ( configCPU_CLOCK_HZ >> 1 ) / mainTEST_INTERRUPT_FREQUENCY )\r
 \r
@@ -219,11 +219,11 @@ static void prvCheckTimerCallback( xTimerHandle xTimer );
 static void prvSetupHighFrequencyTimerTest( xTimerHandle xTimer );\r
 \r
 /*\r
- * Tasks that test the context switch mechanism by filling the processor \r
+ * Tasks that test the context switch mechanism by filling the processor\r
  * registers with known values, then checking that the values contained\r
  * within the registers is as expected.  The tasks are likely to get swapped\r
  * in and out between setting the register values and checking the register\r
- * values. \r
+ * values.\r
  */\r
 static void prvRegTestTask1( void *pvParameters );\r
 static void prvRegTestTask2( void *pvParameters );\r
@@ -233,7 +233,7 @@ static void prvRegTestTask2( void *pvParameters );
 /* The queue used to send messages to the LCD task. */\r
 static xQueueHandle xLCDQueue;\r
 \r
-/* Variables incremented by prvRegTestTask1() and prvRegTestTask2() respectively on \r
+/* Variables incremented by prvRegTestTask1() and prvRegTestTask2() respectively on\r
 each iteration of their function.  This is used to detect either task stopping\r
 their execution.. */\r
 volatile unsigned long ulRegTest1Cycles = 0, ulRegTest2Cycles = 0;\r
@@ -247,7 +247,7 @@ int main_full( void )
 {\r
 xTimerHandle xTimer = NULL;\r
 \r
-       /* Create the LCD task - this returns the queue to use when writing \r
+       /* Create the LCD task - this returns the queue to use when writing\r
        messages to the LCD. */\r
        xLCDQueue = xStartLCDTask();\r
 \r
@@ -260,34 +260,34 @@ xTimerHandle xTimer = NULL;
        vStartInterruptQueueTasks();\r
 \r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( prvRegTestTask1, ( const signed char * const ) "Reg1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTestTask2, ( const signed char * const ) "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask1, "Reg1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask2, "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
-    /* The PIC32MX795 uses an 8 deep fifo where TX interrupts are asserted \r
-       whilst the TX buffer is empty.  This causes an issue with the test driver so \r
+    /* The PIC32MX795 uses an 8 deep fifo where TX interrupts are asserted\r
+       whilst the TX buffer is empty.  This causes an issue with the test driver so\r
        it is not used in this demo */\r
        #if !defined(__32MX795F512L__)\r
                vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
-       #endif  \r
-       \r
-       /* Create the software timer that performs the 'check' functionality, as \r
+       #endif\r
+\r
+       /* Create the software timer that performs the 'check' functionality, as\r
        described at the top of this file. */\r
-       xTimer = xTimerCreate(  ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xTimer = xTimerCreate(  "CheckTimer",/* A text name, purely to help debugging. */\r
                                                        ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                        pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                        ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
                                                        prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
-                                               );      \r
-       \r
+                                               );\r
+\r
        if( xTimer != NULL )\r
        {\r
                xTimerStart( xTimer, mainDONT_BLOCK );\r
        }\r
-       \r
+\r
        /* A software timer is also used to start the high frequency timer test.\r
        This is to ensure the test does not start before the kernel.  This time a\r
        one shot software timer is used. */\r
-       xTimer = xTimerCreate( ( const signed char * ) "HighHzTimerSetup", 1, pdFALSE, ( void * ) 0, prvSetupHighFrequencyTimerTest );\r
+       xTimer = xTimerCreate( "HighHzTimerSetup", 1, pdFALSE, ( void * ) 0, prvSetupHighFrequencyTimerTest );\r
        if( xTimer != NULL )\r
        {\r
                xTimerStart( xTimer, mainDONT_BLOCK );\r
@@ -356,16 +356,16 @@ static xLCDMessage xMessage = { ( 200 / portTICK_RATE_MS ), cStringBuffer };
        }\r
        ulLastRegTest1Value = ulRegTest1Cycles;\r
 \r
-       \r
+\r
        /* Check that the register test 2 task is still running. */\r
        if( ulLastRegTest2Value == ulRegTest2Cycles )\r
        {\r
                xMessage.pcMessage = "Error: Reg test3";\r
        }\r
        ulLastRegTest2Value = ulRegTest2Cycles;\r
-       \r
 \r
-       /* Have any of the standard demo tasks detected an error in their \r
+\r
+       /* Have any of the standard demo tasks detected an error in their\r
        operation? */\r
        if( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
        {\r
@@ -403,25 +403,25 @@ static xLCDMessage xMessage = { ( 200 / portTICK_RATE_MS ), cStringBuffer };
                if( lChangedTimerPeriodAlready == pdFALSE )\r
                {\r
                        lChangedTimerPeriodAlready = pdTRUE;\r
-                       \r
+\r
                        /* This call to xTimerChangePeriod() uses a zero block time.\r
                        Functions called from inside of a timer callback function must\r
                        *never* attempt to block as to do so could impact other software\r
                        timers. */\r
                        xTimerChangePeriod( xTimer, ( mainERROR_CHECK_TIMER_PERIOD_MS ), mainDONT_BLOCK );\r
-               }               \r
+               }\r
        }\r
        else\r
        {\r
-               /* Write the ulHighFrequencyTimerInterrupts value to the string \r
+               /* Write the ulHighFrequencyTimerInterrupts value to the string\r
                buffer.  It will only be displayed if no errors have been detected. */\r
                sprintf( cStringBuffer, "Pass %u", ( unsigned int ) ulHighFrequencyTimerInterrupts );\r
        }\r
 \r
-       /* Send the status message to the LCD task for display on the LCD.  This is \r
+       /* Send the status message to the LCD task for display on the LCD.  This is\r
        a timer callback function, so the queue send function *must not* block. */\r
        xQueueSend( xLCDQueue, &xMessage, mainDONT_BLOCK );\r
-       vParTestToggleLED( mainCHECK_LED );     \r
+       vParTestToggleLED( mainCHECK_LED );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -430,6 +430,6 @@ static void prvSetupHighFrequencyTimerTest( xTimerHandle xTimer )
        /* Setup the high frequency, high priority, timer test.  It is setup in this\r
        software timer callback to ensure it does not start before the kernel does.\r
        This is a one shot timer - so the setup routine will only be executed once. */\r
-       vSetupTimerTest( mainTEST_INTERRUPT_FREQUENCY );        \r
+       vSetupTimerTest( mainTEST_INTERRUPT_FREQUENCY );\r
 }\r
 \r
index e6e8f1b54d9a9c5ffce712c09f1c03877878f182..c326986b3a0aebbff2a85ec36c798761a224c5a8 100644 (file)
@@ -133,12 +133,12 @@ void vStartISRTriggeredTask( void )
 {\r
        /* Create the task described at the top of this file.  The timer is\r
        configured by the task itself. */\r
-       xTaskCreate( prvISRTriggeredTask,                                       /* The function that implements the task. */\r
-                               ( const signed char * const ) "ISRt",   /* Text name to help debugging - not used by the kernel. */\r
-                               configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task - defined in words, not bytes. */\r
-                               NULL,                                                                   /* The parameter to pass into the task.  Not used in this case. */\r
-                               configMAX_PRIORITIES - 1,                               /* The priority at which the task is created. */\r
-                               NULL );                                                                 /* Used to pass a handle to the created task out of the function.  Not used in this case. */\r
+       xTaskCreate( prvISRTriggeredTask,               /* The function that implements the task. */\r
+                               "ISRt",                                         /* Text name to help debugging - not used by the kernel. */\r
+                               configMINIMAL_STACK_SIZE,       /* The size of the stack to allocate to the task - defined in words, not bytes. */\r
+                               NULL,                                           /* The parameter to pass into the task.  Not used in this case. */\r
+                               configMAX_PRIORITIES - 1,       /* The priority at which the task is created. */\r
+                               NULL );                                         /* Used to pass a handle to the created task out of the function.  Not used in this case. */\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index e4aba6165e4614755e976bc955a7c08cfac486d8..07fabfb16556bec94f484cf18426b255425eba71 100644 (file)
@@ -177,21 +177,21 @@ xTimerHandle xTimer;
                /* Create the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate(    prvQueueReceiveTask,                                    /* The function that implements the task. */\r
-                                               ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                               "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                                configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                                ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                                mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                                NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
 \r
                /* Create the blinky software timer as described at the top of this file. */\r
-               xTimer = xTimerCreate(  ( const signed char * ) "Blinky",/* A text name, purely to help debugging. */\r
-                                                               ( mainBLINKY_TIMER_PERIOD ),    /* The timer period. */\r
-                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
-                                                               prvBlinkyTimerCallback );               /* The callback function that inspects the status of all the other tasks. */\r
+               xTimer = xTimerCreate(  "Blinky",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainBLINKY_TIMER_PERIOD ),/* The timer period. */\r
+                                                               pdTRUE,                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                           /* The ID is not used, so can be set to anything. */\r
+                                                               prvBlinkyTimerCallback );       /* The callback function that inspects the status of all the other tasks. */\r
                configASSERT( xTimer );\r
 \r
                if( xTimer != NULL )\r
index a176abf172882187c897266d3bb17e70f12615a9..9820fe807a22c5a09e825ed4501edd3d2cc761cd 100644 (file)
@@ -238,18 +238,18 @@ xTimerHandle xTimer = NULL;
        vStartRecursiveMutexTasks();\r
 \r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( prvRegTestTask1,                                           /* The function that implements the task. */\r
-                               ( const signed char * const ) "Reg1",   /* Text name for the task to assist debugger - not used by FreeRTOS itself. */\r
-                               configMINIMAL_STACK_SIZE,                               /* The stack size to allocate for the task - specified in words not bytes. */\r
-                               NULL,                                                                   /* The parameter to pass into the task - not used in this case so set to NULL. */\r
-                               tskIDLE_PRIORITY,                                               /* The priority to assign to the task. */\r
-                               NULL );                                                                 /* Used to obtain a handle to the task being created - not used in this case so set to NULL. */\r
+       xTaskCreate( prvRegTestTask1,                   /* The function that implements the task. */\r
+                               "Reg1",                                         /* Text name for the task to assist debugger - not used by FreeRTOS itself. */\r
+                               configMINIMAL_STACK_SIZE,       /* The stack size to allocate for the task - specified in words not bytes. */\r
+                               NULL,                                           /* The parameter to pass into the task - not used in this case so set to NULL. */\r
+                               tskIDLE_PRIORITY,                       /* The priority to assign to the task. */\r
+                               NULL );                                         /* Used to obtain a handle to the task being created - not used in this case so set to NULL. */\r
 \r
-       xTaskCreate( prvRegTestTask2, ( const signed char * const ) "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask2, "Reg2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality, as\r
        described at the top of this file. */\r
-       xTimer = xTimerCreate(  ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xTimer = xTimerCreate(  "CheckTimer",/* A text name, purely to help debugging. */\r
                                                        ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                        pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                        ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
@@ -263,7 +263,7 @@ xTimerHandle xTimer = NULL;
        /* A software timer is also used to start the high frequency timer test.\r
        This is to ensure the test does not start before the kernel.  This time a\r
        one shot software timer is used. */\r
-       xTimer = xTimerCreate( ( const signed char * ) "HighHzTimerSetup", 1, pdFALSE, ( void * ) 0, prvSetupHighFrequencyTimerTest );\r
+       xTimer = xTimerCreate( "HighHzTimerSetup", 1, pdFALSE, ( void * ) 0, prvSetupHighFrequencyTimerTest );\r
        if( xTimer != NULL )\r
        {\r
                xTimerStart( xTimer, mainDONT_BLOCK );\r
index 9f484b9523a0cba077639f27aa42c9e905857222..f06ea14a3a53cf8074ad33a5e965682c598fe399 100644 (file)
@@ -155,7 +155,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
 \r
 \r
        /* Create the first task. */\r
-       xTaskCreate( vFlopTest1, ( signed portCHAR * ) "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest1, "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -165,7 +165,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Do the same for the second task. */\r
-       xTaskCreate( vFlopTest2, ( signed portCHAR * ) "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest2, "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 9459d7572e4a9c41a798d76a5ae42cfd2b8a499c..54e8c3bceac8377c86f8e7714fc363557fc14e96 100644 (file)
@@ -136,7 +136,7 @@ portBASE_TYPE x, y;
        /* Create the first task - passing it the address of the check variable\r
        that it is going to increment.  This check variable is used as an \r
        indication that the task is still running. */\r
-       xTaskCreate( vCompetingMathTask1, ( signed portCHAR * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -146,25 +146,25 @@ portBASE_TYPE x, y;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Create another 7 tasks, allocating a buffer for each. */\r
-       xTaskCreate( vCompetingMathTask2, ( signed portCHAR * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed portCHAR * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 2 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed portCHAR * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 3 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask1, ( signed portCHAR * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 4 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask2, ( signed portCHAR * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 5 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed portCHAR * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 6 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed portCHAR * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 7 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 5f9a7e4252ae7c1f716f7c9d5b8f110c6126bb2a..0b523edd2bf0ccff0c359a7795d43a0aae443954 100644 (file)
@@ -202,9 +202,9 @@ int main( void )
        #endif\r
 \r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( prvRegTestTask1, ( signed portCHAR * ) "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTestTask2, ( signed portCHAR * ) "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvErrorChecks, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask1, "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask2, "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be started last as they record the number of other\r
        tasks that exist within the system.  The value is then used to ensure at run\r
index 9f484b9523a0cba077639f27aa42c9e905857222..f06ea14a3a53cf8074ad33a5e965682c598fe399 100644 (file)
@@ -155,7 +155,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
 \r
 \r
        /* Create the first task. */\r
-       xTaskCreate( vFlopTest1, ( signed portCHAR * ) "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest1, "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -165,7 +165,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Do the same for the second task. */\r
-       xTaskCreate( vFlopTest2, ( signed portCHAR * ) "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest2, "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 9459d7572e4a9c41a798d76a5ae42cfd2b8a499c..54e8c3bceac8377c86f8e7714fc363557fc14e96 100644 (file)
@@ -136,7 +136,7 @@ portBASE_TYPE x, y;
        /* Create the first task - passing it the address of the check variable\r
        that it is going to increment.  This check variable is used as an \r
        indication that the task is still running. */\r
-       xTaskCreate( vCompetingMathTask1, ( signed portCHAR * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -146,25 +146,25 @@ portBASE_TYPE x, y;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Create another 7 tasks, allocating a buffer for each. */\r
-       xTaskCreate( vCompetingMathTask2, ( signed portCHAR * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed portCHAR * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 2 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed portCHAR * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 3 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask1, ( signed portCHAR * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 4 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask2, ( signed portCHAR * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 5 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed portCHAR * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 6 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed portCHAR * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 7 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 68925a00dec435deb97d085368f4aab7566b7ff5..f65f9948703402698249af735251490ef4850a9b 100644 (file)
@@ -208,9 +208,9 @@ int main( void )
        #endif\r
 \r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( prvRegTestTask1, ( signed portCHAR * ) "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTestTask2, ( signed portCHAR * ) "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvErrorChecks, ( signed portCHAR * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask1, "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask2, "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be started last as they record the number of other\r
        tasks that exist within the system.  The value is then used to ensure at run\r
index 5a606884c5bc4cd5296516bf4ef50543fa64144c..620ae460748e8524758a96d76359330e328338f4 100644 (file)
@@ -156,7 +156,7 @@ portDOUBLE z = flopSTART_VALUE;
 \r
 \r
        /* Create the first task. */\r
-       xTaskCreate( vFlopTest1, ( signed char * ) "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest1, "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -166,7 +166,7 @@ portDOUBLE z = flopSTART_VALUE;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Do the same for the second task. */\r
-       xTaskCreate( vFlopTest2, ( signed char * ) "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest2, "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 1 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index bb51961bd4f156e038cfff24ea8db3adab1b3e3b..3b6297daea80863d4348aef335024fc614d0b268 100644 (file)
@@ -136,7 +136,7 @@ portBASE_TYPE x, y;
        /* Create the first task - passing it the address of the check variable\r
        that it is going to increment.  This check variable is used as an \r
        indication that the task is still running. */\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -146,25 +146,25 @@ portBASE_TYPE x, y;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Create another 7 tasks, allocating a buffer for each. */\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 1 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 2 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 3 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 4 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 5 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 6 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( dFlopRegisters[ 7 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index ac563e29aa2abc68ba683d8bf9d920855b3a029f..92364cdc79fa83dbc137739b8c5b9f43063f8d54 100644 (file)
@@ -202,9 +202,9 @@ int main( void )
        #endif\r
 \r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( prvRegTestTask1, ( signed char * ) "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTestTask2, ( signed char * ) "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask1, "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask2, "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be started last as they record the number of other\r
        tasks that exist within the system.  The value is then used to ensure at run\r
index 6bf86ea991341b0474d976d2bc62d42aa0822ab1..4aa9d7bd42e1773d66346e00d2a489ff9751a8cc 100644 (file)
@@ -155,7 +155,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
 \r
 \r
        /* Create the first task. */\r
-       xTaskCreate( vFlopTest1, ( signed char * ) "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest1, "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -165,7 +165,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Do the same for the second task. */\r
-       xTaskCreate( vFlopTest2, ( signed char * ) "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest2, "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index b439960a2a2224ea6473e9726a24fd08abf776c1..f8b13ce6a498132175fcb0145aa9c6defc7e04c8 100644 (file)
@@ -136,7 +136,7 @@ portBASE_TYPE x, y;
        /* Create the first task - passing it the address of the check variable\r
        that it is going to increment.  This check variable is used as an \r
        indication that the task is still running. */\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -146,25 +146,25 @@ portBASE_TYPE x, y;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Create another 7 tasks, allocating a buffer for each. */\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 2 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 3 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 4 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 5 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 6 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 7 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index 8218535c0124a7121e74cdafe065212e3959edc2..1729304f62260e971bd2aead86f64f889b51efe5 100644 (file)
@@ -202,9 +202,9 @@ int main( void )
        #endif\r
 \r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( prvRegTestTask1, ( signed char * ) "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTestTask2, ( signed char * ) "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask1, "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask2, "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be started last as they record the number of other\r
        tasks that exist within the system.  The value is then used to ensure at run\r
index 6bf86ea991341b0474d976d2bc62d42aa0822ab1..4aa9d7bd42e1773d66346e00d2a489ff9751a8cc 100644 (file)
@@ -155,7 +155,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
 \r
 \r
        /* Create the first task. */\r
-       xTaskCreate( vFlopTest1, ( signed char * ) "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest1, "flop1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -165,7 +165,7 @@ unsigned portBASE_TYPE x, y, z = flopSTART_VALUE;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Do the same for the second task. */\r
-       xTaskCreate( vFlopTest2, ( signed char * ) "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
+       xTaskCreate( vFlopTest2, "flop2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTaskJustCreated );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index b439960a2a2224ea6473e9726a24fd08abf776c1..f8b13ce6a498132175fcb0145aa9c6defc7e04c8 100644 (file)
@@ -136,7 +136,7 @@ portBASE_TYPE x, y;
        /* Create the first task - passing it the address of the check variable\r
        that it is going to increment.  This check variable is used as an \r
        indication that the task is still running. */\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xTaskJustCreated );\r
 \r
        /* The task     tag value is a value that can be associated with a task, but \r
        is not used by the scheduler itself.  Its use is down to the application so\r
@@ -146,25 +146,25 @@ portBASE_TYPE x, y;
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 0 ][ 0 ] ) );\r
 \r
        /* Create another 7 tasks, allocating a buffer for each. */\r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 1 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 2 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 3 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 4 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 5 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 6 ][ 0 ] ) );\r
 \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xTaskJustCreated  );\r
        vTaskSetApplicationTaskTag( xTaskJustCreated, ( void * ) &( ulFlopRegisters[ 7 ][ 0 ] ) );\r
 }\r
 /*-----------------------------------------------------------*/\r
index e5b7922c990d05eede60e557f86cde36a4975398..661c42578026fc32dd162cd6d510d87714161bcf 100644 (file)
@@ -208,9 +208,9 @@ int main( void )
        #endif\r
 \r
        /* Create the tasks defined within this file. */\r
-       xTaskCreate( prvRegTestTask1, ( signed char * ) "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTestTask2, ( signed char * ) "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask1, "Regtest1", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTestTask2, "Regtest2", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* The suicide tasks must be started last as they record the number of other\r
        tasks that exist within the system.  The value is then used to ensure at run\r
index 3c2bca19cd83c118050ae88e280e41f667847399..528f898d0f8a08ab207efbaf3501008adfe106b9 100644 (file)
     ***************************************************************************\r
 \r
 \r
-    http://www.FreeRTOS.org - Documentation, books, training, latest versions, \r
+    http://www.FreeRTOS.org - Documentation, books, training, latest versions,\r
     license and Real Time Engineers Ltd. contact details.\r
 \r
     http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
     including FreeRTOS+Trace - an indispensable productivity tool, and our new\r
     fully thread aware and reentrant UDP/IP stack.\r
 \r
-    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High \r
-    Integrity Systems, who sell the code with commercial support, \r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems, who sell the code with commercial support,\r
     indemnification and middleware, under the OpenRTOS brand.\r
-    \r
-    http://www.SafeRTOS.com - High Integrity Systems also provide a safety \r
-    engineered and independently SIL3 certified version for use in safety and \r
+\r
+    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
+    engineered and independently SIL3 certified version for use in safety and\r
     mission critical applications that require provable dependability.\r
 */\r
 \r
@@ -139,8 +139,8 @@ void vCreateBlockTimeTasks( void )
        vQueueAddToRegistry( xTestQueue, ( signed char * ) "Block_Time_Queue" );\r
 \r
        /* Create the two test tasks. */\r
-       xTaskCreate( vPrimaryBlockTimeTestTask, ( signed char * )"BTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
-       xTaskCreate( vSecondaryBlockTimeTestTask, ( signed char * )"BTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
+       xTaskCreate( vPrimaryBlockTimeTestTask, "BTest1", configMINIMAL_STACK_SIZE, NULL, bktPRIMARY_PRIORITY, NULL );\r
+       xTaskCreate( vSecondaryBlockTimeTestTask, "BTest2", configMINIMAL_STACK_SIZE, NULL, bktSECONDARY_PRIORITY, &xSecondary );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
index ddfdb704704ba75689d406ca9b919ffb1de86198..3309741c649533909dcd5f788ced93880b088e22 100644 (file)
@@ -208,12 +208,12 @@ portBASE_TYPE xReturn = pdFAIL;
                {\r
                        /* Create the timer task, storing its handle in xTimerTaskHandle so\r
                        it can be returned by the xTimerGetTimerDaemonTaskHandle() function. */\r
-                       xReturn = xTaskCreate( prvTimerTask, ( const signed char * ) "Tmr Svc", ( unsigned short ) configTIMER_TASK_STACK_DEPTH, NULL, ( ( unsigned portBASE_TYPE ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, &xTimerTaskHandle );\r
+                       xReturn = xTaskCreate( prvTimerTask, "Tmr Svc", ( unsigned short ) configTIMER_TASK_STACK_DEPTH, NULL, ( ( unsigned portBASE_TYPE ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, &xTimerTaskHandle );\r
                }\r
                #else\r
                {\r
                        /* Create the timer task without storing its handle. */\r
-                       xReturn = xTaskCreate( prvTimerTask, ( const signed char * ) "Tmr Svc", ( unsigned short ) configTIMER_TASK_STACK_DEPTH, NULL, ( ( unsigned portBASE_TYPE ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, NULL);\r
+                       xReturn = xTaskCreate( prvTimerTask, "Tmr Svc", ( unsigned short ) configTIMER_TASK_STACK_DEPTH, NULL, ( ( unsigned portBASE_TYPE ) configTIMER_TASK_PRIORITY ) | portPRIVILEGE_BIT, NULL);\r
                }\r
                #endif\r
        }\r
index 80b2a2ed1781828640cd0751f57671cc8b014134..a866218a9795b56f1917099095f5b93027c77946 100644 (file)
@@ -231,31 +231,31 @@ void main_full( void )
        vCreateBlockTimeTasks();\r
 \r
        /* Create the RegTest tasks as described at the top of this file. */\r
-       xTaskCreate( prvRegTest1Entry,                          /* The function that implements the task. */\r
-                                ( const signed char * ) "Reg1",/* Text name for the task - to assist debugging only, not used by the kernel. */\r
-                                configMINIMAL_STACK_SIZE,              /* The size of the stack allocated to the task (in words, not bytes). */\r
-                                mainREG_TEST_1_PARAMETER,      /* The parameter passed into the task. */\r
-                                tskIDLE_PRIORITY,                              /* The priority at which the task will execute. */\r
-                                NULL );                                                /* Used to pass the handle of the created task out to the function caller - not used in this case. */\r
+       xTaskCreate( prvRegTest1Entry,                  /* The function that implements the task. */\r
+                                "Reg1",                                        /* Text name for the task - to assist debugging only, not used by the kernel. */\r
+                                configMINIMAL_STACK_SIZE,      /* The size of the stack allocated to the task (in words, not bytes). */\r
+                                mainREG_TEST_1_PARAMETER,  /* The parameter passed into the task. */\r
+                                tskIDLE_PRIORITY,                      /* The priority at which the task will execute. */\r
+                                NULL );                                        /* Used to pass the handle of the created task out to the function caller - not used in this case. */\r
 \r
-       xTaskCreate( prvRegTest2Entry, ( const signed char * ) "Reg2", configMINIMAL_STACK_SIZE, mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest2Entry, "Reg2", configMINIMAL_STACK_SIZE, mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        /* Create the software timer that just increments a variable for demo\r
        purposes. */\r
-       xDemoTimer = xTimerCreate( ( const signed char * ) "DemoTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainDEMO_TIMER_PERIOD_MS ),           /* The timer period, in this case it is always calculated relative to the check timer period (see the definition of mainDEMO_TIMER_PERIOD_MS). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvDemoTimerCallback                            /* The callback function that inspects the status of all the other tasks. */\r
+       xDemoTimer = xTimerCreate( "DemoTimer",                                         /* A text name, purely to help debugging. */\r
+                                                               ( mainDEMO_TIMER_PERIOD_MS ),   /* The timer period, in this case it is always calculated relative to the check timer period (see the definition of mainDEMO_TIMER_PERIOD_MS). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvDemoTimerCallback                    /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        /* Start both the check timer and the demo timer.  The timers won't actually\r
index bbad469c9b7d1096cdc0beb6a661ed9b10685727..0600a276cb686704b938b1b327bff246097ff002 100644 (file)
@@ -232,7 +232,7 @@ short main( void )
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
@@ -241,7 +241,7 @@ short main( void )
                                                        \r
        /* Create the software timer that just increments a variable for demo\r
        purposes. */\r
-       xDemoTimer = xTimerCreate( ( const signed char * ) "DemoTimer",/* A text name, purely to help debugging. */\r
+       xDemoTimer = xTimerCreate( "DemoTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainDEMO_TIMER_PERIOD_MS ),           /* The timer period, in this case it is always calculated relative to the check timer period (see the definition of mainDEMO_TIMER_PERIOD_MS). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index c621ea2a1ef37f1c79e33c38a8ae9ad017d2e511..4c427484e19b4e8c21f283c261c42ca6adfbbcc1 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -156,14 +156,14 @@ void main_blinky( void )
        {\r
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
-               xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
-                                       configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
-                                       NULL,                                                                   /* The parameter passed to the task - not used in this case. */\r
-                                       mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
-                                       NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
-\r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueReceiveTask,                               /* The function that implements the task. */\r
+                                       "Rx",                                                           /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       configMINIMAL_STACK_SIZE,                       /* The size of the stack to allocate to the task. */\r
+                                       NULL,                                                           /* The parameter passed to the task - not used in this case. */\r
+                                       mainQUEUE_RECEIVE_TASK_PRIORITY,        /* The priority assigned to the task. */\r
+                                       NULL );                                                         /* The task handle is not required, so NULL is passed. */\r
+\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index d509657b8389b91eca51941819dd4a81216436d2..b566c120cfa02572287ea7cbd9efd9109ccb28d9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -223,26 +223,26 @@ void main_full( void )
 \r
        /* Create the RegTest tasks as described at the top of this file. */\r
        xTaskCreate( prvRegTest1Entry,                          /* The function that implements the task. */\r
-                                ( const signed char * ) "Reg1",/* Text name for the task - to assist debugging only, not used by the kernel. */\r
+                                "Reg1",                                                /* Text name for the task - to assist debugging only, not used by the kernel. */\r
                                 configMINIMAL_STACK_SIZE,              /* The size of the stack allocated to the task (in words, not bytes). */\r
                                 mainREG_TEST_1_PARAMETER,      /* The parameter passed into the task. */\r
                                 tskIDLE_PRIORITY,                              /* The priority at which the task will execute. */\r
                                 NULL );                                                /* Used to pass the handle of the created task out to the function caller - not used in this case. */\r
 \r
-       xTaskCreate( prvRegTest2Entry, ( const signed char * ) "Reg2", configMINIMAL_STACK_SIZE, mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest2Entry, "Reg2", configMINIMAL_STACK_SIZE, mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
-                                                               ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
-                                                               pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
-                                                               ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
-                                                               prvCheckTimerCallback                           /* The callback function that inspects the status of all the other tasks. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",                                       /* A text name, purely to help debugging. */\r
+                                                               ( mainCHECK_TIMER_PERIOD_MS ),  /* The timer period, in this case 3000ms (3s). */\r
+                                                               pdTRUE,                                                 /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
+                                                               ( void * ) 0,                                   /* The ID is not used, so can be set to anything. */\r
+                                                               prvCheckTimerCallback                   /* The callback function that inspects the status of all the other tasks. */\r
                                                          );\r
 \r
        /* Create the software timer that just increments a variable for demo\r
        purposes. */\r
-       xDemoTimer = xTimerCreate( ( const signed char * ) "DemoTimer",/* A text name, purely to help debugging. */\r
+       xDemoTimer = xTimerCreate(  "DemoTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainDEMO_TIMER_PERIOD_MS ),           /* The timer period, in this case it is always calculated relative to the check timer period (see the definition of mainDEMO_TIMER_PERIOD_MS). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index d42cff30288ed642e7bc4c75ab58eb358c924d0b..11ce59fcfb4d49f83a6beddb738914a44c7c0580 100644 (file)
@@ -206,7 +206,7 @@ void main_full( void )
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 5000ms (5s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index c7a9c8b865b496e4e144f5d33ac56abb3ac78bb4..2993e59e45a66d90c65aed219cfbb2ebcedff60e 100644 (file)
@@ -210,7 +210,7 @@ void main_full( void )
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 5000ms (5s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index 04184a0b589dfcc7443a5587d3458b9144cb9392..763f9eb39856ce95508e7553fab89afe7b2a01a9 100644 (file)
@@ -206,7 +206,7 @@ void main_full( void )
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 5000ms (5s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index b1b0f05dcb72b1811c5b25e9b2d877addbfd222c..365958dc5adb80b8d0893a2a5c4919799fcf119c 100644 (file)
@@ -294,7 +294,7 @@ extern void HardwareSetup( void );
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 5000ms (5s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index 7c5b0f4f6175e2c62e0149d6d5ee20bf2d64b344..d055c940b9f47b35f53bf7e3f6becb9ba6464c04 100644 (file)
@@ -125,8 +125,8 @@ extern void HardwareSetup( void );
        if( xQueue != NULL )\r
        {\r
                /* Start the two tasks as described at the top of this file. */\r
-               xTaskCreate( prvQueueReceiveTask, ( signed char * ) "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueReceiveTask, "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks running. */\r
                vTaskStartScheduler();\r
index d27d11148b7681765db9b171fe1c7867d2a69bf7..d3f0c87f4639d69e3e809960c111a5d4811c3f86 100644 (file)
@@ -272,14 +272,14 @@ extern void HardwareSetup( void );
        vParTestInitialise();\r
 \r
        /* Start the reg test tasks which test the context switching mechanism. */\r
-       xTaskCreate( prvRegTest1Task, ( signed char * ) "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTest2Task, ( signed char * ) "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest1Task, "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest2Task, "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
 \r
        /* The web server task. */\r
-       xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vuIP_Task, "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
 \r
        /* Start the check task as described at the top of this file. */\r
-       xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Create the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
index 5af9ca973470c0675c96205f617bf54aeaff3bbe..94f1682a2e795abc2eaccfd98b715a9cd3417983 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -111,7 +111,7 @@ constants are assigned to the timer IDs. */
 static void prvSetMACAddress( void );\r
 \r
 /*\r
- * Perform any uIP initialisation necessary. \r
+ * Perform any uIP initialisation necessary.\r
  */\r
 static void prvInitialise_uIP( void );\r
 \r
@@ -146,7 +146,7 @@ unsigned long ulNewEvent = 0UL;
 unsigned long ulUIP_Events = 0UL;\r
 \r
        ( void ) pvParameters;\r
-       \r
+\r
        /* Initialise the uIP stack. */\r
        prvInitialise_uIP();\r
 \r
@@ -161,10 +161,10 @@ unsigned long ulUIP_Events = 0UL;
        for( ;; )\r
        {\r
                if( ( ulUIP_Events & uipETHERNET_RX_EVENT ) != 0UL )\r
-               {               \r
+               {\r
                        /* Is there received data ready to be processed? */\r
                        uip_len = ( unsigned short ) ulEMACRead();\r
-                       \r
+\r
                        if( ( uip_len > 0 ) && ( uip_buf != NULL ) )\r
                        {\r
                                /* Standard uIP loop taken from the uIP manual. */\r
@@ -200,11 +200,11 @@ unsigned long ulUIP_Events = 0UL;
                                ulUIP_Events &= ~uipETHERNET_RX_EVENT;\r
                        }\r
                }\r
-               \r
+\r
                if( ( ulUIP_Events & uipPERIODIC_TIMER_EVENT ) != 0UL )\r
                {\r
                        ulUIP_Events &= ~uipPERIODIC_TIMER_EVENT;\r
-                                       \r
+\r
                        for( i = 0; i < UIP_CONNS; i++ )\r
                        {\r
                                uip_periodic( i );\r
@@ -219,14 +219,14 @@ unsigned long ulUIP_Events = 0UL;
                                }\r
                        }\r
                }\r
-               \r
+\r
                /* Call the ARP timer function every 10 seconds. */\r
                if( ( ulUIP_Events & uipARP_TIMER_EVENT ) != 0 )\r
                {\r
                        ulUIP_Events &= ~uipARP_TIMER_EVENT;\r
                        uip_arp_timer();\r
                }\r
-                       \r
+\r
                if( ulUIP_Events == pdFALSE )\r
                {\r
                        xQueueReceive( xEMACEventQueue, &ulNewEvent, portMAX_DELAY );\r
@@ -255,14 +255,14 @@ const unsigned long ul_uIPEventQueueLength = 10UL;
        xEMACEventQueue = xQueueCreate( ul_uIPEventQueueLength, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( const signed char * const ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( const signed char * const ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 50 / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -319,7 +319,7 @@ char *c;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 432f957bb6fa04b44eb99e960a3e673f04750a5d..be4d71175578177b9ded6cc16f4d945868975000 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index 432f957bb6fa04b44eb99e960a3e673f04750a5d..be4d71175578177b9ded6cc16f4d945868975000 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index 5af9ca973470c0675c96205f617bf54aeaff3bbe..94f1682a2e795abc2eaccfd98b715a9cd3417983 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -111,7 +111,7 @@ constants are assigned to the timer IDs. */
 static void prvSetMACAddress( void );\r
 \r
 /*\r
- * Perform any uIP initialisation necessary. \r
+ * Perform any uIP initialisation necessary.\r
  */\r
 static void prvInitialise_uIP( void );\r
 \r
@@ -146,7 +146,7 @@ unsigned long ulNewEvent = 0UL;
 unsigned long ulUIP_Events = 0UL;\r
 \r
        ( void ) pvParameters;\r
-       \r
+\r
        /* Initialise the uIP stack. */\r
        prvInitialise_uIP();\r
 \r
@@ -161,10 +161,10 @@ unsigned long ulUIP_Events = 0UL;
        for( ;; )\r
        {\r
                if( ( ulUIP_Events & uipETHERNET_RX_EVENT ) != 0UL )\r
-               {               \r
+               {\r
                        /* Is there received data ready to be processed? */\r
                        uip_len = ( unsigned short ) ulEMACRead();\r
-                       \r
+\r
                        if( ( uip_len > 0 ) && ( uip_buf != NULL ) )\r
                        {\r
                                /* Standard uIP loop taken from the uIP manual. */\r
@@ -200,11 +200,11 @@ unsigned long ulUIP_Events = 0UL;
                                ulUIP_Events &= ~uipETHERNET_RX_EVENT;\r
                        }\r
                }\r
-               \r
+\r
                if( ( ulUIP_Events & uipPERIODIC_TIMER_EVENT ) != 0UL )\r
                {\r
                        ulUIP_Events &= ~uipPERIODIC_TIMER_EVENT;\r
-                                       \r
+\r
                        for( i = 0; i < UIP_CONNS; i++ )\r
                        {\r
                                uip_periodic( i );\r
@@ -219,14 +219,14 @@ unsigned long ulUIP_Events = 0UL;
                                }\r
                        }\r
                }\r
-               \r
+\r
                /* Call the ARP timer function every 10 seconds. */\r
                if( ( ulUIP_Events & uipARP_TIMER_EVENT ) != 0 )\r
                {\r
                        ulUIP_Events &= ~uipARP_TIMER_EVENT;\r
                        uip_arp_timer();\r
                }\r
-                       \r
+\r
                if( ulUIP_Events == pdFALSE )\r
                {\r
                        xQueueReceive( xEMACEventQueue, &ulNewEvent, portMAX_DELAY );\r
@@ -255,14 +255,14 @@ const unsigned long ul_uIPEventQueueLength = 10UL;
        xEMACEventQueue = xQueueCreate( ul_uIPEventQueueLength, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( const signed char * const ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( const signed char * const ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 50 / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -319,7 +319,7 @@ char *c;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 432f957bb6fa04b44eb99e960a3e673f04750a5d..be4d71175578177b9ded6cc16f4d945868975000 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index 7c5b0f4f6175e2c62e0149d6d5ee20bf2d64b344..d055c940b9f47b35f53bf7e3f6becb9ba6464c04 100644 (file)
@@ -125,8 +125,8 @@ extern void HardwareSetup( void );
        if( xQueue != NULL )\r
        {\r
                /* Start the two tasks as described at the top of this file. */\r
-               xTaskCreate( prvQueueReceiveTask, ( signed char * ) "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueReceiveTask, "Rx", configMINIMAL_STACK_SIZE, NULL, configQUEUE_RECEIVE_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, NULL, configQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks running. */\r
                vTaskStartScheduler();\r
index d27d11148b7681765db9b171fe1c7867d2a69bf7..d3f0c87f4639d69e3e809960c111a5d4811c3f86 100644 (file)
@@ -272,14 +272,14 @@ extern void HardwareSetup( void );
        vParTestInitialise();\r
 \r
        /* Start the reg test tasks which test the context switching mechanism. */\r
-       xTaskCreate( prvRegTest1Task, ( signed char * ) "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
-       xTaskCreate( prvRegTest2Task, ( signed char * ) "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest1Task, "RegTst1", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_1_PARAMETER, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvRegTest2Task, "RegTst2", configMINIMAL_STACK_SIZE, ( void * ) mainREG_TEST_2_PARAMETER, tskIDLE_PRIORITY, NULL );\r
 \r
        /* The web server task. */\r
-       xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vuIP_Task, "uIP", mainuIP_STACK_SIZE, NULL, mainuIP_TASK_PRIORITY, NULL );\r
 \r
        /* Start the check task as described at the top of this file. */\r
-       xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Create the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
index 5af9ca973470c0675c96205f617bf54aeaff3bbe..94f1682a2e795abc2eaccfd98b715a9cd3417983 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -111,7 +111,7 @@ constants are assigned to the timer IDs. */
 static void prvSetMACAddress( void );\r
 \r
 /*\r
- * Perform any uIP initialisation necessary. \r
+ * Perform any uIP initialisation necessary.\r
  */\r
 static void prvInitialise_uIP( void );\r
 \r
@@ -146,7 +146,7 @@ unsigned long ulNewEvent = 0UL;
 unsigned long ulUIP_Events = 0UL;\r
 \r
        ( void ) pvParameters;\r
-       \r
+\r
        /* Initialise the uIP stack. */\r
        prvInitialise_uIP();\r
 \r
@@ -161,10 +161,10 @@ unsigned long ulUIP_Events = 0UL;
        for( ;; )\r
        {\r
                if( ( ulUIP_Events & uipETHERNET_RX_EVENT ) != 0UL )\r
-               {               \r
+               {\r
                        /* Is there received data ready to be processed? */\r
                        uip_len = ( unsigned short ) ulEMACRead();\r
-                       \r
+\r
                        if( ( uip_len > 0 ) && ( uip_buf != NULL ) )\r
                        {\r
                                /* Standard uIP loop taken from the uIP manual. */\r
@@ -200,11 +200,11 @@ unsigned long ulUIP_Events = 0UL;
                                ulUIP_Events &= ~uipETHERNET_RX_EVENT;\r
                        }\r
                }\r
-               \r
+\r
                if( ( ulUIP_Events & uipPERIODIC_TIMER_EVENT ) != 0UL )\r
                {\r
                        ulUIP_Events &= ~uipPERIODIC_TIMER_EVENT;\r
-                                       \r
+\r
                        for( i = 0; i < UIP_CONNS; i++ )\r
                        {\r
                                uip_periodic( i );\r
@@ -219,14 +219,14 @@ unsigned long ulUIP_Events = 0UL;
                                }\r
                        }\r
                }\r
-               \r
+\r
                /* Call the ARP timer function every 10 seconds. */\r
                if( ( ulUIP_Events & uipARP_TIMER_EVENT ) != 0 )\r
                {\r
                        ulUIP_Events &= ~uipARP_TIMER_EVENT;\r
                        uip_arp_timer();\r
                }\r
-                       \r
+\r
                if( ulUIP_Events == pdFALSE )\r
                {\r
                        xQueueReceive( xEMACEventQueue, &ulNewEvent, portMAX_DELAY );\r
@@ -255,14 +255,14 @@ const unsigned long ul_uIPEventQueueLength = 10UL;
        xEMACEventQueue = xQueueCreate( ul_uIPEventQueueLength, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( const signed char * const ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( const signed char * const ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 50 / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -319,7 +319,7 @@ char *c;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 047332d9ad6e0c0ab7bb023c8b0ed27f595362c6..016644aa0d02b6d1172a59bac20ba6192e163c4b 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index 047332d9ad6e0c0ab7bb023c8b0ed27f595362c6..016644aa0d02b6d1172a59bac20ba6192e163c4b 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index 5af9ca973470c0675c96205f617bf54aeaff3bbe..94f1682a2e795abc2eaccfd98b715a9cd3417983 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -111,7 +111,7 @@ constants are assigned to the timer IDs. */
 static void prvSetMACAddress( void );\r
 \r
 /*\r
- * Perform any uIP initialisation necessary. \r
+ * Perform any uIP initialisation necessary.\r
  */\r
 static void prvInitialise_uIP( void );\r
 \r
@@ -146,7 +146,7 @@ unsigned long ulNewEvent = 0UL;
 unsigned long ulUIP_Events = 0UL;\r
 \r
        ( void ) pvParameters;\r
-       \r
+\r
        /* Initialise the uIP stack. */\r
        prvInitialise_uIP();\r
 \r
@@ -161,10 +161,10 @@ unsigned long ulUIP_Events = 0UL;
        for( ;; )\r
        {\r
                if( ( ulUIP_Events & uipETHERNET_RX_EVENT ) != 0UL )\r
-               {               \r
+               {\r
                        /* Is there received data ready to be processed? */\r
                        uip_len = ( unsigned short ) ulEMACRead();\r
-                       \r
+\r
                        if( ( uip_len > 0 ) && ( uip_buf != NULL ) )\r
                        {\r
                                /* Standard uIP loop taken from the uIP manual. */\r
@@ -200,11 +200,11 @@ unsigned long ulUIP_Events = 0UL;
                                ulUIP_Events &= ~uipETHERNET_RX_EVENT;\r
                        }\r
                }\r
-               \r
+\r
                if( ( ulUIP_Events & uipPERIODIC_TIMER_EVENT ) != 0UL )\r
                {\r
                        ulUIP_Events &= ~uipPERIODIC_TIMER_EVENT;\r
-                                       \r
+\r
                        for( i = 0; i < UIP_CONNS; i++ )\r
                        {\r
                                uip_periodic( i );\r
@@ -219,14 +219,14 @@ unsigned long ulUIP_Events = 0UL;
                                }\r
                        }\r
                }\r
-               \r
+\r
                /* Call the ARP timer function every 10 seconds. */\r
                if( ( ulUIP_Events & uipARP_TIMER_EVENT ) != 0 )\r
                {\r
                        ulUIP_Events &= ~uipARP_TIMER_EVENT;\r
                        uip_arp_timer();\r
                }\r
-                       \r
+\r
                if( ulUIP_Events == pdFALSE )\r
                {\r
                        xQueueReceive( xEMACEventQueue, &ulNewEvent, portMAX_DELAY );\r
@@ -255,14 +255,14 @@ const unsigned long ul_uIPEventQueueLength = 10UL;
        xEMACEventQueue = xQueueCreate( ul_uIPEventQueueLength, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( const signed char * const ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( const signed char * const ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 50 / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -319,7 +319,7 @@ char *c;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 047332d9ad6e0c0ab7bb023c8b0ed27f595362c6..016644aa0d02b6d1172a59bac20ba6192e163c4b 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index 5f0bf0788ee620dbecda6e794c429d9ea5c0f8b2..b7b57a02e30415ade6df56049fdc480027f63d98 100644 (file)
@@ -282,7 +282,7 @@ extern void HardwareSetup( void );
 \r
        /* Create the software timer that performs the 'check' functionality,\r
        as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 5000ms (5s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
index 5af9ca973470c0675c96205f617bf54aeaff3bbe..94f1682a2e795abc2eaccfd98b715a9cd3417983 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -111,7 +111,7 @@ constants are assigned to the timer IDs. */
 static void prvSetMACAddress( void );\r
 \r
 /*\r
- * Perform any uIP initialisation necessary. \r
+ * Perform any uIP initialisation necessary.\r
  */\r
 static void prvInitialise_uIP( void );\r
 \r
@@ -146,7 +146,7 @@ unsigned long ulNewEvent = 0UL;
 unsigned long ulUIP_Events = 0UL;\r
 \r
        ( void ) pvParameters;\r
-       \r
+\r
        /* Initialise the uIP stack. */\r
        prvInitialise_uIP();\r
 \r
@@ -161,10 +161,10 @@ unsigned long ulUIP_Events = 0UL;
        for( ;; )\r
        {\r
                if( ( ulUIP_Events & uipETHERNET_RX_EVENT ) != 0UL )\r
-               {               \r
+               {\r
                        /* Is there received data ready to be processed? */\r
                        uip_len = ( unsigned short ) ulEMACRead();\r
-                       \r
+\r
                        if( ( uip_len > 0 ) && ( uip_buf != NULL ) )\r
                        {\r
                                /* Standard uIP loop taken from the uIP manual. */\r
@@ -200,11 +200,11 @@ unsigned long ulUIP_Events = 0UL;
                                ulUIP_Events &= ~uipETHERNET_RX_EVENT;\r
                        }\r
                }\r
-               \r
+\r
                if( ( ulUIP_Events & uipPERIODIC_TIMER_EVENT ) != 0UL )\r
                {\r
                        ulUIP_Events &= ~uipPERIODIC_TIMER_EVENT;\r
-                                       \r
+\r
                        for( i = 0; i < UIP_CONNS; i++ )\r
                        {\r
                                uip_periodic( i );\r
@@ -219,14 +219,14 @@ unsigned long ulUIP_Events = 0UL;
                                }\r
                        }\r
                }\r
-               \r
+\r
                /* Call the ARP timer function every 10 seconds. */\r
                if( ( ulUIP_Events & uipARP_TIMER_EVENT ) != 0 )\r
                {\r
                        ulUIP_Events &= ~uipARP_TIMER_EVENT;\r
                        uip_arp_timer();\r
                }\r
-                       \r
+\r
                if( ulUIP_Events == pdFALSE )\r
                {\r
                        xQueueReceive( xEMACEventQueue, &ulNewEvent, portMAX_DELAY );\r
@@ -255,14 +255,14 @@ const unsigned long ul_uIPEventQueueLength = 10UL;
        xEMACEventQueue = xQueueCreate( ul_uIPEventQueueLength, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( const signed char * const ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( const signed char * const ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 50 / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -319,7 +319,7 @@ char *c;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 047332d9ad6e0c0ab7bb023c8b0ed27f595362c6..016644aa0d02b6d1172a59bac20ba6192e163c4b 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index e40540a247493a53f57a2eb98fca0f91459f2194..4cc130aa1e41e6ce71abcccb5de9c4d014a3aa19 100644 (file)
     ***************************************************************************\r
 \r
 \r
-    http://www.FreeRTOS.org - Documentation, books, training, latest versions, \r
+    http://www.FreeRTOS.org - Documentation, books, training, latest versions,\r
     license and Real Time Engineers Ltd. contact details.\r
 \r
     http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,\r
     including FreeRTOS+Trace - an indispensable productivity tool, and our new\r
     fully thread aware and reentrant UDP/IP stack.\r
 \r
-    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High \r
-    Integrity Systems, who sell the code with commercial support, \r
+    http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High\r
+    Integrity Systems, who sell the code with commercial support,\r
     indemnification and middleware, under the OpenRTOS brand.\r
-    \r
-    http://www.SafeRTOS.com - High Integrity Systems also provide a safety \r
-    engineered and independently SIL3 certified version for use in safety and \r
+\r
+    http://www.SafeRTOS.com - High Integrity Systems also provide a safety\r
+    engineered and independently SIL3 certified version for use in safety and\r
     mission critical applications that require provable dependability.\r
 */\r
 \r
@@ -120,7 +120,7 @@ constants are assigned to the timer IDs. */
 static void prvSetMACAddress( void );\r
 \r
 /*\r
- * Perform any uIP initialisation necessary. \r
+ * Perform any uIP initialisation necessary.\r
  */\r
 static void prvInitialise_uIP( void );\r
 \r
@@ -155,7 +155,7 @@ unsigned long ulNewEvent = 0UL;
 unsigned long ulUIP_Events = 0UL;\r
 \r
        ( void ) pvParameters;\r
-       \r
+\r
        /* Initialise the uIP stack. */\r
        prvInitialise_uIP();\r
 \r
@@ -170,10 +170,10 @@ unsigned long ulUIP_Events = 0UL;
        for( ;; )\r
        {\r
                if( ( ulUIP_Events & uipETHERNET_RX_EVENT ) != 0UL )\r
-               {               \r
+               {\r
                        /* Is there received data ready to be processed? */\r
                        uip_len = ( unsigned short ) ulEMACRead();\r
-                       \r
+\r
                        if( ( uip_len > 0 ) && ( uip_buf != NULL ) )\r
                        {\r
                                /* Standard uIP loop taken from the uIP manual. */\r
@@ -209,11 +209,11 @@ unsigned long ulUIP_Events = 0UL;
                                ulUIP_Events &= ~uipETHERNET_RX_EVENT;\r
                        }\r
                }\r
-               \r
+\r
                if( ( ulUIP_Events & uipPERIODIC_TIMER_EVENT ) != 0UL )\r
                {\r
                        ulUIP_Events &= ~uipPERIODIC_TIMER_EVENT;\r
-                                       \r
+\r
                        for( i = 0; i < UIP_CONNS; i++ )\r
                        {\r
                                uip_periodic( i );\r
@@ -228,14 +228,14 @@ unsigned long ulUIP_Events = 0UL;
                                }\r
                        }\r
                }\r
-               \r
+\r
                /* Call the ARP timer function every 10 seconds. */\r
                if( ( ulUIP_Events & uipARP_TIMER_EVENT ) != 0 )\r
                {\r
                        ulUIP_Events &= ~uipARP_TIMER_EVENT;\r
                        uip_arp_timer();\r
                }\r
-                       \r
+\r
                if( ulUIP_Events == pdFALSE )\r
                {\r
                        xQueueReceive( xEMACEventQueue, &ulNewEvent, portMAX_DELAY );\r
@@ -264,14 +264,14 @@ const unsigned long ul_uIPEventQueueLength = 10UL;
        xEMACEventQueue = xQueueCreate( ul_uIPEventQueueLength, sizeof( unsigned long ) );\r
 \r
        /* Create and start the uIP timers. */\r
-       xARPTimer = xTimerCreate(       ( const signed char * const ) "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
+       xARPTimer = xTimerCreate(       "ARPTimer", /* Just a name that is helpful for debugging, not used by the kernel. */\r
                                                                ( 10000UL / portTICK_RATE_MS ), /* Timer period. */\r
                                                                pdTRUE, /* Autor-reload. */\r
                                                                ( void * ) uipARP_TIMER,\r
                                                                prvUIPTimerCallback\r
                                                        );\r
 \r
-       xPeriodicTimer = xTimerCreate(  ( const signed char * const ) "PeriodicTimer",\r
+       xPeriodicTimer = xTimerCreate(  "PeriodicTimer",\r
                                                                        ( 50 / portTICK_RATE_MS ),\r
                                                                        pdTRUE, /* Autor-reload. */\r
                                                                        ( void * ) uipPERIODIC_TIMER,\r
@@ -328,7 +328,7 @@ char *c;
 \r
        /* Only interested in processing form input if this is the IO page. */\r
        c = strstr( pcInputString, "io.shtml" );\r
-       \r
+\r
        if( c )\r
        {\r
                /* Is there a command in the string? */\r
index 047332d9ad6e0c0ab7bb023c8b0ed27f595362c6..016644aa0d02b6d1172a59bac20ba6192e163c4b 100644 (file)
@@ -104,7 +104,7 @@ static PT_THREAD( file_stats ( struct httpd_state *s, char *ptr ) )
        PSOCK_BEGIN( &s->sout );\r
 \r
        ( void ) PT_YIELD_FLAG;\r
-       \r
+\r
        PSOCK_GENERATOR_SEND( &s->sout, generate_file_stats, strchr(ptr, ' ') + 1 );\r
 \r
        PSOCK_END( &s->sout );\r
@@ -177,7 +177,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -186,7 +186,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -227,7 +227,7 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 extern unsigned short usMaxJitter;\r
 static char cJitterBuffer[ 200 ];\r
 static unsigned short generate_runtime_stats( void *arg )\r
@@ -235,11 +235,11 @@ static unsigned short generate_runtime_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       \r
+\r
        #ifdef INCLUDE_HIGH_FREQUENCY_TIMER_TEST\r
        {\r
                sprintf( cJitterBuffer, "<p><br>Max high frequency timer jitter = %d peripheral clock periods.<p><br>", ( int ) usMaxJitter );\r
-               vTaskGetRunTimeStats( uip_appdata );\r
+               vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
                strcat( uip_appdata, cJitterBuffer );\r
        }\r
        #else\r
@@ -247,7 +247,7 @@ static unsigned short generate_runtime_stats( void *arg )
                ( void ) cJitterBuffer;\r
                strcpy( uip_appdata, "<p>Run time stats are only available in the debug_with_optimisation build configuration.<p>" );\r
        }\r
-       #endif  \r
+       #endif\r
 \r
        strcat( uip_appdata, cCountBuf );\r
 \r
index 96c0513718c32eaf86af8039245e08761357294e..4e2b31b2e158db47bfde0948eca39d0e581059d6 100644 (file)
@@ -112,31 +112,31 @@ void vStartMathTasks( unsigned portBASE_TYPE uxPriority )
 xTaskHandle xCreatedTask;\r
 \r
        /* Create one of the floating point tasks... */\r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask1, "Math1", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 0 ] ), uxPriority, &xCreatedTask );\r
        \r
        /* ... then enable floating point support for the created task so its flop\r
        flop registers are maintained in a consistent state. */\r
        xPortUsesFloatingPoint( xCreatedTask );\r
 \r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask2, "Math2", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 1 ] ), uxPriority, &xCreatedTask );\r
        xPortUsesFloatingPoint( xCreatedTask );\r
        \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask3, "Math3", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 2 ] ), uxPriority, &xCreatedTask );\r
        xPortUsesFloatingPoint( xCreatedTask );\r
        \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask4, "Math4", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 3 ] ), uxPriority, &xCreatedTask );\r
        xPortUsesFloatingPoint( xCreatedTask );\r
        \r
-       xTaskCreate( vCompetingMathTask1, ( signed char * ) "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask1, "Math5", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 4 ] ), uxPriority, &xCreatedTask );\r
        xPortUsesFloatingPoint( xCreatedTask );\r
        \r
-       xTaskCreate( vCompetingMathTask2, ( signed char * ) "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask2, "Math6", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 5 ] ), uxPriority, &xCreatedTask );\r
        xPortUsesFloatingPoint( xCreatedTask );\r
        \r
-       xTaskCreate( vCompetingMathTask3, ( signed char * ) "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask3, "Math7", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 6 ] ), uxPriority, &xCreatedTask );\r
        xPortUsesFloatingPoint( xCreatedTask );\r
        \r
-       xTaskCreate( vCompetingMathTask4, ( signed char * ) "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xCreatedTask );\r
+       xTaskCreate( vCompetingMathTask4, "Math8", mathSTACK_SIZE, ( void * ) &( usTaskCheck[ 7 ] ), uxPriority, &xCreatedTask );\r
        xPortUsesFloatingPoint( xCreatedTask );\r
 }\r
 /*-----------------------------------------------------------*/\r
index f840171edb335d0eb80384c536e46b150d9f7883..6c2ae816129db1d3a504056a5d547a9c2cc0d3f4 100644 (file)
@@ -126,11 +126,11 @@ static unsigned short generate_tcp_stats( void *arg )
        struct httpd_state      *s = ( struct httpd_state * ) arg;\r
 \r
        conn = &uip_conns[s->count];\r
-       return sprintf( ( char * ) uip_appdata, \r
+       return sprintf( ( char * ) uip_appdata,\r
                                         "<tr><td>%d</td><td>%u.%u.%u.%u:%u</td><td>%s</td><td>%u</td><td>%u</td><td>%c %c</td></tr>\r\n", htons(conn->lport),\r
                                         htons(conn->ripaddr.u16[0]) >> 8, htons(conn->ripaddr.u16[0]) & 0xff, htons(conn->ripaddr.u16[1]) >> 8,\r
                                         htons(conn->ripaddr.u16[1]) & 0xff, htons(conn->rport), states[conn->tcpstateflags & UIP_TS_MASK], conn->nrtx, conn->timer,\r
-                                        (uip_outstanding(conn)) ? '*' : ' ', (uip_stopped(conn)) ? '!' : ' ' ); \r
+                                        (uip_outstanding(conn)) ? '*' : ' ', (uip_stopped(conn)) ? '!' : ' ' );\r
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
@@ -172,7 +172,7 @@ static PT_THREAD( net_stats ( struct httpd_state *s, char *ptr ) )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskList( signed char *pcWriteBuffer );\r
+extern void vTaskList( char *pcWriteBuffer );\r
 extern char *pcGetTaskStatusMessage( void );\r
 static char cCountBuf[128];\r
 long           lRefreshCount = 0;\r
@@ -181,7 +181,7 @@ static unsigned short generate_rtos_stats( void *arg )
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d<p><br>%s", ( int ) lRefreshCount, pcGetTaskStatusMessage() );\r
-       vTaskList( uip_appdata );\r
+       vTaskList( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
@@ -221,13 +221,13 @@ static unsigned short generate_io_state( void *arg )
 }\r
 \r
 /*---------------------------------------------------------------------------*/\r
-extern void vTaskGetRunTimeStats( signed char *pcWriteBuffer );\r
+extern void vTaskGetRunTimeStats( char *pcWriteBuffer );\r
 static unsigned short generate_runtime_stats( void *arg )\r
 {\r
        ( void ) arg;\r
        lRefreshCount++;\r
        sprintf( cCountBuf, "<p><br>Refresh count = %d", ( int ) lRefreshCount );\r
-       vTaskGetRunTimeStats( uip_appdata );\r
+       vTaskGetRunTimeStats( ( char * ) uip_appdata );\r
        strcat( uip_appdata, cCountBuf );\r
 \r
        return strlen( uip_appdata );\r
index 251e33d3512a55f8b6d004e1c04ba1a85a907d32..4711eaf7065cdb88d7e0fe0316b0f2fed4312a8f 100644 (file)
@@ -144,7 +144,7 @@ unsigned long ulCompareMatchBits;
        \r
        /* Create the task that pends on the semaphore that is given by the\r
        high frequency interrupt. */\r
-       xTaskCreate( prvHighFrequencyTimerTask, ( signed char * ) "HFTmr", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
+       xTaskCreate( prvHighFrequencyTimerTask, "HFTmr", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );\r
        \r
        /* Setup the interrupt itself.  The STM module clock divider is setup when \r
        the tick interrupt is configured - which is when the scheduler is started - \r
index ab49902ff01d50106796c13fa6a7c0081c6b7aa6..c9bbb327b66c2b221bd54acaf449e9db86a175b5 100644 (file)
@@ -494,11 +494,11 @@ static void prvOptionallyCreateComprehensveTestApplication( void )
                vStartSemaphoreTasks( mainSEM_TEST_PRIORITY );\r
 \r
                /* Create the register test tasks, as described at the top of this file. */\r
-               xTaskCreate( prvRegisterCheckTask1, ( signed char * ) "Reg 1", configMINIMAL_STACK_SIZE, &ulRegisterTest1Count, tskIDLE_PRIORITY, NULL );\r
-               xTaskCreate( prvRegisterCheckTask2, ( signed char * ) "Reg 2", configMINIMAL_STACK_SIZE, &ulRegisterTest2Count, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( prvRegisterCheckTask1, "Reg 1", configMINIMAL_STACK_SIZE, &ulRegisterTest1Count, tskIDLE_PRIORITY, NULL );\r
+               xTaskCreate( prvRegisterCheckTask2, "Reg 2", configMINIMAL_STACK_SIZE, &ulRegisterTest2Count, tskIDLE_PRIORITY, NULL );\r
 \r
                /* Start the check task - which is defined in this file. */\r
-               xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
                /* This task has to be created last as it keeps account of the number of tasks\r
                it expects to see running. */\r
index 35f929a416e96a311472900cd131ad305710e37a..34f341d0254ecf8fd84fa7ee1f7f47ddd90c0bfa 100644 (file)
@@ -175,7 +175,7 @@ static struct netif xNetIf;
 \r
        /* Create the FreeRTOS defined basic command server.  This demonstrates use\r
        of the lwIP sockets API. */\r
-       xTaskCreate( vBasicSocketsCommandInterpreterTask, ( signed char * ) "CmdInt", configMINIMAL_STACK_SIZE * 10, NULL, configMAX_PRIORITIES - 2, NULL );\r
+       xTaskCreate( vBasicSocketsCommandInterpreterTask, "CmdInt", configMINIMAL_STACK_SIZE * 10, NULL, configMAX_PRIORITIES - 2, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -194,11 +194,11 @@ extern char *pcMainGetTaskStatusMessage( void );
        switch( iIndex )\r
        {\r
                case ssiTASK_STATS_INDEX :\r
-                       vTaskList( ( signed char * ) pcBuffer );\r
+                       vTaskList( pcBuffer );\r
                        break;\r
 \r
                case ssiRUN_TIME_STATS_INDEX :\r
-                       vTaskGetRunTimeStats( ( signed char * ) pcBuffer );\r
+                       vTaskGetRunTimeStats( pcBuffer );\r
                        break;\r
        }\r
 \r
index 775499ad99aa37f52d0bdf5accf023b81ff0e0a5..1d89356830619fa51220413086115c85e7139844 100644 (file)
@@ -188,7 +188,7 @@ const unsigned long ulLongTime_ms = 1000UL;
        tcpip_init( lwIPAppsInit, NULL );\r
 \r
        /* Create and start the check timer, as described at the top of this file. */\r
-       xCheckTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */\r
+       xCheckTimer = xTimerCreate( "CheckTimer",/* A text name, purely to help debugging. */\r
                                                                ( mainCHECK_TIMER_PERIOD_MS ),          /* The timer period, in this case 3000ms (3s). */\r
                                                                pdTRUE,                                                         /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */\r
                                                                ( void * ) 0,                                           /* The ID is not used, so can be set to anything. */\r
@@ -373,7 +373,7 @@ const char * const pcHeader = "Task            Abs Time      % Time\r\n*********
 \r
        /* Generate a table of task stats. */\r
        strcpy( pcWriteBuffer, pcHeader );\r
-       vTaskGetRunTimeStats( pcWriteBuffer + strlen( pcHeader ) );\r
+       vTaskGetRunTimeStats( ( char * ) pcWriteBuffer + strlen( pcHeader ) );\r
 \r
        /* There is no more data to return after this single string, so return\r
        pdFALSE. */\r
index 67a6cb42325037dc91cd5f61b2c8351b0290c11b..5c78ce96e2500a8568af3591465876526ac7899f 100644 (file)
@@ -153,14 +153,14 @@ void vStartRecursiveMutexTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( ( xQueueHandle ) xMutex, ( signed portCHAR * ) "Recursive_Mutex" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) xMutex, "Recursive_Mutex" );\r
 \r
 \r
        if( xMutex != NULL )\r
        {\r
-               xTaskCreate( prvRecursiveMutexControllingTask, ( signed portCHAR * ) "Rec1Ctrl", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle );\r
-        xTaskCreate( prvRecursiveMutexBlockingTask, ( signed portCHAR * ) "Rec2Blck", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle );\r
-        xTaskCreate( prvRecursiveMutexPollingTask, ( signed portCHAR * ) "Rec3Poll", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, &xPollingTaskHandle );\r
+               xTaskCreate( prvRecursiveMutexControllingTask, "Rec1Ctrl", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle );\r
+        xTaskCreate( prvRecursiveMutexBlockingTask, "Rec2Blck", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle );\r
+        xTaskCreate( prvRecursiveMutexPollingTask, "Rec3Poll", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, &xPollingTaskHandle );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index 3684506d0adefcb6abaf6b0f8680e642431d65a9..19ef0f29fb1f3c63b6e69187aac08aac38be6384 100644 (file)
@@ -105,7 +105,7 @@ mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is used to select between the two.
 The simply blinky demo is implemented and described in main_blinky.c.  The more \r
 comprehensive test and demo application is implemented and described in \r
 main_full.c. */\r
-#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     1\r
+#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     0\r
 \r
 /*\r
  * main_blinky() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1.\r
@@ -257,6 +257,8 @@ void vApplicationTickHook( void )
 \r
 void vAssertCalled( unsigned long ulLine, const char * const pcFileName )\r
 {\r
+static portBASE_TYPE xPrinted = pdFALSE;\r
+\r
        /* Parameters are not used. */\r
        ( void ) ulLine;\r
        ( void ) pcFileName;\r
@@ -264,12 +266,15 @@ void vAssertCalled( unsigned long ulLine, const char * const pcFileName )
        taskDISABLE_INTERRUPTS();\r
 \r
        /* Stop the trace recording. */\r
-       if( xTraceRunning == pdTRUE )\r
+       if( xPrinted == pdFALSE )\r
        {\r
+               xPrinted = pdTRUE;\r
+               if( xTraceRunning == pdTRUE )\r
+               {\r
                vTraceStop();\r
                prvSaveTraceFile();\r
+               }\r
        }\r
-               \r
        for( ;; );\r
 }\r
 /*-----------------------------------------------------------*/\r
index ca4824fd68c3d45d3e3c0b8e235492d68dd268a5..a3683efe51012ef092aa91a2a8e0f2cf3babd1e7 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * application.  It is provided as a convenient development and demonstration\r
  * test bed only.  This was tested using Windows XP on a dual core laptop.\r
  *\r
- * Windows will not be running the FreeRTOS simulator threads continuously, so \r
- * the timing information in the FreeRTOS+Trace logs have no meaningful units.  \r
- * See the documentation page for the Windows simulator for an explanation of \r
+ * Windows will not be running the FreeRTOS simulator threads continuously, so\r
+ * the timing information in the FreeRTOS+Trace logs have no meaningful units.\r
+ * See the documentation page for the Windows simulator for an explanation of\r
  * the slow timing:\r
  * http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html\r
  * - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT -\r
  *\r
  * NOTE 2:  This project provides two demo applications.  A simple blinky style\r
  * project, and a more comprehensive test and demo application.  The\r
- * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting in main.c is used to select \r
- * between the two.  See the notes on using mainCREATE_SIMPLE_BLINKY_DEMO_ONLY \r
+ * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting in main.c is used to select\r
+ * between the two.  See the notes on using mainCREATE_SIMPLE_BLINKY_DEMO_ONLY\r
  * in main.c.  This file implements the simply blinky style version.\r
  *\r
  * NOTE 3:  This file only contains the source code that is specific to the\r
- * basic demo.  Generic functions, such FreeRTOS hook functions, are defined \r
+ * basic demo.  Generic functions, such FreeRTOS hook functions, are defined\r
  * in main.c.\r
  ******************************************************************************\r
  *\r
@@ -94,9 +94,9 @@
  * The queue send task is implemented by the prvQueueSendTask() function in\r
  * this file.  prvQueueSendTask() sits in a loop that causes it to repeatedly\r
  * block for 200 (simulated as far as the scheduler is concerned, but in\r
- * reality much longer - see notes above) milliseconds, before sending the \r
- * value 100 to the queue that was created within main_blinky().  Once the \r
- * value is sent, the task loops back around to block for another 200 \r
+ * reality much longer - see notes above) milliseconds, before sending the\r
+ * value 100 to the queue that was created within main_blinky().  Once the\r
+ * value is sent, the task loops back around to block for another 200\r
  * (simulated) milliseconds.\r
  *\r
  * The Queue Receive Task:\r
  * in this file.  prvQueueReceiveTask() sits in a loop where it repeatedly\r
  * blocks on attempts to read data from the queue that was created within\r
  * main_blinky().  When data is received, the task checks the value of the\r
- * data, and if the value equals the expected 100, outputs a message.  The \r
- * 'block time' parameter passed to the queue receive function specifies that \r
- * the task should be held in the Blocked state indefinitely to wait for data \r
+ * data, and if the value equals the expected 100, outputs a message.  The\r
+ * 'block time' parameter passed to the queue receive function specifies that\r
+ * the task should be held in the Blocked state indefinitely to wait for data\r
  * to be available on the queue.  The queue receive task will only leave the\r
  * Blocked state when the queue send task writes to the queue.  As the queue\r
- * send task writes to the queue every 200 (simulated - see notes above) \r
- * milliseconds, the queue receive task leaves the Blocked state every 200 \r
+ * send task writes to the queue every 200 (simulated - see notes above)\r
+ * milliseconds, the queue receive task leaves the Blocked state every 200\r
  * milliseconds, and therefore outputs a message every 200 milliseconds.\r
  */\r
 \r
@@ -165,13 +165,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
@@ -191,7 +191,7 @@ static void prvQueueSendTask( void *pvParameters )
 portTickType xNextWakeTime;\r
 const unsigned long ulValueToSend = 100UL;\r
 \r
-       /* Remove compiler warning in the case that configASSERT() is not \r
+       /* Remove compiler warning in the case that configASSERT() is not\r
        defined. */\r
        ( void ) pvParameters;\r
 \r
@@ -222,7 +222,7 @@ static void prvQueueReceiveTask( void *pvParameters )
 {\r
 unsigned long ulReceivedValue;\r
 \r
-       /* Remove compiler warning in the case that configASSERT() is not \r
+       /* Remove compiler warning in the case that configASSERT() is not\r
        defined. */\r
        ( void ) pvParameters;\r
 \r
index 11ac892ae06d7fd3b97ff2456d784034d3498fe5..d5fc31146714dd418a59eb89592da6ace20538bc 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * application.  It is provided as a convenient development and demonstration\r
  * test bed only.  This was tested using Windows XP on a dual core laptop.\r
  *\r
- * Windows will not be running the FreeRTOS simulator threads continuously, so \r
- * the timing information in the FreeRTOS+Trace logs have no meaningful units.  \r
- * See the documentation page for the Windows simulator for an explanation of \r
+ * Windows will not be running the FreeRTOS simulator threads continuously, so\r
+ * the timing information in the FreeRTOS+Trace logs have no meaningful units.\r
+ * See the documentation page for the Windows simulator for an explanation of\r
  * the slow timing:\r
  * http://www.freertos.org/FreeRTOS-Windows-Simulator-Emulator-for-Visual-Studio-and-Eclipse-MingW.html\r
  * - READ THE WEB DOCUMENTATION FOR THIS PORT FOR MORE INFORMATION ON USING IT -\r
  *\r
  * NOTE 2:  This project provides two demo applications.  A simple blinky style\r
  * project, and a more comprehensive test and demo application.  The\r
- * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting in main.c is used to select \r
- * between the two.  See the notes on using mainCREATE_SIMPLE_BLINKY_DEMO_ONLY \r
+ * mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting in main.c is used to select\r
+ * between the two.  See the notes on using mainCREATE_SIMPLE_BLINKY_DEMO_ONLY\r
  * in main.c.  This file implements the comprehensive test and demo version.\r
  *\r
  * NOTE 3:  This file only contains the source code that is specific to the\r
- * basic demo.  Generic functions, such FreeRTOS hook functions, are defined in \r
+ * basic demo.  Generic functions, such FreeRTOS hook functions, are defined in\r
  * main.c.\r
  *******************************************************************************\r
  *\r
- * main() creates all the demo application tasks, then starts the scheduler.  \r
- * The web documentation provides more details of the standard demo application \r
- * tasks, which provide no particular functionality but do provide a good \r
+ * main() creates all the demo application tasks, then starts the scheduler.\r
+ * The web documentation provides more details of the standard demo application\r
+ * tasks, which provide no particular functionality but do provide a good\r
  * example of how to use the FreeRTOS API.\r
  *\r
  * In addition to the standard demo tasks, the following tasks and tests are\r
 /* Task function prototypes. */\r
 static void prvCheckTask( void *pvParameters );\r
 \r
-/* A task that is created from the idle task to test the functionality of \r
+/* A task that is created from the idle task to test the functionality of\r
 eTaskStateGet(). */\r
 static void prvTestTask( void *pvParameters );\r
 \r
@@ -181,7 +181,7 @@ static xSemaphoreHandle xMutexToDelete = NULL;
 int main_full( void )\r
 {\r
        /* Start the check task as described at the top of this file. */\r
-       xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Create the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
@@ -191,12 +191,12 @@ int main_full( void )
        vStartGenericQueueTasks( mainGEN_QUEUE_TASK_PRIORITY );\r
        vStartQueuePeekTasks();\r
        vStartMathTasks( mainFLOP_TASK_PRIORITY );\r
-       vStartRecursiveMutexTasks();    \r
+       vStartRecursiveMutexTasks();\r
        vStartCountingSemaphoreTasks();\r
        vStartDynamicPriorityTasks();\r
        vStartQueueSetTasks();\r
-       vStartQueueOverwriteTask( mainQUEUE_OVERWRITE_PRIORITY );       \r
-       xTaskCreate( prvDemoQueueSpaceFunctions, ( signed char * ) "QSpace", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       vStartQueueOverwriteTask( mainQUEUE_OVERWRITE_PRIORITY );\r
+       xTaskCreate( prvDemoQueueSpaceFunctions, "QSpace", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
        vStartEventGroupTasks();\r
 \r
        #if( configUSE_PREEMPTION != 0  )\r
@@ -207,8 +207,8 @@ int main_full( void )
        #endif\r
 \r
        /* The suicide tasks must be created last as they need to know how many\r
-       tasks were running prior to their creation.  This then allows them to \r
-       ascertain whether or not the correct/expected number of tasks are running at \r
+       tasks were running prior to their creation.  This then allows them to\r
+       ascertain whether or not the correct/expected number of tasks are running at\r
        any given time. */\r
        vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );\r
 \r
@@ -219,7 +219,7 @@ int main_full( void )
        /* Start the scheduler itself. */\r
        vTaskStartScheduler();\r
 \r
-    /* Should never get here unless there was not enough heap space to create \r
+    /* Should never get here unless there was not enough heap space to create\r
        the idle and other system tasks. */\r
     return 0;\r
 }\r
@@ -259,9 +259,9 @@ const portTickType xCycleFrequency = 2500 / portTICK_RATE_MS;
            else if( xAreIntegerMathsTaskStillRunning() != pdTRUE )\r
            {\r
                        pcStatusMessage = "Error: IntMath";\r
-           }   \r
+           }\r
                else if( xAreGenericQueueTasksStillRunning() != pdTRUE )\r
-               {                       \r
+               {\r
                        pcStatusMessage = "Error: GenQueue";\r
                }\r
                else if( xAreQueuePeekTasksStillRunning() != pdTRUE )\r
@@ -309,7 +309,7 @@ const portTickType xCycleFrequency = 2500 / portTICK_RATE_MS;
                        pcStatusMessage = "Error: Queue overwrite";\r
                }\r
 \r
-               /* This is the only task that uses stdout so its ok to call printf() \r
+               /* This is the only task that uses stdout so its ok to call printf()\r
                directly. */\r
                printf( "%s - %d\r\n", pcStatusMessage, xTaskGetTickCount() );\r
        }\r
@@ -358,7 +358,7 @@ extern unsigned portBASE_TYPE uxTaskGetTaskNumber( xTaskHandle xTask );
        prvDemonstrateTaskStateAndHandleGetFunctions();\r
 \r
        /* If xMutexToDelete has not already been deleted, then delete it now.\r
-       This is done purely to demonstrate the use of, and test, the \r
+       This is done purely to demonstrate the use of, and test, the\r
        vSemaphoreDelete() macro.  Care must be taken not to delete a semaphore\r
        that has tasks blocked on it. */\r
        if( xMutexToDelete != NULL )\r
@@ -377,7 +377,7 @@ extern unsigned portBASE_TYPE uxTaskGetTaskNumber( xTaskHandle xTask );
                xMutexToDelete = NULL;\r
        }\r
 \r
-       /* Exercise heap_4 a bit.  The malloc failed hook will trap failed \r
+       /* Exercise heap_4 a bit.  The malloc failed hook will trap failed\r
        allocations so there is no need to test here. */\r
        pvAllocated = pvPortMalloc( ( rand() % 100 ) + 1 );\r
        vPortFree( pvAllocated );\r
@@ -399,7 +399,7 @@ void vFullDemoTickHookFunction( void )
        /* Call the periodic queue overwrite from ISR demo. */\r
        vQueueOverwritePeriodicISRDemo();\r
 \r
-       /* Write to a queue that is in use as part of the queue set demo to \r
+       /* Write to a queue that is in use as part of the queue set demo to\r
        demonstrate using queue sets from an ISR. */\r
        vQueueSetAccessQueueSetFromISR();\r
 }\r
@@ -413,7 +413,7 @@ signed char *pcTaskName;
 static portBASE_TYPE xPerformedOneShotTests = pdFALSE;\r
 xTaskHandle xTestTask;\r
 \r
-       /* Demonstrate the use of the xTimerGetTimerDaemonTaskHandle() and \r
+       /* Demonstrate the use of the xTimerGetTimerDaemonTaskHandle() and\r
        xTaskGetIdleTaskHandle() functions.  Also try using the function that sets\r
        the task number. */\r
        xIdleTaskHandle = xTaskGetIdleTaskHandle();\r
@@ -421,7 +421,7 @@ xTaskHandle xTestTask;
        vTaskSetTaskNumber( xIdleTaskHandle, ( unsigned long ) ucConstTaskNumber );\r
        configASSERT( uxTaskGetTaskNumber( xIdleTaskHandle ) == ucConstTaskNumber );\r
 \r
-       /* This is the idle hook, so the current task handle should equal the \r
+       /* This is the idle hook, so the current task handle should equal the\r
        returned idle task handle. */\r
        if( xTaskGetCurrentTaskHandle() != xIdleTaskHandle )\r
        {\r
@@ -502,7 +502,7 @@ unsigned portBASE_TYPE uxReturn, x;
                {\r
                        /* Ask how many messages are available... */\r
                        uxReturn = uxQueueMessagesWaiting( xQueue );\r
-                       \r
+\r
                        /* Check the number of messages being reported as being available\r
                        is as expected, and force an assert if not. */\r
                        if( uxReturn != x )\r
@@ -514,7 +514,7 @@ unsigned portBASE_TYPE uxReturn, x;
 \r
                        /* Ask how many spaces remain in the queue... */\r
                        uxReturn = uxQueueSpacesAvailable( xQueue );\r
-                       \r
+\r
                        /* Check the number of spaces being reported as being available\r
                        is as expected, and force an assert if not. */\r
                        if( uxReturn != ( uxQueueLength - x ) )\r
@@ -536,7 +536,7 @@ unsigned portBASE_TYPE uxReturn, x;
                }\r
 \r
                uxReturn = uxQueueSpacesAvailable( xQueue );\r
-                       \r
+\r
                if( uxReturn != 0 )\r
                {\r
                        configASSERT( xQueue == NULL );\r
index 67a6cb42325037dc91cd5f61b2c8351b0290c11b..5c78ce96e2500a8568af3591465876526ac7899f 100644 (file)
@@ -153,14 +153,14 @@ void vStartRecursiveMutexTasks( void )
        is not being used.  The call to vQueueAddToRegistry() will be removed\r
        by the pre-processor if configQUEUE_REGISTRY_SIZE is not defined or is \r
        defined to be less than 1. */\r
-       vQueueAddToRegistry( ( xQueueHandle ) xMutex, ( signed portCHAR * ) "Recursive_Mutex" );\r
+       vQueueAddToRegistry( ( xQueueHandle ) xMutex, "Recursive_Mutex" );\r
 \r
 \r
        if( xMutex != NULL )\r
        {\r
-               xTaskCreate( prvRecursiveMutexControllingTask, ( signed portCHAR * ) "Rec1Ctrl", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle );\r
-        xTaskCreate( prvRecursiveMutexBlockingTask, ( signed portCHAR * ) "Rec2Blck", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle );\r
-        xTaskCreate( prvRecursiveMutexPollingTask, ( signed portCHAR * ) "Rec3Poll", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, &xPollingTaskHandle );\r
+               xTaskCreate( prvRecursiveMutexControllingTask, "Rec1Ctrl", configMINIMAL_STACK_SIZE, NULL, recmuCONTROLLING_TASK_PRIORITY, &xControllingTaskHandle );\r
+        xTaskCreate( prvRecursiveMutexBlockingTask, "Rec2Blck", configMINIMAL_STACK_SIZE, NULL, recmuBLOCKING_TASK_PRIORITY, &xBlockingTaskHandle );\r
+        xTaskCreate( prvRecursiveMutexPollingTask, "Rec3Poll", configMINIMAL_STACK_SIZE, NULL, recmuPOLLING_TASK_PRIORITY, &xPollingTaskHandle );\r
        }\r
 }\r
 /*-----------------------------------------------------------*/\r
index d09adb4d81bb37bde5112039088e646ece9d4c13..d11c74d45d33b1c275d8ddbbc85b46ab01ca696a 100644 (file)
@@ -105,7 +105,7 @@ mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is used to select between the two.
 The simply blinky demo is implemented and described in main_blinky.c.  The more \r
 comprehensive test and demo application is implemented and described in \r
 main_full.c. */\r
-#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     0\r
+#define mainCREATE_SIMPLE_BLINKY_DEMO_ONLY     1\r
 \r
 /*\r
  * main_blinky() is used when mainCREATE_SIMPLE_BLINKY_DEMO_ONLY is set to 1.\r
@@ -143,19 +143,17 @@ static portBASE_TYPE xTraceRunning = pdTRUE;
 \r
 /*-----------------------------------------------------------*/\r
 \r
-\r
 int main( void )\r
 {\r
        /* Initialise the trace recorder and create the label used to post user\r
        events to the trace recording on each tick interrupt. */\r
        vTraceInitTraceData();\r
-       printf( "Trace started.  Hit a key to dump trace file to disk.  Note stdin does not work when using the Eclipse console with MingW.\r\n" );\r
-       fflush( stdout );\r
-\r
        xTickTraceUserEvent = xTraceOpenLabel( "tick" );\r
 \r
        /* Start the trace recording - the recording is written to a file if\r
        configASSERT() is called. */\r
+       printf( "\r\nTrace started.  Hit a key to dump trace file to disk (does not work from Eclipse console).\r\n" );\r
+       fflush( stdout );\r
        uiTraceStart();\r
 \r
        /* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top\r
@@ -203,7 +201,7 @@ void vApplicationIdleHook( void )
        memory allocated by the kernel to any task that has since been deleted. */\r
 \r
        /* The trace can be stopped with any key press. */\r
-       if( kbhit() != pdFALSE )\r
+       if( _kbhit() != pdFALSE )\r
        {\r
                if( xTraceRunning == pdTRUE )\r
                {\r
@@ -260,6 +258,8 @@ void vApplicationTickHook( void )
 \r
 void vAssertCalled( unsigned long ulLine, const char * const pcFileName )\r
 {\r
+static portBASE_TYPE xPrinted = pdFALSE;\r
+\r
        /* Parameters are not used. */\r
        ( void ) ulLine;\r
        ( void ) pcFileName;\r
@@ -268,10 +268,14 @@ void vAssertCalled( unsigned long ulLine, const char * const pcFileName )
        __asm volatile( "int $3" );\r
 \r
        /* Stop the trace recording. */\r
-       if( xTraceRunning == pdTRUE )\r
+       if( xPrinted == pdFALSE )\r
        {\r
+               xPrinted = pdTRUE;\r
+               if( xTraceRunning == pdTRUE )\r
+               {\r
                vTraceStop();\r
                prvSaveTraceFile();\r
+               }\r
        }\r
 \r
        taskENABLE_INTERRUPTS();\r
@@ -289,11 +293,9 @@ FILE* pxOutputFile;
                fwrite( RecorderDataPtr, sizeof( RecorderDataType ), 1, pxOutputFile );\r
                fclose( pxOutputFile );\r
                printf( "\r\nTrace output saved to Trace.dump\r\n" );\r
-               fflush( stdout );\r
        }\r
        else\r
        {\r
                printf( "\r\nFailed to create trace dump file\r\n" );\r
-               fflush( stdout );\r
        }\r
 }\r
index bc419114059514fc833eb02d8104b76ec2c2b450..4a85834f91153a7b60d6eebd704d6497d331c0b9 100644 (file)
@@ -165,13 +165,13 @@ void main_blinky( void )
                /* Start the two tasks as described in the comments at the top of this\r
                file. */\r
                xTaskCreate( prvQueueReceiveTask,                                       /* The function that implements the task. */\r
-                                       ( signed char * ) "Rx",                                 /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
+                                       "Rx",                                                                   /* The text name assigned to the task - for debug only as it is not used by the kernel. */\r
                                        configMINIMAL_STACK_SIZE,                               /* The size of the stack to allocate to the task. */\r
                                        ( void * ) mainQUEUE_RECEIVE_PARAMETER, /* The parameter passed to the task - just to check the functionality. */\r
                                        mainQUEUE_RECEIVE_TASK_PRIORITY,                /* The priority assigned to the task. */\r
                                        NULL );                                                                 /* The task handle is not required, so NULL is passed. */\r
 \r
-               xTaskCreate( prvQueueSendTask, ( signed char * ) "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvQueueSendTask, "TX", configMINIMAL_STACK_SIZE, ( void * ) mainQUEUE_SEND_PARAMETER, mainQUEUE_SEND_TASK_PRIORITY, NULL );\r
 \r
                /* Start the tasks and timer running. */\r
                vTaskStartScheduler();\r
index 75098dc0b3ab2f38109b6eb446338254aa553a8e..22c81055fabbe7b09d4645be111e4630004a87a4 100644 (file)
@@ -181,7 +181,7 @@ static xSemaphoreHandle xMutexToDelete = NULL;
 int main_full( void )\r
 {\r
        /* Start the check task as described at the top of this file. */\r
-       xTaskCreate( prvCheckTask, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvCheckTask, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Create the standard demo tasks. */\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
@@ -196,7 +196,7 @@ int main_full( void )
        vStartDynamicPriorityTasks();\r
        vStartQueueSetTasks();\r
        vStartQueueOverwriteTask( mainQUEUE_OVERWRITE_PRIORITY );\r
-       xTaskCreate( prvDemoQueueSpaceFunctions, ( signed char * ) "QSpace", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
+       xTaskCreate( prvDemoQueueSpaceFunctions, "QSpace", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
        vStartEventGroupTasks();\r
 \r
        #if( configUSE_PREEMPTION != 0  )\r
@@ -410,7 +410,7 @@ static void prvDemonstrateTaskStateAndHandleGetFunctions( void )
 {\r
 xTaskHandle xIdleTaskHandle, xTimerTaskHandle;\r
 const unsigned char ucConstTaskNumber = 0x55U;\r
-signed char *pcTaskName;\r
+char *pcTaskName;\r
 static portBASE_TYPE xPerformedOneShotTests = pdFALSE;\r
 xTaskHandle xTestTask;\r
 \r
@@ -457,7 +457,7 @@ xTaskHandle xTestTask;
                xPerformedOneShotTests = pdTRUE;\r
 \r
                /* Create a test task to use to test other eTaskStateGet() return values. */\r
-               if( xTaskCreate( prvTestTask, ( const signed char * const ) "Test", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTestTask ) == pdPASS )\r
+               if( xTaskCreate( prvTestTask, "Test", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, &xTestTask ) == pdPASS )\r
                {\r
                        /* If this task is running, the test task must be in the ready state. */\r
                        if( eTaskStateGet( xTestTask ) != eReady )\r
index 2a8ee1c3712360c9019ba3aa47b23a9d5d8087ee..b9505cf6ad56e298406f7f6b38177ad8ab758d97 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -63,9 +63,9 @@
     1 tab == 4 spaces!\r
 */\r
 \r
-/* \r
+/*\r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used.\r
@@ -74,7 +74,7 @@
 \r
 /*\r
  * Program entry point.\r
- * \r
+ *\r
  * main() is responsible for setting up the microcontroller peripherals, then\r
  * starting the demo application tasks.  Once the tasks have been created the\r
  * scheduler is started and main() should never complete.\r
 \r
 /*\r
  * The Olimex demo board has a single built in LED.  This function simply\r
- * toggles its state. \r
+ * toggles its state.\r
  */\r
 void prvToggleOnBoardLED( void );\r
 \r
@@ -159,7 +159,7 @@ static void prvSetupHardware( void );
 static void prvErrorChecks( void *pvParameters );\r
 \r
 /*\r
- * Return true if the demo tasks are executing without error - otherwise \r
+ * Return true if the demo tasks are executing without error - otherwise\r
  * return false.\r
  */\r
 static void prvMainCheckOtherTasksAreStillRunning( void );\r
@@ -170,14 +170,14 @@ long lErrorInTask = pdFALSE;
 \r
 /*\r
  * Application entry point:\r
- * Starts all the other tasks, then starts the scheduler. \r
+ * Starts all the other tasks, then starts the scheduler.\r
  */\r
 int main( void )\r
 {\r
        /* Setup the hardware for use with the Olimex demo board. */\r
        prvSetupHardware();\r
 \r
-       /* Start the standard flash tasks so the WEB server is not the only thing \r
+       /* Start the standard flash tasks so the WEB server is not the only thing\r
        running. */\r
        vStartLEDFlashTasks( mainLED_TASK_PRIORITY );\r
        vStartSemaphoreTasks( tskIDLE_PRIORITY );\r
@@ -187,13 +187,13 @@ int main( void )
        vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
 \r
        /* Start the WEB server task and the error check task. */\r
-       xTaskCreate( vHTTPServerTask, ( signed char * ) "HTTP", configMINIMAL_STACK_SIZE, NULL, mainHTTP_TASK_PRIORITY, NULL );\r
-       xTaskCreate( prvErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainERROR_CHECK_PRIORITY, NULL );\r
-       \r
+       xTaskCreate( vHTTPServerTask, "HTTP", configMINIMAL_STACK_SIZE, NULL, mainHTTP_TASK_PRIORITY, NULL );\r
+       xTaskCreate( prvErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainERROR_CHECK_PRIORITY, NULL );\r
+\r
        /* Now all the tasks have been started - start the scheduler.\r
 \r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used. */\r
@@ -211,8 +211,8 @@ static void prvSetupHardware( void )
                SCB_MEMMAP = 2;\r
        #endif\r
 \r
-       /* Set all GPIO to output other than the P0.14 (BSL), and the JTAG pins.  \r
-       The JTAG pins are left as input as I'm not sure what will happen if the \r
+       /* Set all GPIO to output other than the P0.14 (BSL), and the JTAG pins.\r
+       The JTAG pins are left as input as I'm not sure what will happen if the\r
        Wiggler is connected after powerup - not that it would be a good idea to\r
        do that anyway. */\r
        GPIO_IODIR = ~( mainJTAG_PORT );\r
@@ -297,7 +297,7 @@ unsigned long ulState;
        else\r
        {\r
                GPIO_IOSET = mainON_BOARD_LED_BIT;\r
-       }       \r
+       }\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -311,7 +311,7 @@ portTickType xDelay = mainNO_ERROR_DELAY;
        for( ;; )\r
        {\r
                /* How long we delay depends on whether an error has been detected\r
-               or not.  Therefore the flash rate of the on board LED indicates \r
+               or not.  Therefore the flash rate of the on board LED indicates\r
                whether or not an error has occurred. */\r
                vTaskDelay( xDelay );\r
 \r
index b6a167bc8e0137ae0acaeefed4033cfcb1fc6976..87af91a4bb355d4b08f9f1160d4eea92d98e6559 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
     1 tab == 4 spaces!\r
 */\r
 \r
-/* \r
+/*\r
  * Very simple task that responds with a single WEB page to http requests.\r
  *\r
- * The WEB page displays task and system status.  A semaphore is used to \r
- * wake the task when there is processing to perform as determined by the \r
+ * The WEB page displays task and system status.  A semaphore is used to\r
+ * wake the task when there is processing to perform as determined by the\r
  * interrupts generated by the Ethernet interface.\r
  */\r
 \r
@@ -131,7 +131,7 @@ static void prvHTTPInit( void );
 static void prvNetifInit( void );\r
 \r
 /*\r
- * Generate the dynamic components of the served WEB page and transmit the \r
+ * Generate the dynamic components of the served WEB page and transmit the\r
  * entire page through the socket.\r
  */\r
 static void prvTransmitHTTP( unsigned char socket );\r
@@ -181,17 +181,17 @@ unsigned char ucState;
 \r
                                        if( ( sLen = select( i, SEL_RECV ) ) > 0 )\r
                                        {\r
-                                               if( sLen > httpSOCKET_BUFFER_SIZE ) \r
+                                               if( sLen > httpSOCKET_BUFFER_SIZE )\r
                                                {\r
                                                        sLen = httpSOCKET_BUFFER_SIZE;\r
                                                }\r
 \r
                                                disable();\r
-                                               \r
-                                               sLen = recv( i, ucSocketBuffer, sLen );    \r
+\r
+                                               sLen = recv( i, ucSocketBuffer, sLen );\r
 \r
                                                if( ucConnection[ i ] == 1 )\r
-                                               {       \r
+                                               {\r
                                                        /* This is our first time processing a HTTP\r
                                                         request on this connection. */\r
                                                        prvTransmitHTTP( i );\r
@@ -245,7 +245,7 @@ static void prvNetifInit( void )
        /* See definition of 'sysinit' in socket.c\r
         - 8 KB transmit buffer, and 8 KB receive buffer available.  These buffers\r
           are shared by all 4 channels.\r
-        - (0x55, 0x55) configures the send and receive buffers at \r
+        - (0x55, 0x55) configures the send and receive buffers at\r
                httpSOCKET_BUFFER_SIZE bytes for each of the 4 channels. */\r
        sysinit( 0x55, 0x55 );\r
 }\r
@@ -260,7 +260,7 @@ extern short usCheckStatus;
        send( socket, ( unsigned char * ) HTML_OUTPUT_BEGIN, strlen( HTML_OUTPUT_BEGIN ) );\r
 \r
        /* Generate then send the table showing the status of each task. */\r
-       vTaskList( ucSocketBuffer );\r
+       vTaskList( ( char * ) ucSocketBuffer );\r
        send( socket, ( unsigned char * ) ucSocketBuffer, strlen( ucSocketBuffer ) );\r
 \r
        /* Send the number of times the idle task has looped. */\r
@@ -271,7 +271,7 @@ extern short usCheckStatus;
     sprintf( ucSocketBuffer, "The tick count is 0x%08lx<br>", xTaskGetTickCount() );\r
        send( socket, ( unsigned char * ) ucSocketBuffer, strlen( ucSocketBuffer ) );\r
 \r
-       /* Show a message indicating whether or not the check task has discovered \r
+       /* Show a message indicating whether or not the check task has discovered\r
        an error in any of the standard demo tasks. */\r
     if( usCheckStatus == 0 )\r
     {\r
index 79c40ef90dcc1303ba34af45a29c2b65881a7265..504a4e2aa74f61d1da3f75696b2f5bbc1934bea7 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -84,18 +84,18 @@ static void vLCDTask( void *pvParameters );
  */\r
 static void prvSetupLCD( void );\r
 \r
-/* \r
- * Move to the first (0) or second (1) row of the LCD. \r
+/*\r
+ * Move to the first (0) or second (1) row of the LCD.\r
  */\r
 static void prvLCDGotoRow( unsigned portSHORT usRow );\r
 \r
-/* \r
- * Write a string of text to the LCD. \r
+/*\r
+ * Write a string of text to the LCD.\r
  */\r
 static void prvLCDPutString( portCHAR *pcString );\r
 \r
-/* \r
- * Clear the LCD. \r
+/*\r
+ * Clear the LCD.\r
  */\r
 static void prvLCDClear( void );\r
 \r
@@ -115,25 +115,25 @@ static void prvLCDClear( void );
 #define PMAEN                          *( ( unsigned short * ) 0x60c )\r
 \r
 /* LCD R/W signal. */\r
-#define  lcdRW  LATDbits.LATD5       \r
+#define  lcdRW  LATDbits.LATD5\r
 \r
 /* LCD lcdRS signal. */\r
-#define  lcdRS  LATBbits.LATB15      \r
+#define  lcdRS  LATBbits.LATB15\r
 \r
 /* LCD lcdE signal . */\r
-#define  lcdE   LATDbits.LATD4       \r
+#define  lcdE   LATDbits.LATD4\r
 \r
 /* Control signal pin direction. */\r
-#define  RW_TRIS       TRISDbits.TRISD5 \r
+#define  RW_TRIS       TRISDbits.TRISD5\r
 #define  RS_TRIS       TRISBbits.TRISB15\r
 #define  E_TRIS                TRISDbits.TRISD4\r
 \r
 /* Port for LCD data */\r
-#define  lcdDATA      LATE           \r
+#define  lcdDATA      LATE\r
 #define  lcdDATAPORT  PORTE\r
 \r
 /* I/O setup for data Port. */\r
-#define  TRISDATA  TRISE          \r
+#define  TRISDATA  TRISE\r
 \r
 /* The length of the queue used to send messages to the LCD gatekeeper task. */\r
 #define lcdQUEUE_SIZE          3\r
@@ -155,7 +155,7 @@ xQueueHandle xStartLCDTask( void )
 \r
        /* Start the task that will write to the LCD.  The LCD hardware is\r
        initialised from within the task itself so delays can be used. */\r
-       xTaskCreate( vLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
+       xTaskCreate( vLCDTask, "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
 \r
        return xLCDQueue;\r
 }\r
@@ -174,20 +174,20 @@ static void prvLCDGotoRow( unsigned portSHORT usRow )
 }\r
 /*-----------------------------------------------------------*/\r
 \r
-static void prvLCDCommand( portCHAR cCommand ) \r
+static void prvLCDCommand( portCHAR cCommand )\r
 {\r
        /* Prepare RD0 - RD7. */\r
-       lcdDATA &= 0xFF00;               \r
+       lcdDATA &= 0xFF00;\r
 \r
        /* Command byte to lcd. */\r
-    lcdDATA |= cCommand;                  \r
+    lcdDATA |= cCommand;\r
 \r
        /* Ensure lcdRW is 0. */\r
-       lcdRW = 0;                       \r
+       lcdRW = 0;\r
     lcdRS = 0;\r
 \r
        /* Toggle lcdE line. */\r
-    lcdE = 1;                        \r
+    lcdE = 1;\r
     vTaskDelay( lcdVERY_SHORT_DELAY );\r
     lcdE = 0;\r
 \r
@@ -198,26 +198,26 @@ static void prvLCDCommand( portCHAR cCommand )
 static void prvLCDData( portCHAR cChar )\r
 {\r
        /* ensure lcdRW is 0. */\r
-       lcdRW = 0;                                       \r
+       lcdRW = 0;\r
 \r
        /* Assert register select to 1. */\r
-    lcdRS = 1;                       \r
+    lcdRS = 1;\r
 \r
        /* Prepare RD0 - RD7. */\r
-       lcdDATA &= 0xFF00;               \r
+       lcdDATA &= 0xFF00;\r
 \r
        /* Data byte to lcd. */\r
-    lcdDATA |= cChar;                 \r
-    lcdE = 1;                          \r
+    lcdDATA |= cChar;\r
+    lcdE = 1;\r
        Nop();\r
     Nop();\r
     Nop();\r
 \r
        /* Toggle lcdE signal. */\r
-    lcdE = 0;                       \r
+    lcdE = 0;\r
 \r
        /* Negate register select to 0. */\r
-    lcdRS = 0;                      \r
+    lcdRS = 0;\r
 \r
        vTaskDelay( lcdVERY_SHORT_DELAY );\r
 }\r
@@ -245,83 +245,83 @@ static void prvSetupLCD( void )
 {\r
        /* Wait for proper power up. */\r
        vTaskDelay( lcdLONG_DELAY );\r
-                       \r
+\r
        /* Set initial states for the data and control pins */\r
-       LATE &= 0xFF00; \r
+       LATE &= 0xFF00;\r
 \r
        /* R/W state set low. */\r
-    lcdRW = 0;                       \r
+    lcdRW = 0;\r
 \r
        /* lcdRS state set low. */\r
-       lcdRS = 0;                       \r
+       lcdRS = 0;\r
 \r
        /* lcdE state set low. */\r
-       lcdE = 0;                        \r
+       lcdE = 0;\r
 \r
        /* Set data and control pins to outputs */\r
        TRISE &= 0xFF00;\r
 \r
        /* lcdRW pin set as output. */\r
-       RW_TRIS = 0;                  \r
+       RW_TRIS = 0;\r
 \r
        /* lcdRS pin set as output. */\r
-       RS_TRIS = 0;                  \r
+       RS_TRIS = 0;\r
 \r
        /* lcdE pin set as output. */\r
-       E_TRIS = 0;                   \r
+       E_TRIS = 0;\r
 \r
        /* 1st LCD initialization sequence */\r
        lcdDATA &= 0xFF00;\r
     lcdDATA |= 0x0038;\r
-    lcdE = 1;  \r
+    lcdE = 1;\r
     Nop();\r
     Nop();\r
     Nop();\r
 \r
        /* Toggle lcdE signal. */\r
-    lcdE = 0;                        \r
+    lcdE = 0;\r
 \r
        vTaskDelay( lcdSHORT_DELAY );\r
        vTaskDelay( lcdSHORT_DELAY );\r
        vTaskDelay( lcdSHORT_DELAY );\r
-      \r
+\r
        /* 2nd LCD initialization sequence */\r
        lcdDATA &= 0xFF00;\r
     lcdDATA |= 0x0038;\r
-    lcdE = 1;  \r
+    lcdE = 1;\r
+    Nop();\r
     Nop();\r
     Nop();\r
-    Nop();     \r
 \r
        /* Toggle lcdE signal. */\r
-    lcdE = 0;                        \r
+    lcdE = 0;\r
 \r
     vTaskDelay( lcdSHORT_DELAY );\r
 \r
        /* 3rd LCD initialization sequence */\r
        lcdDATA &= 0xFF00;\r
     lcdDATA |= 0x0038;\r
-    lcdE = 1;          \r
+    lcdE = 1;\r
+    Nop();\r
     Nop();\r
     Nop();\r
-    Nop();     \r
 \r
        /* Toggle lcdE signal. */\r
-    lcdE = 0;                        \r
+    lcdE = 0;\r
 \r
        vTaskDelay( lcdSHORT_DELAY );\r
 \r
 \r
        /* Function set. */\r
-    prvLCDCommand( 0x38 );              \r
+    prvLCDCommand( 0x38 );\r
 \r
        /* Display on/off control, cursor blink off (0x0C). */\r
-    prvLCDCommand( 0x0C );              \r
+    prvLCDCommand( 0x0C );\r
 \r
        /* Entry mode set (0x06). */\r
-    prvLCDCommand( 0x06 );             \r
+    prvLCDCommand( 0x06 );\r
 \r
-       prvLCDCommand( lcdCLEAR );        \r
+       prvLCDCommand( lcdCLEAR );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
@@ -351,9 +351,9 @@ unsigned portSHORT usRow = 0;
                usRow++;\r
                prvLCDPutString( xMessage.pcMessage );\r
 \r
-               /* Delay the requested amount of time to ensure the text just written \r
+               /* Delay the requested amount of time to ensure the text just written\r
                to the LCD is not overwritten. */\r
-               vTaskDelay( xMessage.xMinDisplayTime );         \r
+               vTaskDelay( xMessage.xMinDisplayTime );\r
        }\r
 }\r
 \r
index e67d69f3a37e3c65b1b359b6c2d5750ac8c9ac10..3703ff89cf8097168a3348d8ab3bf2de7629a75a 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
  * defined and/or created within this file:\r
  *\r
  * "Fast Interrupt Test" - A high frequency periodic interrupt is generated\r
- * using a free running timer to demonstrate the use of the \r
- * configKERNEL_INTERRUPT_PRIORITY configuration constant.  The interrupt \r
+ * using a free running timer to demonstrate the use of the\r
+ * configKERNEL_INTERRUPT_PRIORITY configuration constant.  The interrupt\r
  * service routine measures the number of processor clocks that occur between\r
- * each interrupt - and in so doing measures the jitter in the interrupt \r
- * timing.  The maximum measured jitter time is latched in the usMaxJitter \r
- * variable, and displayed on the LCD by the 'Check' as described below.  \r
- * The fast interrupt is configured and handled in the timer_test.c source \r
+ * each interrupt - and in so doing measures the jitter in the interrupt\r
+ * timing.  The maximum measured jitter time is latched in the usMaxJitter\r
+ * variable, and displayed on the LCD by the 'Check' as described below.\r
+ * The fast interrupt is configured and handled in the timer_test.c source\r
  * file.\r
  *\r
  * "LCD" task - the LCD task is a 'gatekeeper' task.  It is the only task that\r
  * is permitted to access the LCD directly.  Other tasks wishing to write a\r
- * message to the LCD send the message on a queue to the LCD task instead of \r
- * accessing the LCD themselves.  The LCD task just blocks on the queue waiting \r
+ * message to the LCD send the message on a queue to the LCD task instead of\r
+ * accessing the LCD themselves.  The LCD task just blocks on the queue waiting\r
  * for messages - waking and displaying the messages as they arrive.  The LCD\r
- * task is defined in lcd.c.  \r
- * \r
- * "Check" task -  This only executes every three seconds but has the highest \r
- * priority so is guaranteed to get processor time.  Its main function is to \r
+ * task is defined in lcd.c.\r
+ *\r
+ * "Check" task -  This only executes every three seconds but has the highest\r
+ * priority so is guaranteed to get processor time.  Its main function is to\r
  * check that all the standard demo tasks are still operational.  Should any\r
  * unexpected behaviour within a demo task be discovered the 'check' task will\r
- * write "FAIL #n" to the LCD (via the LCD task).  If all the demo tasks are \r
+ * write "FAIL #n" to the LCD (via the LCD task).  If all the demo tasks are\r
  * executing with their expected behaviour then the check task writes the max\r
  * jitter time to the LCD (again via the LCD task), as described above.\r
  */\r
@@ -177,14 +177,14 @@ int main( void )
        prvSetupHardware();\r
 \r
        /* Create the standard demo tasks. */\r
-       vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );       \r
+       vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
        vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
        vStartFlashCoRoutines( mainNUM_FLASH_COROUTINES );\r
        vAltStartComTestTasks( mainCOM_TEST_PRIORITY, mainCOM_TEST_BAUD_RATE, mainCOM_TEST_LED );\r
        vCreateBlockTimeTasks();\r
 \r
        /* Create the test tasks defined within this file. */\r
-       xTaskCreate( vCheckTask, ( signed char * ) "Check", mainCHECK_TAKS_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       xTaskCreate( vCheckTask, "Check", mainCHECK_TAKS_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the task that will control the LCD.  This returns the handle\r
        to the queue used to write text out to the task. */\r
@@ -211,7 +211,7 @@ static void prvSetupHardware( void )
 static void vCheckTask( void *pvParameters )\r
 {\r
 /* Used to wake the task at the correct frequency. */\r
-portTickType xLastExecutionTime; \r
+portTickType xLastExecutionTime;\r
 \r
 /* The maximum jitter time measured by the fast interrupt test. */\r
 extern unsigned short usMaxJitter ;\r
@@ -244,7 +244,7 @@ unsigned short usErrorDetected = pdFALSE;
                        usErrorDetected = pdTRUE;\r
                        sprintf( cStringBuffer, "FAIL #1" );\r
                }\r
-       \r
+\r
                if( xAreComTestTasksStillRunning() != pdTRUE )\r
                {\r
                        usErrorDetected = pdTRUE;\r
index 80a381ed7a22f1cd7337497ed9f4ae50b691ea5d..d1e85ef494ba46e59c4a1717f449835878cddf44 100644 (file)
@@ -186,7 +186,7 @@ static unsigned portLONG ulPageHits = 0;
                        strcat( cDynamicPage, "<p><pre>Task          State  Priority  Stack     #<br>************************************************<br>" );\r
 \r
                        /* ... Then the list of tasks and their status... */\r
-                       vTaskList( ( signed portCHAR * ) cDynamicPage + strlen( cDynamicPage ) );\r
+                       vTaskList( cDynamicPage + strlen( cDynamicPage ) );\r
 \r
                        /* ... Finally the page footer. */\r
                        strcat( cDynamicPage, webHTML_END );\r
index a262771f2cf451a9145bc9e1ab735642e7d52963..7e25cb3eb70dcde42d7baf333078ed972cfb0f98 100644 (file)
@@ -101,7 +101,7 @@ low_level_init(struct netif *netif)
   vTaskPrioritySet( NULL, uxPriority );\r
 \r
   /* Create the task that handles the MACB. */\r
-  // xTaskCreate( ethernetif_input, ( signed portCHAR * ) "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, NULL, netifINTERFACE_TASK_PRIORITY, NULL );\r
+  // xTaskCreate( ethernetif_input, "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, NULL, netifINTERFACE_TASK_PRIORITY, NULL );\r
   sys_thread_new( ethernetif_input, NULL, netifINTERFACE_TASK_PRIORITY );\r
 }\r
 \r
index 95fc2649a5e4b9f5f11d646c92184145e1dd3c52..ae1979caadf3bffe3465681650a3679a9edb4aec 100644 (file)
@@ -64,7 +64,7 @@
 #define archMESG_QUEUE_LENGTH ( 6 )\r
 #define archPOST_BLOCK_TIME_MS  ( ( unsigned portLONG ) 10000 )\r
 \r
-struct timeoutlist \r
+struct timeoutlist\r
 {\r
   struct sys_timeouts timeouts;\r
   xTaskHandle pid;\r
@@ -110,7 +110,7 @@ sys_mbox_free(sys_mbox_t mbox)
 //   Posts the "msg" to the mailbox.\r
 void\r
 sys_mbox_post(sys_mbox_t mbox, void *data)\r
-{   \r
+{\r
   xQueueSend( mbox, &data, ( portTickType ) ( archPOST_BLOCK_TIME_MS / portTICK_RATE_MS ) );\r
 }\r
 \r
@@ -129,7 +129,7 @@ sys_mbox_post(sys_mbox_t mbox, void *data)
   timeout.\r
 \r
   Note that a function with a similar name, sys_mbox_fetch(), is\r
-  implemented by lwIP. \r
+  implemented by lwIP.\r
 */\r
 u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, u32_t timeout)\r
 {\r
@@ -142,7 +142,7 @@ portTickType StartTime, EndTime, Elapsed;
   {\r
     msg = &dummyptr;\r
   }\r
-  \r
+\r
   if( timeout != 0 )\r
   {\r
     if(pdTRUE == xQueueReceive( mbox, &(*msg), timeout ) )\r
@@ -254,7 +254,7 @@ portTickType StartTime, EndTime, Elapsed;
     }\r
 \r
     return ( Elapsed ); // return time blocked\r
-  \r
+\r
   }\r
 }\r
 \r
@@ -300,7 +300,7 @@ sys_init(void)
   each thread has a list of timeouts which is represented as a linked\r
   list of sys_timeout structures. The sys_timeouts structure holds a\r
   pointer to a linked list of timeouts. This function is called by\r
-  the lwIP timeout scheduler and must not return a NULL value. \r
+  the lwIP timeout scheduler and must not return a NULL value.\r
 \r
   In a single threaded sys_arch implementation, this function will\r
   simply return a pointer to a global sys_timeouts variable stored in\r
@@ -311,7 +311,7 @@ sys_arch_timeouts(void)
 {\r
 int i;\r
 xTaskHandle pid;\r
-struct timeoutlist *tl;  \r
+struct timeoutlist *tl;\r
 \r
   pid = xTaskGetCurrentTaskHandle( );\r
 \r
@@ -338,7 +338,7 @@ struct timeoutlist *tl;
 \r
 /*-----------------------------------------------------------------------------------*/\r
 /*-----------------------------------------------------------------------------------*/\r
-// TBD \r
+// TBD\r
 /*-----------------------------------------------------------------------------------*/\r
 /*\r
   Starts a new thread with priority "prio" that will begin its execution in the\r
@@ -354,30 +354,30 @@ static int iCall = 0;
 \r
   if( thread == ethernetif_input )\r
   {\r
-    result = xTaskCreate( thread, ( signed portCHAR * ) "ETHINT", netifINTERFACE_TASK_STACK_SIZE, arg, prio, &CreatedTask );\r
+    result = xTaskCreate( thread, "ETHINT", netifINTERFACE_TASK_STACK_SIZE, arg, prio, &CreatedTask );\r
   }\r
   else if( iCall == 0 )\r
   {\r
     /* The first time this is called we are creating the lwIP handler. */\r
-    result = xTaskCreate( thread, ( signed portCHAR * ) "lwIP", lwipINTERFACE_STACK_SIZE, arg, prio, &CreatedTask );\r
+    result = xTaskCreate( thread, "lwIP", lwipINTERFACE_STACK_SIZE, arg, prio, &CreatedTask );\r
     iCall++;\r
   }\r
 #if (HTTP_USED == 1)\r
   else if (thread == vBasicWEBServer)\r
   {\r
-    result = xTaskCreate( thread, ( signed portCHAR * ) "WEB", lwipBASIC_WEB_SERVER_STACK_SIZE, arg, prio, &CreatedTask );\r
+    result = xTaskCreate( thread, "WEB", lwipBASIC_WEB_SERVER_STACK_SIZE, arg, prio, &CreatedTask );\r
   }\r
 #endif\r
 #if (TFTP_USED == 1)\r
   else if (thread == vBasicTFTPServer)\r
   {\r
-    result = xTaskCreate( thread, ( signed portCHAR * ) "TFTP", lwipBASIC_TFTP_SERVER_STACK_SIZE, arg, prio, &CreatedTask );\r
+    result = xTaskCreate( thread, "TFTP", lwipBASIC_TFTP_SERVER_STACK_SIZE, arg, prio, &CreatedTask );\r
   }\r
 #endif\r
 #if (SMTP_USED == 1)\r
   else if (thread == vBasicSMTPClient)\r
   {\r
-    result = xTaskCreate( thread, ( signed portCHAR * ) "SMTP", lwipBASIC_SMTP_CLIENT_STACK_SIZE, arg, prio, &CreatedTask );\r
+    result = xTaskCreate( thread, "SMTP", lwipBASIC_SMTP_CLIENT_STACK_SIZE, arg, prio, &CreatedTask );\r
   }\r
 #endif\r
 \r
@@ -422,7 +422,7 @@ sys_prot_t sys_arch_protect(void)
   an operating system.\r
 */\r
 void sys_arch_unprotect(sys_prot_t pval)\r
-{ \r
+{\r
   ( void ) pval;\r
   vPortExitCritical();\r
 }\r
index 7535797ea89ea1bb30dac30a381ba6ed9604ae59..8c9572096f0acad7098e4edac373e52cb8cf0e9e 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -75,7 +75,7 @@
 /*\r
        Changes from V3.2.2\r
 \r
-       + Changed the page returned by the lwIP WEB server demo to display the \r
+       + Changed the page returned by the lwIP WEB server demo to display the\r
          task status table rather than the TCP/IP statistics.\r
 */\r
 \r
@@ -94,9 +94,9 @@
 #include "SAM7_EMAC.h"\r
 \r
 /* lwIP includes. */\r
-#include "lwip/api.h" \r
+#include "lwip/api.h"\r
 #include "lwip/tcpip.h"\r
-#include "lwip/memp.h" \r
+#include "lwip/memp.h"\r
 #include "lwip/stats.h"\r
 #include "netif/loopif.h"\r
 \r
 \r
 /*------------------------------------------------------------*/\r
 \r
-/* \r
+/*\r
  * Process an incoming connection on port 80.\r
  *\r
  * This simply checks to see if the incoming data contains a GET request, and\r
  * if so sends back a single dynamically created page.  The connection is then\r
- * closed.  A more complete implementation could create a task for each \r
- * connection. \r
+ * closed.  A more complete implementation could create a task for each\r
+ * connection.\r
  */\r
 static void vProcessConnection( struct netconn *pxNetCon );\r
 \r
@@ -153,8 +153,8 @@ static unsigned long ulPageHits = 0;
        if( pxRxBuffer != NULL )\r
        {\r
                /* Where is the data? */\r
-               netbuf_data( pxRxBuffer, ( void * ) &pcRxString, &usLength );      \r
-       \r
+               netbuf_data( pxRxBuffer, ( void * ) &pcRxString, &usLength );\r
+\r
                /* Is this a GET?  We don't handle anything else. */\r
                if( !strncmp( pcRxString, "GET", 3 ) )\r
                {\r
@@ -175,14 +175,14 @@ static unsigned long ulPageHits = 0;
                        strcat( cDynamicPage, cPageHits );\r
                        strcat( cDynamicPage, "<p><pre>Task          State  Priority  Stack     #<br>************************************************<br>" );\r
                        /* ... Then the list of tasks and their status... */\r
-                       vTaskList( ( signed char * ) cDynamicPage + strlen( cDynamicPage ) );   \r
+                       vTaskList( cDynamicPage + strlen( cDynamicPage ) );\r
                        /* ... Finally the page footer. */\r
                        strcat( cDynamicPage, webHTML_END );\r
 \r
                        /* Write out the dynamically generated page. */\r
                        netconn_write(pxNetCon, cDynamicPage, (u16_t)strlen( cDynamicPage ), NETCONN_COPY );\r
                }\r
\r
+\r
                netbuf_delete( pxRxBuffer );\r
        }\r
 \r
@@ -194,9 +194,9 @@ void vlwIPInit( void )
 {\r
     /* Initialize lwIP and its interface layer. */\r
        sys_init();\r
-       mem_init();                                                             \r
+       mem_init();\r
        memp_init();\r
-       pbuf_init(); \r
+       pbuf_init();\r
        netif_init();\r
        ip_init();\r
        tcpip_init( NULL, NULL );\r
@@ -225,7 +225,7 @@ static struct netif EMAC_if;
 \r
        /* bring it up */\r
     netif_set_up(&EMAC_if);\r
-       \r
+\r
        /* Create a new tcp connection handle */\r
 \r
        pxHTTPListener = netconn_new( NETCONN_TCP );\r
index 4d39c37cd5d820a18f9b8530d5fe5b82fef8025d..10f3a2d8d1c237333b9966f1538c11b0fb6cbcc4 100644 (file)
@@ -1,8 +1,8 @@
 /*\r
  * Copyright (c) 2001-2003 Swedish Institute of Computer Science.\r
- * All rights reserved. \r
- * \r
- * Redistribution and use in source and binary forms, with or without modification, \r
+ * All rights reserved.\r
+ *\r
+ * Redistribution and use in source and binary forms, with or without modification,\r
  * are permitted provided that the following conditions are met:\r
  *\r
  * 1. Redistributions of source code must retain the above copyright notice,\r
  *    this list of conditions and the following disclaimer in the documentation\r
  *    and/or other materials provided with the distribution.\r
  * 3. The name of the author may not be used to endorse or promote products\r
- *    derived from this software without specific prior written permission. \r
+ *    derived from this software without specific prior written permission.\r
  *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED \r
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF \r
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT \r
- * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, \r
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT \r
- * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN \r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING \r
- * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY \r
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED\r
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT\r
+ * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\r
+ * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING\r
+ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY\r
  * OF SUCH DAMAGE.\r
  *\r
  * This file is part of the lwIP TCP/IP stack.\r
- * \r
+ *\r
  * Author: Adam Dunkels <adam@sics.se>\r
  *\r
  */\r
@@ -40,7 +40,7 @@
 #define archMESG_QUEUE_LENGTH  ( 6 )\r
 #define archPOST_BLOCK_TIME_MS ( ( unsigned long ) 10000 )\r
 \r
-struct timeoutlist \r
+struct timeoutlist\r
 {\r
        struct sys_timeouts timeouts;\r
        xTaskHandle pid;\r
@@ -84,14 +84,14 @@ sys_mbox_free(sys_mbox_t mbox)
                __asm volatile ( "NOP" );\r
        }\r
 \r
-       vQueueDelete( mbox ); \r
+       vQueueDelete( mbox );\r
 }\r
 \r
 /*-----------------------------------------------------------------------------------*/\r
 //   Posts the "msg" to the mailbox.\r
 void\r
 sys_mbox_post(sys_mbox_t mbox, void *data)\r
-{   \r
+{\r
        xQueueSend( mbox, &data, ( portTickType ) ( archPOST_BLOCK_TIME_MS / portTICK_RATE_MS ) );\r
 }\r
 \r
@@ -110,7 +110,7 @@ sys_mbox_post(sys_mbox_t mbox, void *data)
   timeout.\r
 \r
   Note that a function with a similar name, sys_mbox_fetch(), is\r
-  implemented by lwIP. \r
+  implemented by lwIP.\r
 */\r
 u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, u32_t timeout)\r
 {\r
@@ -123,7 +123,7 @@ portTickType StartTime, EndTime, Elapsed;
        {\r
                msg = &dummyptr;\r
        }\r
-               \r
+\r
        if(     timeout != 0 )\r
        {\r
                if(pdTRUE == xQueueReceive( mbox, &(*msg), timeout ) )\r
@@ -154,7 +154,7 @@ portTickType StartTime, EndTime, Elapsed;
                {\r
                        Elapsed = 1;\r
                }\r
-               return ( Elapsed ); // return time blocked TBD test     \r
+               return ( Elapsed ); // return time blocked TBD test\r
        }\r
 }\r
 \r
@@ -217,7 +217,7 @@ portTickType StartTime, EndTime, Elapsed;
                        {\r
                                Elapsed = 1;\r
                        }\r
-                       return (Elapsed); // return time blocked TBD test       \r
+                       return (Elapsed); // return time blocked TBD test\r
                }\r
                else\r
                {\r
@@ -237,8 +237,8 @@ portTickType StartTime, EndTime, Elapsed;
                        Elapsed = 1;\r
                }\r
 \r
-               return ( Elapsed ); // return time blocked      \r
-                \r
+               return ( Elapsed ); // return time blocked\r
+\r
        }\r
 }\r
 \r
@@ -255,7 +255,7 @@ sys_sem_signal(sys_sem_t sem)
 void\r
 sys_sem_free(sys_sem_t sem)\r
 {\r
-       vQueueDelete( sem ); \r
+       vQueueDelete( sem );\r
 }\r
 \r
 /*-----------------------------------------------------------------------------------*/\r
@@ -283,7 +283,7 @@ sys_init(void)
   each thread has a list of timeouts which is represented as a linked\r
   list of sys_timeout structures. The sys_timeouts structure holds a\r
   pointer to a linked list of timeouts. This function is called by\r
-  the lwIP timeout scheduler and must not return a NULL value. \r
+  the lwIP timeout scheduler and must not return a NULL value.\r
 \r
   In a single threaded sys_arch implementation, this function will\r
   simply return a pointer to a global sys_timeouts variable stored in\r
@@ -294,14 +294,14 @@ sys_arch_timeouts(void)
 {\r
 int i;\r
 xTaskHandle pid;\r
-struct timeoutlist *tl;  \r
+struct timeoutlist *tl;\r
 \r
-       pid = xTaskGetCurrentTaskHandle( ); \r
+       pid = xTaskGetCurrentTaskHandle( );\r
 \r
-       for(i = 0; i < nextthread; i++) \r
+       for(i = 0; i < nextthread; i++)\r
        {\r
                tl = &timeoutlist[i];\r
-               if(tl->pid == pid) \r
+               if(tl->pid == pid)\r
                {\r
                        return &(tl->timeouts);\r
                }\r
@@ -313,7 +313,7 @@ struct timeoutlist *tl;
 \r
 /*-----------------------------------------------------------------------------------*/\r
 /*-----------------------------------------------------------------------------------*/\r
-// TBD \r
+// TBD\r
 /*-----------------------------------------------------------------------------------*/\r
 /*\r
   Starts a new thread with priority "prio" that will begin its execution in the\r
@@ -330,12 +330,12 @@ static int iCall = 0;
        if( iCall == 0 )\r
        {\r
                /* The first time this is called we are creating the lwIP handler. */\r
-               result = xTaskCreate( thread, ( signed char * ) "lwIP", lwipTCP_STACK_SIZE, arg, prio, &CreatedTask );\r
+               result = xTaskCreate( thread, "lwIP", lwipTCP_STACK_SIZE, arg, prio, &CreatedTask );\r
                iCall++;\r
        }\r
        else\r
        {\r
-               result = xTaskCreate( thread, ( signed char * ) "WEBSvr", lwipBASIC_SERVER_STACK_SIZE, arg, prio, &CreatedTask );\r
+               result = xTaskCreate( thread, "WEBSvr", lwipBASIC_SERVER_STACK_SIZE, arg, prio, &CreatedTask );\r
        }\r
 \r
        // For each task created, store the task handle (pid) in the timers array.\r
@@ -378,7 +378,7 @@ sys_prot_t sys_arch_protect(void)
   an operating system.\r
 */\r
 void sys_arch_unprotect(sys_prot_t pval)\r
-{ \r
+{\r
        ( void ) pval;\r
        vPortExitCritical();\r
 }\r
index 90478a6efb3aa41335dfda7db082b496b0ac1e42..85e6c564d79a0ac257a0287659611db80ba2c551 100644 (file)
@@ -91,8 +91,8 @@ unsigned portBASE_TYPE uxPriority;
 \r
        xNetIf = netif;\r
 \r
-       /* Initialise the EMAC.  This routine contains code that polls status bits.  \r
-       If the Ethernet cable is not plugged in then this can take a considerable \r
+       /* Initialise the EMAC.  This routine contains code that polls status bits.\r
+       If the Ethernet cable is not plugged in then this can take a considerable\r
        time.  To prevent this starving lower priority tasks of processing time we\r
        lower our priority prior to the call, then raise it back again once the\r
        initialisation is complete. */\r
@@ -105,13 +105,13 @@ unsigned portBASE_TYPE uxPriority;
        vTaskPrioritySet( NULL, uxPriority );\r
 \r
        /* Create the task that handles the EMAC. */\r
-       xTaskCreate( ethernetif_input, ( signed char * ) "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, NULL, netifINTERFACE_TASK_PRIORITY, NULL );\r
+       xTaskCreate( ethernetif_input, "ETH_INT", netifINTERFACE_TASK_STACK_SIZE, NULL, netifINTERFACE_TASK_PRIORITY, NULL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
- * low_level_output(): Should do the actual transmission of the packet. The \r
- * packet is contained in the pbuf that is passed to the function. This pbuf \r
+ * low_level_output(): Should do the actual transmission of the packet. The\r
+ * packet is contained in the pbuf that is passed to the function. This pbuf\r
  * might be chained.\r
  */\r
 static err_t low_level_output( struct netif *netif, struct pbuf *p )\r
@@ -137,8 +137,8 @@ err_t xReturn = ERR_OK;
        {\r
                for( q = p; q != NULL; q = q->next )\r
                {\r
-                       /* Send the data from the pbuf to the interface, one pbuf at a \r
-                       time. The size of the data in each pbuf is kept in the ->len \r
+                       /* Send the data from the pbuf to the interface, one pbuf at a\r
+                       time. The size of the data in each pbuf is kept in the ->len\r
                        variable.  if q->next == NULL then this is the last pbuf in the\r
                        chain. */\r
                        if( !lEMACSend( q->payload, q->len, ( q->next == NULL ) ) )\r
@@ -149,7 +149,7 @@ err_t xReturn = ERR_OK;
 \r
         xSemaphoreGive( xTxSemaphore );\r
        }\r
-       \r
+\r
 \r
        #if ETH_PAD_SIZE\r
                pbuf_header( p, ETH_PAD_SIZE );     /* reclaim the padding word */\r
@@ -164,8 +164,8 @@ err_t xReturn = ERR_OK;
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
- * low_level_input(): Should allocate a pbuf and transfer the bytes of the \r
- * incoming packet from the interface into the pbuf. \r
+ * low_level_input(): Should allocate a pbuf and transfer the bytes of the\r
+ * incoming packet from the interface into the pbuf.\r
  */\r
 static struct pbuf *low_level_input( struct netif *netif )\r
 {\r
@@ -186,34 +186,34 @@ static xSemaphoreHandle xRxSemaphore = NULL;
        {\r
                /* Obtain the size of the packet. */\r
                len = ulEMACInputLength();\r
-       \r
+\r
                if( len )\r
                {\r
                        #if ETH_PAD_SIZE\r
                                len += ETH_PAD_SIZE;    /* allow room for Ethernet padding */\r
                        #endif\r
-       \r
+\r
                        /* We allocate a pbuf chain of pbufs from the pool. */\r
                        p = pbuf_alloc( PBUF_RAW, len, PBUF_POOL );\r
-               \r
+\r
                        if( p != NULL )\r
                        {\r
                                #if ETH_PAD_SIZE\r
                                        pbuf_header( p, -ETH_PAD_SIZE );    /* drop the padding word */\r
                                #endif\r
-               \r
+\r
                                /* Let the driver know we are going to read a new packet. */\r
                                vEMACRead( NULL, 0, len );\r
-                                       \r
+\r
                                /* We iterate over the pbuf chain until we have read the entire\r
-                               packet into the pbuf. */                                \r
+                               packet into the pbuf. */\r
                                for( q = p; q != NULL; q = q->next )\r
                                {\r
-                                       /* Read enough bytes to fill this pbuf in the chain. The \r
+                                       /* Read enough bytes to fill this pbuf in the chain. The\r
                                        available data in the pbuf is given by the q->len variable. */\r
                                        vEMACRead( q->payload, q->len, len );\r
                                }\r
-               \r
+\r
                                #if ETH_PAD_SIZE\r
                                        pbuf_header( p, ETH_PAD_SIZE );     /* reclaim the padding word */\r
                                #endif\r
@@ -238,8 +238,8 @@ static xSemaphoreHandle xRxSemaphore = NULL;
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
- * ethernetif_output(): This function is called by the TCP/IP stack when an \r
- * IP packet should be sent. It calls the function called low_level_output() \r
+ * ethernetif_output(): This function is called by the TCP/IP stack when an\r
+ * IP packet should be sent. It calls the function called low_level_output()\r
  * to do the actual transmission of the packet.\r
  */\r
 static err_t ethernetif_output( struct netif *netif, struct pbuf *p, struct ip_addr *ipaddr )\r
@@ -250,8 +250,8 @@ static err_t ethernetif_output( struct netif *netif, struct pbuf *p, struct ip_a
 /*-----------------------------------------------------------*/\r
 \r
 /*\r
- * ethernetif_input(): This function should be called when a packet is ready to \r
- * be read from the interface. It uses the function low_level_input() that \r
+ * ethernetif_input(): This function should be called when a packet is ready to\r
+ * be read from the interface. It uses the function low_level_input() that\r
  * should handle the actual reception of bytes from the network interface.\r
  */\r
 static void ethernetif_input( void * pvParameters )\r
@@ -273,41 +273,41 @@ struct pbuf         *p;
 \r
                        if( p == NULL )\r
                        {\r
-                               /* No packet could be read.  Wait a for an interrupt to tell us \r
+                               /* No packet could be read.  Wait a for an interrupt to tell us\r
                                there is more data available. */\r
                                vEMACWaitForInput();\r
                        }\r
 \r
                } while( p == NULL );\r
-       \r
+\r
                /* points to packet payload, which starts with an Ethernet header */\r
                ethhdr = p->payload;\r
-       \r
+\r
                #if LINK_STATS\r
                        lwip_stats.link.recv++;\r
                #endif /* LINK_STATS */\r
-       \r
+\r
                ethhdr = p->payload;\r
-       \r
+\r
                switch( htons( ethhdr->type ) )\r
                {\r
                        /* IP packet? */\r
                        case ETHTYPE_IP:\r
                                /* update ARP table */\r
                                etharp_ip_input( xNetIf, p );\r
-               \r
+\r
                                /* skip Ethernet header */\r
                                pbuf_header( p, (s16_t)-sizeof(struct eth_hdr) );\r
-               \r
+\r
                                /* pass to network layer */\r
                                xNetIf->input( p, xNetIf );\r
                                break;\r
-               \r
+\r
                        case ETHTYPE_ARP:\r
                                /* pass p to ARP module */\r
                                etharp_arp_input( xNetIf, ethernetif->ethaddr, p );\r
                                break;\r
-               \r
+\r
                        default:\r
                                pbuf_free( p );\r
                                p = NULL;\r
index afc5372b50991530fedca8ffa5dc4628765ecc88..9df054763103d0f9b50bd0c49284f4d8b268204f 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -63,9 +63,9 @@
     1 tab == 4 spaces!\r
 */\r
 \r
-/* \r
+/*\r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used.\r
 /*\r
  * Creates all the application tasks, then starts the scheduler.\r
  *\r
- * A task defined by the function vBasicWEBServer is created.  This executes \r
+ * A task defined by the function vBasicWEBServer is created.  This executes\r
  * the lwIP stack and basic WEB server sample.  A task defined by the function\r
- * vUSBCDCTask.  This executes the USB to serial CDC example.  All the other \r
- * tasks are from the set of standard demo tasks.  The WEB documentation \r
+ * vUSBCDCTask.  This executes the USB to serial CDC example.  All the other\r
+ * tasks are from the set of standard demo tasks.  The WEB documentation\r
  * provides more details of the standard demo application tasks.\r
  *\r
  * Main.c also creates a task called "Check".  This only executes every three\r
@@ -96,7 +96,7 @@
 /*\r
        Changes from V3.2.2\r
 \r
-       + Modified the stack sizes used by some tasks to permit use of the \r
+       + Modified the stack sizes used by some tasks to permit use of the\r
          command line GCC tools.\r
 */\r
 \r
 #include "USB-CDC.h"\r
 \r
 /* lwIP includes. */\r
-#include "lwip/api.h" \r
+#include "lwip/api.h"\r
 \r
 /* Hardware specific headers. */\r
 #include "Board.h"\r
@@ -194,7 +194,7 @@ int main( void )
     sys_thread_new( vBasicWEBServer, ( void * ) NULL, mainWEBSERVER_PRIORITY );\r
 \r
        /* Create the demo USB CDC task. */\r
-       xTaskCreate( vUSBCDCTask, ( signed char * ) "USB", mainUSB_TASK_STACK, NULL, mainUSB_PRIORITY, NULL );\r
+       xTaskCreate( vUSBCDCTask, "USB", mainUSB_TASK_STACK, NULL, mainUSB_PRIORITY, NULL );\r
 \r
        /* Create the standard demo application tasks. */\r
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
@@ -203,13 +203,13 @@ int main( void )
        vStartIntegerMathTasks( tskIDLE_PRIORITY );\r
        vStartBlockingQueueTasks( mainBLOCK_Q_PRIORITY );\r
 \r
-       /* Start the check task - which is defined in this file. */     \r
-    xTaskCreate( vErrorChecks, ( signed char * ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
+       /* Start the check task - which is defined in this file. */\r
+    xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
-       /* Finally, start the scheduler. \r
+       /* Finally, start the scheduler.\r
 \r
        NOTE : Tasks run in system mode and the scheduler runs in Supervisor mode.\r
-       The processor MUST be in supervisor mode when vTaskStartScheduler is \r
+       The processor MUST be in supervisor mode when vTaskStartScheduler is\r
        called.  The demo applications included in the FreeRTOS.org download switch\r
        to supervisor mode prior to main being called.  If you are not using one of\r
        these demo application projects then ensure Supervisor mode is used here. */\r
@@ -227,7 +227,7 @@ static void prvSetupHardware( void )
        the correct default state.  This line just ensures that this does not\r
        cause all interrupts to be masked at the start. */\r
        AT91C_BASE_AIC->AIC_EOICR = 0;\r
-       \r
+\r
        /* Most setup is performed by the low level init function called from the\r
        startup asm file.\r
 \r
@@ -265,7 +265,7 @@ portTickType xLastWakeTime;
                /* Delay until it is time to execute again.  The delay period is\r
                shorter following an error. */\r
                vTaskDelayUntil( &xLastWakeTime, xDelayPeriod );\r
-       \r
+\r
                /* Check all the standard demo application tasks are executing without\r
                error.  */\r
                if( prvCheckOtherTasksAreStillRunning() != pdPASS )\r
@@ -324,7 +324,7 @@ char cTxByte;
                for( cTxByte = mainFIRST_TX_CHAR; cTxByte <= mainLAST_TX_CHAR; cTxByte++ )\r
                {\r
                        vUSBSendByte( cTxByte );\r
-               }               \r
+               }\r
        }\r
 }\r
 \r
index f8371c309ef8bdd2e569878ce9aee7f9495d81a0..dcb6d06d9759116fa4b220d3c780e88bce15454a 100644 (file)
        Please ensure to read the configuration and relevant port sections of the\r
        online documentation.\r
 \r
-       http://www.FreeRTOS.org - Documentation, latest information, license and \r
+       http://www.FreeRTOS.org - Documentation, latest information, license and\r
        contact details.\r
 \r
-       http://www.SafeRTOS.com - A version that is certified for use in safety \r
+       http://www.SafeRTOS.com - A version that is certified for use in safety\r
        critical systems.\r
 \r
-       http://www.OpenRTOS.com - Commercial support, development, porting, \r
+       http://www.OpenRTOS.com - Commercial support, development, porting,\r
        licensing and training services.\r
 */\r
 \r
@@ -134,7 +134,7 @@ main( int argc, char *argv[] )
     ( void )sys_thread_new( vBasicWEBServer, NULL, mainWEB_TASK_PRIORITY );\r
 \r
     /* Start the check task - which is defined in this file. */\r
-    xTaskCreate( vErrorChecks, ( signed char * )"Check", 512, NULL,\r
+    xTaskCreate( vErrorChecks, "Check", 512, NULL,\r
                  mainCHECK_TASK_PRIORITY, NULL );\r
         /* Now all the tasks have been started - start the scheduler. */\r
     vTaskStartScheduler(  );\r
@@ -156,7 +156,7 @@ portTASK_FUNCTION( vErrorChecks, pvParameters )
     {\r
         ulMemCheckTaskRunningCount = mainCOUNT_INITIAL_VALUE;\r
         xCreatedTask = mainNO_TASK;\r
-        if( xTaskCreate( vMemCheckTask, ( signed char * )"MEM",\r
+        if( xTaskCreate( vMemCheckTask, "MEM",\r
                          configMINIMAL_STACK_SIZE, ( void * )&ulMemCheckTaskRunningCount,\r
                          tskIDLE_PRIORITY, &xCreatedTask ) != pdPASS )\r
         {\r
index 87e88d03d7d8c9a502b460eb1118019401590e91..209d011f9a06863e61c866748c819d68327d657a 100644 (file)
        Please ensure to read the configuration and relevant port sections of the\r
        online documentation.\r
 \r
-       http://www.FreeRTOS.org - Documentation, latest information, license and \r
+       http://www.FreeRTOS.org - Documentation, latest information, license and\r
        contact details.\r
 \r
-       http://www.SafeRTOS.com - A version that is certified for use in safety \r
+       http://www.SafeRTOS.com - A version that is certified for use in safety\r
        critical systems.\r
 \r
-       http://www.OpenRTOS.com - Commercial support, development, porting, \r
+       http://www.OpenRTOS.com - Commercial support, development, porting,\r
        licensing and training services.\r
 */\r
 \r
@@ -161,7 +161,7 @@ vProcessConnection( struct netconn *pxNetCon )
             strcat( cDynamicPage,\r
                     "<p><pre>Task          State  Priority  Stack #<br>************************************************<br>" );\r
             /* ... Then the list of tasks and their status... */\r
-            vTaskList( ( signed char * )cDynamicPage + strlen( cDynamicPage ) );\r
+            vTaskList( cDynamicPage + strlen( cDynamicPage ) );\r
             /* ... Finally the page footer. */\r
             strcat( cDynamicPage, webHTML_END );\r
 \r
index eb341c79d7c1dde47b760b0287f52cf3c088d532..44e49044f6878df9b05742af49cfd38bc5d9b455 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 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
  * Creates all the demo application tasks, then starts the scheduler.  The WEB\r
  * documentation provides more details of the demo application tasks.\r
- * \r
+ *\r
  * This demo is configured to execute on the ES449 prototyping board from\r
  * SoftBaugh. The ES449 has a built in LCD display and a single built in user\r
  * LED.  Therefore, in place of flashing an LED, the 'flash' and 'check' tasks\r
  * toggle '*' characters on the LCD.  The left most '*' represents LED 0, the\r
  * next LED 1, etc.\r
  *\r
- * Main. c also creates a task called 'Check'.  This only executes every three \r
- * seconds but has the highest priority so is guaranteed to get processor time.  \r
- * Its main function is to check that all the other tasks are still operational.  \r
- * Each task that does not flash an LED maintains a unique count that is \r
- * incremented each time the task successfully completes its function.  Should \r
- * any error occur within such a task the count is permanently halted.  The \r
+ * Main. c also creates a task called 'Check'.  This only executes every three\r
+ * seconds but has the highest priority so is guaranteed to get processor time.\r
+ * Its main function is to check that all the other tasks are still operational.\r
+ * Each task that does not flash an LED maintains a unique count that is\r
+ * incremented each time the task successfully completes its function.  Should\r
+ * any error occur within such a task the count is permanently halted.  The\r
  * 'check' task inspects the count of each task to ensure it has changed since\r
- * the last time the check task executed.  If all the count variables have \r
+ * the last time the check task executed.  If all the count variables have\r
  * changed all the tasks are still executing error free, and the check task\r
- * toggles an LED with a three second period.  Should any task contain an error \r
+ * toggles an LED with a three second period.  Should any task contain an error\r
  * at any time the LED toggle rate will increase to 500ms.\r
  *\r
  * Please read the documentation for the MSP430 port available on\r
@@ -121,10 +121,10 @@ the '*' characters on the LCD represent LED's] */
 /* Baud rate used by the COM test tasks. */\r
 #define mainCOM_TEST_BAUD_RATE                 ( ( unsigned long ) 19200 )\r
 \r
-/* The frequency at which the 'Check' tasks executes.  See the comments at the \r
+/* The frequency at which the 'Check' tasks executes.  See the comments at the\r
 top of the page.  When the system is operating error free the 'Check' task\r
 toggles an LED every three seconds.  If an error is discovered in any task the\r
-rate is increased to 500 milliseconds.  [in this case the '*' characters on the \r
+rate is increased to 500 milliseconds.  [in this case the '*' characters on the\r
 LCD represent LED's]*/\r
 #define mainNO_ERROR_CHECK_DELAY               ( ( portTickType ) 3000 / portTICK_RATE_MS  )\r
 #define mainERROR_CHECK_DELAY                  ( ( portTickType ) 500 / portTICK_RATE_MS  )\r
@@ -136,10 +136,10 @@ LCD represent LED's]*/
 #define intgCONST4                             ( ( long ) 7 )\r
 #define intgEXPECTED_ANSWER            ( ( ( intgCONST1 + intgCONST2 ) * intgCONST3 ) / intgCONST4 )\r
 \r
-/* \r
+/*\r
  * The function that implements the Check task.  See the comments at the head\r
  * of the page for implementation details.\r
- */ \r
+ */\r
 static void vErrorChecks( void *pvParameters );\r
 \r
 /*\r
@@ -148,7 +148,7 @@ static void vErrorChecks( void *pvParameters );
  */\r
 static short prvCheckOtherTasksAreStillRunning( void );\r
 \r
-/* \r
+/*\r
  * Perform the hardware setup required by the ES449 in order to run the demo\r
  * application.\r
  */\r
@@ -176,7 +176,7 @@ int main( void )
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
 \r
        /* Start the 'Check' task which is defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const signed char * const ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );      \r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -196,14 +196,14 @@ portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
        for( ;; )\r
        {\r
                /* Wait until it is time to check again.  The time we wait here depends\r
-               on whether an error has been detected or not.  When an error is \r
+               on whether an error has been detected or not.  When an error is\r
                detected the time is shortened resulting in a faster LED flash rate. */\r
                vTaskDelay( xDelayPeriod );\r
 \r
                /* See if the other tasks are all ok. */\r
                if( prvCheckOtherTasksAreStillRunning() != pdPASS )\r
                {\r
-                       /* An error occurred in one of the tasks so shorten the delay \r
+                       /* An error occurred in one of the tasks so shorten the delay\r
                        period - which has the effect of increasing the frequency of the\r
                        LED toggle. */\r
                        xDelayPeriod = mainERROR_CHECK_DELAY;\r
@@ -221,7 +221,7 @@ static short sNoErrorFound = pdTRUE;
 static unsigned long ulLastIdleLoopCount = 0UL;\r
 \r
        /* The demo tasks maintain a count that increments every cycle of the task\r
-       provided that the task has never encountered an error.  This function \r
+       provided that the task has never encountered an error.  This function\r
        checks the counts maintained by the tasks to ensure they are still being\r
        incremented.  A count remaining at the same value between calls therefore\r
        indicates that an error has been detected.  Only tasks that do not flash\r
@@ -255,7 +255,7 @@ static unsigned long ulLastIdleLoopCount = 0UL;
     {\r
         ulLastIdleLoopCount = ulIdleLoops;\r
     }\r
-       \r
+\r
        return sNoErrorFound;\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -266,10 +266,10 @@ static void prvSetupHardware( void )
        WDTCTL = WDTPW + WDTHOLD;\r
 \r
        /* Setup DCO+ for ( xtal * D * (N + 1) ) operation. */\r
-       FLL_CTL0 |= DCOPLUS + XCAP18PF; \r
+       FLL_CTL0 |= DCOPLUS + XCAP18PF;\r
 \r
        /* X2 DCO frequency, 8MHz nominal DCO */\r
-       SCFI0 |= FN_4;                  \r
+       SCFI0 |= FN_4;\r
 \r
        /* (121+1) x 32768 x 2 = 7.99 Mhz */\r
        SCFQCTL = mainMAX_FREQUENCY;\r
@@ -313,8 +313,8 @@ volatile signed portBASE_TYPE *pxTaskHasExecuted;
                lValue *= intgCONST3;\r
                lValue /= intgCONST4;\r
 \r
-               /* If the calculation is found to be incorrect we stop setting the \r
-               TaskHasExecuted variable so the check task can see an error has \r
+               /* If the calculation is found to be incorrect we stop setting the\r
+               TaskHasExecuted variable so the check task can see an error has\r
                occurred. */\r
                if( lValue != intgEXPECTED_ANSWER ) /*lint !e774 volatile used to prevent this being optimised out. */\r
                {\r
index df4165a40d94cbab4f9fcf4f07f4bab4662dd4e7..6998a06d5f185945f748f8d359ec95b54d3f92e7 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+    FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.\r
     All rights reserved\r
 \r
     VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
@@ -176,7 +176,7 @@ int main( void )
        vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );\r
 \r
        /* Start the 'Check' task which is defined in this file. */\r
-       xTaskCreate( vErrorChecks, ( const signed portCHAR * const ) "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );  \r
+       xTaskCreate( vErrorChecks, "Check", configMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );\r
 \r
        /* Start the scheduler. */\r
        vTaskStartScheduler();\r
@@ -255,7 +255,7 @@ static unsigned portLONG ulLastIdleLoopCount = 0UL;
     {\r
         ulLastIdleLoopCount = ulIdleLoops;\r
     }\r
-       \r
+\r
        return sNoErrorFound;\r
 }\r
 /*-----------------------------------------------------------*/\r