Fix warnings after moving callback prototypes (#208)

* Recently the prototypes for the application hook functions were
moved out of the kernel .c files and into the .h files.  That
changes results in compile time warnings for projects that provide
hook functions with a slightly different prototype - in particular
where signed char * is used in place of just char * as an older
FreeRTOS coding convention required chars to be explicitly qualified
as signed or unsigned.

This checkin fixes the warnings by ensuring the signature of
implemented hook functions matches the signature of the prototypes.
This commit is contained in:
RichardBarry 2020-08-27 00:40:47 -07:00 committed by GitHub
parent 4a026fd703
commit a9680a54cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 122 additions and 113 deletions

View file

@ -59,10 +59,10 @@ int main(void)
/* Initializes MCU, drivers and middleware.
This is generated from Atmel START project. */
atmel_start_init();
/* Standard register test. */
vStartRegTestTasks();
/* Optionally enable below tests. This port only has 2KB RAM. */
vStartIntegerMathTasks( tskIDLE_PRIORITY );
vStartPolledQueueTasks( mainQUEUE_POLL_PRIORITY );
@ -102,7 +102,7 @@ BaseType_t xFirstTimeCheck = pdTRUE;
{
uxErrorHasOccurred |= ( 0x01U << 2);
}
/* When check task runs before any other tasks, all above checks shall fail.
To avoid false alarm, clear errors upon first entry. */
if ( xFirstTimeCheck == pdTRUE )
@ -110,7 +110,7 @@ BaseType_t xFirstTimeCheck = pdTRUE;
uxErrorHasOccurred = 0;
xFirstTimeCheck = pdFALSE;
}
/* Could set break point at below line to verify uxErrorHasOccurred. */
vTaskDelay( mainCHECK_PERIOD );
}
@ -126,7 +126,7 @@ static void vBlinkOnboardUserLED( void *pvParameters )
for( ;; )
{
vParTestToggleLED( 0 );
vTaskDelay( mainBLINK_LED_OK_HALF_PERIOD );
}
@ -141,9 +141,9 @@ void vApplicationIdleHook( void )
/*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( TaskHandle_t xTask, signed char *pcTaskName )
void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName )
{
/* When stack overflow happens, trap instead of attempting to recover.
/* When stack overflow happens, trap instead of attempting to recover.
Read input arguments to learn about the offending task. */
for( ;; )
{