mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-31 07:28:37 -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.
|
||||
|
@ -206,14 +206,14 @@ const size_t xRegTestStackSize = 25U;
|
|||
These are naked functions that don't use any stack. A stack still has
|
||||
to be allocated to hold the task context. */
|
||||
xTaskCreate( vRegTest1Task, /* Function that implements the task. */
|
||||
( signed char * ) "Reg1", /* Text name of the task. */
|
||||
"Reg1", /* Text name of the task. */
|
||||
xRegTestStackSize, /* Stack allocated to the task. */
|
||||
NULL, /* The task parameter is not used. */
|
||||
tskIDLE_PRIORITY, /* The priority to assign to the task. */
|
||||
NULL ); /* Don't receive a handle back, it is not needed. */
|
||||
|
||||
xTaskCreate( vRegTest2Task, /* Function that implements the task. */
|
||||
( signed char * ) "Reg2", /* Text name of the task. */
|
||||
"Reg2", /* Text name of the task. */
|
||||
xRegTestStackSize, /* Stack allocated to the task. */
|
||||
NULL, /* The task parameter is not used. */
|
||||
tskIDLE_PRIORITY, /* The priority to assign to the task. */
|
||||
|
@ -222,26 +222,26 @@ const size_t xRegTestStackSize = 25U;
|
|||
/* Create the three flash timers. */
|
||||
for( ulTimer = 0UL; ulTimer < ulTimersToCreate; ulTimer++ )
|
||||
{
|
||||
xTimer = xTimerCreate( ( const signed char * ) "FlashTimer", /* A text name, purely to help debugging. */
|
||||
xTimer = xTimerCreate( "FlashTimer", /* A text name, purely to help debugging. */
|
||||
( mainFLASH_TIMER_BASE_RATE * ( ulTimer + 1UL ) ), /* The timer period, in this case 3000ms (3s). */
|
||||
pdTRUE, /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */
|
||||
( void * ) ulTimer, /* The ID is used to hold the number of the LED that will be flashed. */
|
||||
prvFlashTimerCallback /* The callback function that inspects the status of all the other tasks. */
|
||||
pdTRUE, /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */
|
||||
( void * ) ulTimer, /* The ID is used to hold the number of the LED that will be flashed. */
|
||||
prvFlashTimerCallback /* The callback function that inspects the status of all the other tasks. */
|
||||
);
|
||||
|
||||
|
||||
if( xTimer != NULL )
|
||||
{
|
||||
xTimerStart( xTimer, mainDONT_BLOCK );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Create the software timer that performs the 'check' functionality,
|
||||
as described at the top of this file. */
|
||||
xTimer = xTimerCreate( ( const signed char * ) "CheckTimer",/* A text name, purely to help debugging. */
|
||||
( mainCHECK_TIMER_PERIOD_MS ), /* The timer period, in this case 3000ms (3s). */
|
||||
pdTRUE, /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */
|
||||
( void * ) 0, /* The ID is not used, so can be set to anything. */
|
||||
prvCheckTimerCallback /* The callback function that inspects the status of all the other tasks. */
|
||||
xTimer = xTimerCreate( "CheckTimer", /* A text name, purely to help debugging. */
|
||||
( mainCHECK_TIMER_PERIOD_MS ), /* The timer period, in this case 3000ms (3s). */
|
||||
pdTRUE, /* This is an auto-reload timer, so xAutoReload is set to pdTRUE. */
|
||||
( void * ) 0, /* The ID is not used, so can be set to anything. */
|
||||
prvCheckTimerCallback /* The callback function that inspects the status of all the other tasks. */
|
||||
);
|
||||
|
||||
/* If the software timer was created successfully, start it. It won't
|
||||
|
@ -342,6 +342,6 @@ unsigned long ulLED;
|
|||
ulLED = ( unsigned long ) pvTimerGetTimerID( xTimer );
|
||||
|
||||
/* Toggle the LED. */
|
||||
vParTestToggleLED( ulLED );
|
||||
vParTestToggleLED( ulLED );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue