mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 01:58: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,25 +70,25 @@ 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 sixth. This enables the
|
||||
* Instead of the normal single demo application, the PIC18F demo is split
|
||||
* into several smaller programs of which this is the sixth. This enables the
|
||||
* demo's to be executed on the RAM limited PIC-devices.
|
||||
*
|
||||
* The Demo6 project is configured for a PIC18F4620 device. Main.c starts 4
|
||||
* The Demo6 project is configured for a PIC18F4620 device. Main.c starts 4
|
||||
* tasks (including the idle task). See the indicated files in the demo/common
|
||||
* directory for more information.
|
||||
*
|
||||
* demo/common/minimal/comtest.c: Creates 2 tasks
|
||||
* ATTENTION: Comtest needs a loopback-connector on the serial port.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
|
@ -143,7 +143,7 @@ void main( void )
|
|||
vAltStartComTestTasks( mainCOMM_TEST_PRIORITY, mainBAUD_RATE, mainCOMM_TX_RX_LED );
|
||||
|
||||
/* 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 );
|
||||
|
||||
/* Start the scheduler. Will never return here. */
|
||||
vTaskStartScheduler();
|
||||
|
@ -160,17 +160,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