mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 09:38:32 -04:00
Start to remove unnecessary 'signed char *' casts from strings that are now just plain char * types.
This commit is contained in:
parent
b4116a7c7d
commit
da93f1fc4b
261 changed files with 2822 additions and 2815 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
|
||||
FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd.
|
||||
All rights reserved
|
||||
|
||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
||||
|
@ -70,11 +70,11 @@ Changes from V3.0.1
|
|||
*/
|
||||
|
||||
/*
|
||||
* Instead of the normal single demo application, the PIC18F demo is split
|
||||
* into several smaller programs of which this is the seventh. This enables the
|
||||
* Instead of the normal single demo application, the PIC18F demo is split
|
||||
* into several smaller programs of which this is the seventh. This enables the
|
||||
* demo's to be executed on the RAM limited PIC-devices.
|
||||
*
|
||||
* The Demo7 project is configured for a PIC18F4620 device. Main.c starts 10
|
||||
* The Demo7 project is configured for a PIC18F4620 device. Main.c starts 10
|
||||
* tasks (including the idle task). See the indicated files in the demo/common
|
||||
* directory for more information.
|
||||
*
|
||||
|
@ -82,18 +82,18 @@ Changes from V3.0.1
|
|||
* demo/common/minimal/death.c: Creates 1 controltask and
|
||||
* creates/deletes 4 suicidaltasks
|
||||
*
|
||||
* Main.c also creates a check task. This periodically checks that all the
|
||||
* other tasks are still running and have not experienced any unexpected
|
||||
* results. If all the other tasks are executing correctly an LED is flashed
|
||||
* once every mainCHECK_PERIOD milliseconds. If any of the tasks have not
|
||||
* executed, or report an error, the frequency of the LED flash will increase
|
||||
* Main.c also creates a check task. This periodically checks that all the
|
||||
* other tasks are still running and have not experienced any unexpected
|
||||
* results. If all the other tasks are executing correctly an LED is flashed
|
||||
* once every mainCHECK_PERIOD milliseconds. If any of the tasks have not
|
||||
* executed, or report an error, the frequency of the LED flash will increase
|
||||
* to mainERROR_FLASH_RATE.
|
||||
*
|
||||
* On entry to main an 'X' is transmitted. Monitoring the serial port using a
|
||||
* dumb terminal allows for verification that the device is not continuously
|
||||
* dumb terminal allows for verification that the device is not continuously
|
||||
* being reset (no more than one 'X' should be transmitted).
|
||||
*
|
||||
* http://www.FreeRTOS.org contains important information on the use of the
|
||||
* http://www.FreeRTOS.org contains important information on the use of the
|
||||
* wizC PIC18F port.
|
||||
*/
|
||||
|
||||
|
@ -120,7 +120,7 @@ priority. */
|
|||
#define mainLED_FLASH_PRIORITY ( tskIDLE_PRIORITY + ( unsigned char ) 2 )
|
||||
#define mainCREATOR_TASK_PRIORITY ( tskIDLE_PRIORITY + ( unsigned char ) 1 )
|
||||
|
||||
/* Constants required for the communications. Only one character is ever
|
||||
/* Constants required for the communications. Only one character is ever
|
||||
transmitted. */
|
||||
#define mainCOMMS_QUEUE_LENGTH ( ( unsigned char ) 5 )
|
||||
#define mainNO_BLOCK ( ( portTickType ) 0 )
|
||||
|
@ -153,7 +153,7 @@ void main( void )
|
|||
vStartLEDFlashTasks( mainLED_FLASH_PRIORITY );
|
||||
|
||||
/* Start the check task defined in this file. */
|
||||
xTaskCreate( vErrorChecks, ( const char * const ) "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
|
||||
xTaskCreate( vErrorChecks, "Check", portMINIMAL_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
|
||||
|
||||
/* This task has to be created last as it keeps account of the number of tasks
|
||||
it expects to see running. */
|
||||
|
@ -174,17 +174,17 @@ portTickType xLastCheckTime;
|
|||
portTickType xDelayTime = mainNO_ERROR_CHECK_PERIOD;
|
||||
char cErrorOccurred;
|
||||
|
||||
/* We need to initialise xLastCheckTime prior to the first call to
|
||||
/* We need to initialise xLastCheckTime prior to the first call to
|
||||
vTaskDelayUntil(). */
|
||||
xLastCheckTime = xTaskGetTickCount();
|
||||
|
||||
|
||||
/* Cycle for ever, delaying then checking all the other tasks are still
|
||||
operating without error. */
|
||||
for( ;; )
|
||||
{
|
||||
/* Wait until it is time to check the other tasks again. */
|
||||
vTaskDelayUntil( &xLastCheckTime, xDelayTime );
|
||||
|
||||
|
||||
/* Check all the other tasks are running, and running without ever
|
||||
having an error. */
|
||||
cErrorOccurred = prvCheckOtherTasksAreStillRunning();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue