mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-18 09:08:33 -04:00
Replace use of legacy portTYPE macros from old demos and standard demo files.
This commit is contained in:
parent
3e20aa7d60
commit
b54158d1dc
123 changed files with 736 additions and 736 deletions
|
@ -104,8 +104,8 @@
|
|||
#include "PollQ.h"
|
||||
|
||||
/* Constants required for hardware setup. */
|
||||
#define mainALL_BITS_OUTPUT ( ( unsigned portCHAR ) 0xff )
|
||||
#define mainMAX_FREQUENCY ( ( unsigned portCHAR ) 121 )
|
||||
#define mainALL_BITS_OUTPUT ( ( unsigned char ) 0xff )
|
||||
#define mainMAX_FREQUENCY ( ( unsigned char ) 121 )
|
||||
|
||||
/* Constants that define the LED's used by the various tasks. [in this case
|
||||
the '*' characters on the LCD represent LED's] */
|
||||
|
@ -119,7 +119,7 @@ the '*' characters on the LCD represent LED's] */
|
|||
#define mainLED_TASK_PRIORITY ( tskIDLE_PRIORITY + 1 )
|
||||
|
||||
/* Baud rate used by the COM test tasks. */
|
||||
#define mainCOM_TEST_BAUD_RATE ( ( unsigned portLONG ) 19200 )
|
||||
#define mainCOM_TEST_BAUD_RATE ( ( unsigned long ) 19200 )
|
||||
|
||||
/* The frequency at which the 'Check' tasks executes. See the comments at the
|
||||
top of the page. When the system is operating error free the 'Check' task
|
||||
|
@ -130,10 +130,10 @@ LCD represent LED's]*/
|
|||
#define mainERROR_CHECK_DELAY ( ( portTickType ) 500 / portTICK_RATE_MS )
|
||||
|
||||
/* The constants used in the calculation. */
|
||||
#define intgCONST1 ( ( portLONG ) 123 )
|
||||
#define intgCONST2 ( ( portLONG ) 234567 )
|
||||
#define intgCONST3 ( ( portLONG ) -3 )
|
||||
#define intgCONST4 ( ( portLONG ) 7 )
|
||||
#define intgCONST1 ( ( long ) 123 )
|
||||
#define intgCONST2 ( ( long ) 234567 )
|
||||
#define intgCONST3 ( ( long ) -3 )
|
||||
#define intgCONST4 ( ( long ) 7 )
|
||||
#define intgEXPECTED_ANSWER ( ( ( intgCONST1 + intgCONST2 ) * intgCONST3 ) / intgCONST4 )
|
||||
|
||||
/*
|
||||
|
@ -146,7 +146,7 @@ static void vErrorChecks( void *pvParameters );
|
|||
* Called by the Check task. Returns pdPASS if all the other tasks are found
|
||||
* to be operating without error - otherwise returns pdFAIL.
|
||||
*/
|
||||
static portSHORT prvCheckOtherTasksAreStillRunning( void );
|
||||
static short prvCheckOtherTasksAreStillRunning( void );
|
||||
|
||||
/*
|
||||
* Perform the hardware setup required by the ES449 in order to run the demo
|
||||
|
@ -156,7 +156,7 @@ static void prvSetupHardware( void );
|
|||
|
||||
|
||||
portBASE_TYPE xLocalError = pdFALSE;
|
||||
volatile unsigned portLONG ulIdleLoops = 0UL;
|
||||
volatile unsigned long ulIdleLoops = 0UL;
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -215,10 +215,10 @@ portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY;
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
static portSHORT prvCheckOtherTasksAreStillRunning( void )
|
||||
static short prvCheckOtherTasksAreStillRunning( void )
|
||||
{
|
||||
static portSHORT sNoErrorFound = pdTRUE;
|
||||
static unsigned portLONG ulLastIdleLoopCount = 0UL;
|
||||
static short sNoErrorFound = pdTRUE;
|
||||
static unsigned long ulLastIdleLoopCount = 0UL;
|
||||
|
||||
/* The demo tasks maintain a count that increments every cycle of the task
|
||||
provided that the task has never encountered an error. This function
|
||||
|
@ -291,7 +291,7 @@ void vApplicationIdleHook( void )
|
|||
{
|
||||
/* These variables are all effectively set to constants so they are volatile to
|
||||
ensure the compiler does not just get rid of them. */
|
||||
volatile portLONG lValue;
|
||||
volatile long lValue;
|
||||
|
||||
/* Keep performing a calculation and checking the result against a constant. */
|
||||
for( ;; )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue