mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-19 17:48:33 -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
|
@ -132,14 +132,14 @@
|
|||
|
||||
/* 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 ( 3000UL / portTICK_RATE_MS )
|
||||
equivalent in ticks using the portTICK_PERIOD_MS constant. */
|
||||
#define mainCHECK_TIMER_PERIOD_MS ( 3000UL / 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, the check tasks, or the demo timer.
|
||||
ms are converted to the equivalent in ticks using the portTICK_RATE_MS
|
||||
ms are converted to the equivalent in ticks using the portTICK_PERIOD_MS
|
||||
constant. */
|
||||
#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_RATE_MS )
|
||||
#define mainERROR_CHECK_TIMER_PERIOD_MS ( 200UL / portTICK_PERIOD_MS )
|
||||
|
||||
/* These two definitions are used to set the period of the demo timer. The demo
|
||||
timer period is always relative to the check timer period, so the check timer
|
||||
|
@ -161,12 +161,12 @@ ensure task parameters are passed correctly). */
|
|||
/*
|
||||
* The 'check' timer callback function, as described at the top of this file.
|
||||
*/
|
||||
static void prvCheckTimerCallback( xTimerHandle xTimer );
|
||||
static void prvCheckTimerCallback( TimerHandle_t xTimer );
|
||||
|
||||
/*
|
||||
* The 'demo' timer callback function, as described at the top of this file.
|
||||
*/
|
||||
static void prvDemoTimerCallback( xTimerHandle xTimer );
|
||||
static void prvDemoTimerCallback( TimerHandle_t xTimer );
|
||||
|
||||
/*
|
||||
* Functions that define the RegTest tasks, as described at the top of this
|
||||
|
@ -200,10 +200,10 @@ unsigned short usRegTest1LoopCounter = 0, usRegTest2LoopCounter;
|
|||
|
||||
/* The check timer. This uses prvCheckTimerCallback() as its callback
|
||||
function. */
|
||||
static xTimerHandle xCheckTimer = NULL;
|
||||
static TimerHandle_t xCheckTimer = NULL;
|
||||
|
||||
/* The demo timer. This uses prvDemoTimerCallback() as its callback function. */
|
||||
static xTimerHandle xDemoTimer = NULL;
|
||||
static TimerHandle_t xDemoTimer = NULL;
|
||||
|
||||
/* This variable is incremented each time the demo timer expires. */
|
||||
static volatile unsigned long ulDemoSoftwareTimerCounter = 0UL;
|
||||
|
@ -265,7 +265,7 @@ void main_full( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvDemoTimerCallback( xTimerHandle xTimer )
|
||||
static void prvDemoTimerCallback( TimerHandle_t xTimer )
|
||||
{
|
||||
/* Remove compiler warning about unused parameter. */
|
||||
( void ) xTimer;
|
||||
|
@ -278,7 +278,7 @@ static void prvDemoTimerCallback( xTimerHandle xTimer )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static void prvCheckTimerCallback( xTimerHandle xTimer )
|
||||
static void prvCheckTimerCallback( TimerHandle_t xTimer )
|
||||
{
|
||||
static portBASE_TYPE xChangedTimerPeriodAlready = pdFALSE, xErrorStatus = pdPASS;
|
||||
static unsigned short usLastRegTest1Counter = 0, usLastRegTest2Counter = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue