mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 10:08: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
|
@ -85,7 +85,7 @@
|
|||
#define configUSE_TICK_HOOK 0
|
||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 250 )
|
||||
#define configCPU_CLOCK_HZ ( ( unsigned long ) XPAR_CPU_PPC440_CORE_CLOCK_FREQ_HZ ) /* Clock setup from start.asm in the demo application. */
|
||||
#define configTICK_RATE_HZ ( (portTickType) 1000 )
|
||||
#define configTICK_RATE_HZ ( (TickType_t) 1000 )
|
||||
#define configMAX_PRIORITIES ( 6 )
|
||||
#define configTOTAL_HEAP_SIZE ( (size_t) (80 * 1024) )
|
||||
#define configMAX_TASK_NAME_LEN ( 20 )
|
||||
|
|
|
@ -135,7 +135,7 @@ static volatile unsigned long ulFlop1CycleCount = 0, ulFlop2CycleCount = 0;
|
|||
|
||||
void vStartFlopRegTests( void )
|
||||
{
|
||||
xTaskHandle xTaskJustCreated;
|
||||
TaskHandle_t xTaskJustCreated;
|
||||
unsigned portBASE_TYPE x, y;
|
||||
portDOUBLE z = flopSTART_VALUE;
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ static portDOUBLE dFlopRegisters[ mathNUMBER_OF_TASKS ][ portNO_FLOP_REGISTERS_T
|
|||
|
||||
void vStartMathTasks( unsigned portBASE_TYPE uxPriority )
|
||||
{
|
||||
xTaskHandle xTaskJustCreated;
|
||||
TaskHandle_t xTaskJustCreated;
|
||||
portBASE_TYPE x, y;
|
||||
|
||||
/* Place known values into the buffers into which the flop registers are
|
||||
|
|
|
@ -137,8 +137,8 @@ baud rate parameters passed into the comtest initialisation has no effect. */
|
|||
the check LED will toggle every mainNO_ERROR_CHECK_DELAY milliseconds. If an
|
||||
error has been found at any time then the toggle rate will increase to
|
||||
mainERROR_CHECK_DELAY milliseconds. */
|
||||
#define mainNO_ERROR_CHECK_DELAY ( ( portTickType ) 3000 / portTICK_RATE_MS )
|
||||
#define mainERROR_CHECK_DELAY ( ( portTickType ) 500 / portTICK_RATE_MS )
|
||||
#define mainNO_ERROR_CHECK_DELAY ( ( TickType_t ) 3000 / portTICK_PERIOD_MS )
|
||||
#define mainERROR_CHECK_DELAY ( ( TickType_t ) 500 / portTICK_PERIOD_MS )
|
||||
|
||||
|
||||
/*
|
||||
|
@ -332,7 +332,7 @@ static unsigned long ulLastRegTest1Counter= 0UL, ulLastRegTest2Counter = 0UL;
|
|||
|
||||
static void prvErrorChecks( void *pvParameters )
|
||||
{
|
||||
portTickType xDelayPeriod = mainNO_ERROR_CHECK_DELAY, xLastExecutionTime;
|
||||
TickType_t xDelayPeriod = mainNO_ERROR_CHECK_DELAY, xLastExecutionTime;
|
||||
volatile unsigned portBASE_TYPE uxFreeStack;
|
||||
|
||||
/* Just to remove compiler warning. */
|
||||
|
@ -691,11 +691,11 @@ static void prvRegTestTask2( void *pvParameters )
|
|||
/* This hook function will get called if there is a suspected stack overflow.
|
||||
An overflow can cause the task name to be corrupted, in which case the task
|
||||
handle needs to be used to determine the offending task. */
|
||||
void vApplicationStackOverflowHook( xTaskHandle xTask, signed char *pcTaskName );
|
||||
void vApplicationStackOverflowHook( xTaskHandle xTask, signed char *pcTaskName )
|
||||
void vApplicationStackOverflowHook( TaskHandle_t xTask, signed char *pcTaskName );
|
||||
void vApplicationStackOverflowHook( TaskHandle_t xTask, signed char *pcTaskName )
|
||||
{
|
||||
/* To prevent the optimiser removing the variables. */
|
||||
volatile xTaskHandle xTaskIn = xTask;
|
||||
volatile TaskHandle_t xTaskIn = xTask;
|
||||
volatile signed char *pcTaskNameIn = pcTaskName;
|
||||
|
||||
/* Remove compiler warnings. */
|
||||
|
|
|
@ -85,8 +85,8 @@
|
|||
|
||||
/* Queues used to hold received characters, and characters waiting to be
|
||||
transmitted. */
|
||||
static xQueueHandle xRxedChars;
|
||||
static xQueueHandle xCharsForTx;
|
||||
static QueueHandle_t xRxedChars;
|
||||
static QueueHandle_t xCharsForTx;
|
||||
|
||||
/* Structure that maintains information on the UART being used. */
|
||||
static XUartLite xUART;
|
||||
|
@ -133,7 +133,7 @@ xComPortHandle xSerialPortInitMinimal( unsigned long ulWantedBaud, unsigned port
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, portTickType xBlockTime )
|
||||
signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedChar, TickType_t xBlockTime )
|
||||
{
|
||||
/* The port handle is not required as this driver only supports one UART. */
|
||||
( void ) pxPort;
|
||||
|
@ -151,7 +151,7 @@ signed portBASE_TYPE xSerialGetChar( xComPortHandle pxPort, signed char *pcRxedC
|
|||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, portTickType xBlockTime )
|
||||
signed portBASE_TYPE xSerialPutChar( xComPortHandle pxPort, signed char cOutChar, TickType_t xBlockTime )
|
||||
{
|
||||
portBASE_TYPE xReturn = pdTRUE;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue