mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Update the demo directory to use the version 8 type naming conventions.
This commit is contained in:
parent
c6d8892b0d
commit
5a2a8fc319
639 changed files with 3127 additions and 3470 deletions
|
@ -86,7 +86,7 @@
|
|||
#define configUSE_TICK_HOOK 0
|
||||
#define configCPU_CLOCK_HZ ( ICLK_FREQUENCY ) /* Set in rskrx630def.h. */
|
||||
#define configPERIPHERAL_CLOCK_HZ ( PCLKB_FREQUENCY ) /* Set in rskrx630def.h. */
|
||||
#define configTICK_RATE_HZ ( ( portTickType ) 1000 )
|
||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 140 )
|
||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 45 * 1024 ) )
|
||||
#define configMAX_TASK_NAME_LEN ( 12 )
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
#define configQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 2 )
|
||||
|
||||
/* The rate at which data is sent to the queue, specified in milliseconds. */
|
||||
#define mainQUEUE_SEND_FREQUENCY_MS ( 500 / portTICK_RATE_MS )
|
||||
#define mainQUEUE_SEND_FREQUENCY_MS ( 500 / portTICK_PERIOD_MS )
|
||||
|
||||
/* The number of items the queue can hold. This is 1 as the receive task
|
||||
will remove items as they are added so the send task should always find the
|
||||
|
@ -101,7 +101,7 @@ static void prvQueueReceiveTask( void *pvParameters );
|
|||
static void prvQueueSendTask( void *pvParameters );
|
||||
|
||||
/* The queue used by both tasks. */
|
||||
static xQueueHandle xQueue = NULL;
|
||||
static QueueHandle_t xQueue = NULL;
|
||||
|
||||
/* This variable is not used by this simple Blinky example. It is defined
|
||||
purely to allow the project to link as it is used by the full build
|
||||
|
@ -142,7 +142,7 @@ extern void HardwareSetup( void );
|
|||
|
||||
static void prvQueueSendTask( void *pvParameters )
|
||||
{
|
||||
portTickType xNextWakeTime;
|
||||
TickType_t xNextWakeTime;
|
||||
const unsigned long ulValueToSend = 100UL;
|
||||
|
||||
/* Initialise xNextWakeTime - this only needs to be done once. */
|
||||
|
@ -229,7 +229,7 @@ void vApplicationMallocFailedHook( void )
|
|||
FreeRTOSConfig.h, then this function will be called if a task overflows its
|
||||
stack space. See
|
||||
http://www.freertos.org/Stacks-and-stack-overflow-checking.html. */
|
||||
void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )
|
||||
void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )
|
||||
{
|
||||
for( ;; );
|
||||
}
|
||||
|
|
|
@ -171,13 +171,13 @@ tasks check that the values are passed in correctly. */
|
|||
|
||||
/* The period at which the check timer will expire, in ms, provided no errors
|
||||
have been reported by any of the standard demo tasks. ms are converted to the
|
||||
equivalent in ticks using the portTICK_RATE_MS constant. */
|
||||
#define mainCHECK_TIMER_PERIOD_MS ( 5000UL / portTICK_RATE_MS )
|
||||
equivalent in ticks using the portTICK_PERIOD_MS constant. */
|
||||
#define mainCHECK_TIMER_PERIOD_MS ( 5000UL / portTICK_PERIOD_MS )
|
||||
|
||||
/* The period at which the check timer will expire, in ms, if an error has been
|
||||
reported in one of the standard demo tasks. ms are converted to the equivalent
|
||||
in ticks using the portTICK_RATE_MS constant. */
|
||||
#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_RATE_MS )
|
||||
in ticks using the portTICK_PERIOD_MS constant. */
|
||||
#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_PERIOD_MS )
|
||||
|
||||
/* A block time of zero simple means "Don't Block". */
|
||||
#define mainDONT_BLOCK ( 0UL )
|
||||
|
@ -212,7 +212,7 @@ void vApplicationIdleHook( void );
|
|||
* it is possible that the stack overflow will have corrupted these - in which
|
||||
* case pxCurrentTCB can be inspected to find the same information.
|
||||
*/
|
||||
void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName );
|
||||
void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName );
|
||||
|
||||
/*
|
||||
* The reg test tasks as described at the top of this file.
|
||||
|
@ -230,7 +230,7 @@ static void prvRegTest2Implementation( void );
|
|||
/*
|
||||
* The check timer callback function, as described at the top of this file.
|
||||
*/
|
||||
static void prvCheckTimerCallback( xTimerHandle xTimer );
|
||||
static void prvCheckTimerCallback( TimerHandle_t xTimer );
|
||||
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
@ -243,7 +243,7 @@ unsigned long ulRegTest1CycleCount = 0UL, ulRegTest2CycleCount = 0UL;
|
|||
|
||||
/* The check timer. This uses prvCheckTimerCallback() as its callback
|
||||
function. */
|
||||
static xTimerHandle xCheckTimer = NULL;
|
||||
static TimerHandle_t xCheckTimer = NULL;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -308,7 +308,7 @@ extern void HardwareSetup( void );
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvCheckTimerCallback( xTimerHandle xTimer )
|
||||
static void prvCheckTimerCallback( TimerHandle_t xTimer )
|
||||
{
|
||||
static long lChangedTimerPeriodAlready = pdFALSE, lErrorStatus = pdPASS;
|
||||
static volatile unsigned long ulLastRegTest1CycleCount = 0UL, ulLastRegTest2CycleCount = 0UL;
|
||||
|
@ -432,7 +432,7 @@ void vApplicationMallocFailedHook( void )
|
|||
|
||||
/* This function is explained by the comments above its prototype at the top
|
||||
of this file. */
|
||||
void vApplicationStackOverflowHook( xTaskHandle pxTask, char *pcTaskName )
|
||||
void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )
|
||||
{
|
||||
for( ;; );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue