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
|
@ -111,8 +111,8 @@
|
|||
#define mainQUEUE_SEND_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||
|
||||
/* The rate at which data is sent to the queue, specified in milliseconds, and
|
||||
converted to ticks using the portTICK_RATE_MS constant. */
|
||||
#define mainQUEUE_SEND_FREQUENCY_MS ( 200 / portTICK_RATE_MS )
|
||||
converted to ticks using the portTICK_PERIOD_MS constant. */
|
||||
#define mainQUEUE_SEND_FREQUENCY_MS ( 200 / 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 because it has the higher priority, meaning
|
||||
|
@ -120,7 +120,7 @@ the send task should always find the queue empty. */
|
|||
#define mainQUEUE_LENGTH ( 1 )
|
||||
|
||||
/* A block time of 0 simply means, "don't block". */
|
||||
#define mainDONT_BLOCK ( portTickType ) 0
|
||||
#define mainDONT_BLOCK ( TickType_t ) 0
|
||||
|
||||
/* The following constants describe the timer instance used in this application.
|
||||
They are defined here such that a user can easily change all the needed parameters
|
||||
|
@ -141,16 +141,16 @@ static void prvQueueSendTask( void *pvParameters );
|
|||
* The LED timer callback function. This does nothing but increment the
|
||||
* ulCallback variable each time it executes.
|
||||
*/
|
||||
static void vSoftwareTimerCallback( xTimerHandle xTimer );
|
||||
static void vSoftwareTimerCallback( TimerHandle_t xTimer );
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* The queue used by the queue send and queue receive tasks. */
|
||||
static xQueueHandle xQueue = NULL;
|
||||
static QueueHandle_t xQueue = NULL;
|
||||
|
||||
/* The LED software timer. This uses vSoftwareTimerCallback() as its callback
|
||||
function. */
|
||||
static xTimerHandle xExampleSoftwareTimer = NULL;
|
||||
static TimerHandle_t xExampleSoftwareTimer = NULL;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -192,7 +192,7 @@ int main( void )
|
|||
|
||||
/* Create the software timer */
|
||||
xExampleSoftwareTimer = xTimerCreate( "SoftwareTimer", /* A text name, purely to help debugging. */
|
||||
( 5000 / portTICK_RATE_MS ),/* The timer period, in this case 5000ms (5s). */
|
||||
( 5000 / portTICK_PERIOD_MS ),/* The timer period, in this case 5000ms (5s). */
|
||||
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. */
|
||||
vSoftwareTimerCallback /* The callback function that switches the LED off. */
|
||||
|
@ -214,7 +214,7 @@ int main( void )
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* The callback is executed when the software timer expires. */
|
||||
static void vSoftwareTimerCallback( xTimerHandle xTimer )
|
||||
static void vSoftwareTimerCallback( TimerHandle_t xTimer )
|
||||
{
|
||||
/* Just increment the ulCallbac variable. */
|
||||
ulCallback++;
|
||||
|
@ -223,7 +223,7 @@ static void vSoftwareTimerCallback( xTimerHandle xTimer )
|
|||
|
||||
static void prvQueueSendTask( void *pvParameters )
|
||||
{
|
||||
portTickType xNextWakeTime;
|
||||
TickType_t xNextWakeTime;
|
||||
const unsigned long ulValueToSend = 100UL;
|
||||
|
||||
/* Initialise xNextWakeTime - this only needs to be done once. */
|
||||
|
@ -284,7 +284,7 @@ void vApplicationMallocFailedHook( void )
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
|
||||
void vApplicationStackOverflowHook( TaskHandle_t *pxTask, signed char *pcTaskName )
|
||||
{
|
||||
( void ) pcTaskName;
|
||||
( void ) pxTask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue