Remove unnecessary use of portLONG, portCHAR and portSHORT.

Change version number in headers.
This commit is contained in:
Richard Barry 2009-10-05 10:28:54 +00:00
parent 64c701aff7
commit 4322b8d649
79 changed files with 2661 additions and 2586 deletions

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,9 +64,9 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0 #define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 20000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 70 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 70 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 7000 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 7000 ) )
#define configMAX_TASK_NAME_LEN ( 10 ) #define configMAX_TASK_NAME_LEN ( 10 )
#define configUSE_TRACE_FACILITY 0 #define configUSE_TRACE_FACILITY 0

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,9 +64,9 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0 #define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 20000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 70 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 70 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 7000 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 7000 ) )
#define configMAX_TASK_NAME_LEN ( 10 ) #define configMAX_TASK_NAME_LEN ( 10 )
#define configUSE_TRACE_FACILITY 0 #define configUSE_TRACE_FACILITY 0

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,9 +64,9 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0 #define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 20000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 20000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 59 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 59 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 7000 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 7000 ) )
#define configMAX_TASK_NAME_LEN ( 3 ) #define configMAX_TASK_NAME_LEN ( 3 )
#define configUSE_TRACE_FACILITY 0 #define configUSE_TRACE_FACILITY 0

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -79,8 +80,8 @@
alignment without using any non-portable code. */ alignment without using any non-portable code. */
extern struct xRTOS_HEAP extern struct xRTOS_HEAP
{ {
unsigned portLONG ulDummy; unsigned long ulDummy;
unsigned portCHAR ucHeap[ configTOTAL_HEAP_SIZE ]; unsigned char ucHeap[ configTOTAL_HEAP_SIZE ];
} xHeap; } xHeap;
static size_t xNextFreeByte = ( size_t ) 0; static size_t xNextFreeByte = ( size_t ) 0;

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -143,8 +144,8 @@ static void vButtonHandlerTask( void *pvParameters );
static void vPrintTask( void *pvParameter ); static void vPrintTask( void *pvParameter );
/* String that is transmitted on the UART. */ /* String that is transmitted on the UART. */
static portCHAR *cMessage = "Task woken by button interrupt! --- "; static char *cMessage = "Task woken by button interrupt! --- ";
static volatile portCHAR *pcNextChar; static volatile char *pcNextChar;
/* The semaphore used to wake the button handler task from within the GPIO /* The semaphore used to wake the button handler task from within the GPIO
interrupt handler. */ interrupt handler. */
@ -168,7 +169,7 @@ int main( void )
xSemaphoreTake( xButtonSemaphore, 0 ); xSemaphoreTake( xButtonSemaphore, 0 );
/* Create the queue used to pass message to vPrintTask. */ /* Create the queue used to pass message to vPrintTask. */
xPrintQueue = xQueueCreate( mainQUEUE_SIZE, sizeof( portCHAR * ) ); xPrintQueue = xQueueCreate( mainQUEUE_SIZE, sizeof( char * ) );
/* Start the standard demo tasks. */ /* Start the standard demo tasks. */
vStartIntegerMathTasks( tskIDLE_PRIORITY ); vStartIntegerMathTasks( tskIDLE_PRIORITY );
@ -195,8 +196,8 @@ static void vCheckTask( void *pvParameters )
{ {
portBASE_TYPE xErrorOccurred = pdFALSE; portBASE_TYPE xErrorOccurred = pdFALSE;
portTickType xLastExecutionTime; portTickType xLastExecutionTime;
const portCHAR *pcPassMessage = "PASS"; const char *pcPassMessage = "PASS";
const portCHAR *pcFailMessage = "FAIL"; const char *pcFailMessage = "FAIL";
/* Initialise xLastExecutionTime so the first call to vTaskDelayUntil() /* Initialise xLastExecutionTime so the first call to vTaskDelayUntil()
works correctly. */ works correctly. */
@ -289,7 +290,7 @@ static void prvSetupHardware( void )
static void vButtonHandlerTask( void *pvParameters ) static void vButtonHandlerTask( void *pvParameters )
{ {
const portCHAR *pcInterruptMessage = "Int"; const char *pcInterruptMessage = "Int";
for( ;; ) for( ;; )
{ {
@ -324,7 +325,7 @@ const portCHAR *pcInterruptMessage = "Int";
void vUART_ISR(void) void vUART_ISR(void)
{ {
unsigned portLONG ulStatus; unsigned long ulStatus;
/* What caused the interrupt. */ /* What caused the interrupt. */
ulStatus = UARTIntStatus( UART0_BASE, pdTRUE ); ulStatus = UARTIntStatus( UART0_BASE, pdTRUE );
@ -363,7 +364,7 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
static void vPrintTask( void *pvParameters ) static void vPrintTask( void *pvParameters )
{ {
portCHAR *pcMessage; char *pcMessage;
unsigned portBASE_TYPE uxLine = 0, uxRow = 0; unsigned portBASE_TYPE uxLine = 0, uxRow = 0;
for( ;; ) for( ;; )

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,9 +64,9 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 50000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 50000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1
@ -95,8 +96,8 @@ to exclude the API function. */
#define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 7 << ( unsigned portCHAR ) 5 ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */ #define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned char ) 7 << ( unsigned char ) 5 ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 5 << ( unsigned portCHAR ) 5 ) /* Priority 5, or 160 as only the top three bits are implemented. */ #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned char ) 5 << ( unsigned char ) 5 ) /* Priority 5, or 160 as only the top three bits are implemented. */
extern volatile unsigned long ulHighFrequencyTimerTicks; extern volatile unsigned long ulHighFrequencyTimerTicks;
/* There is already a high frequency timer running - just reset its count back /* There is already a high frequency timer running - just reset its count back

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
#/* #/*
# FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. # FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
# #
# This file is part of the FreeRTOS distribution. # This file is part of the FreeRTOS distribution.
# #
@ -25,8 +25,9 @@
# #
# *************************************************************************** # ***************************************************************************
# * * # * *
# * Looking for a quick start? Then check out the FreeRTOS eBook! * # * The FreeRTOS eBook and reference manual are available to purchase for a *
# * See http://www.FreeRTOS.org/Documentation for details * # * small fee. Help yourself get started quickly while also helping the *
# * FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
# * * # * *
# *************************************************************************** # ***************************************************************************
# #

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,9 +64,9 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 50000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 50000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 70 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 70 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,9 +64,9 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 50000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 50000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1
@ -96,8 +97,8 @@ to exclude the API function. */
#define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 7 << ( unsigned portCHAR ) 5 ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */ #define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned char ) 7 << ( unsigned char ) 5 ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 5 << ( unsigned portCHAR ) 5 ) /* Priority 5, or 160 as only the top three bits are implemented. */ #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned char ) 5 << ( unsigned char ) 5 ) /* Priority 5, or 160 as only the top three bits are implemented. */
extern volatile unsigned long ulHighFrequencyTimerTicks; extern volatile unsigned long ulHighFrequencyTimerTicks;
/* There is already a high frequency timer running - just reset its count back /* There is already a high frequency timer running - just reset its count back

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -156,7 +157,7 @@ time. */
/* The period of the system clock in nano seconds. This is used to calculate /* The period of the system clock in nano seconds. This is used to calculate
the jitter time in nano seconds. */ the jitter time in nano seconds. */
#define mainNS_PER_CLOCK ( ( unsigned portLONG ) ( ( 1.0 / ( double ) configCPU_CLOCK_HZ ) * 1000000000.0 ) ) #define mainNS_PER_CLOCK ( ( unsigned long ) ( ( 1.0 / ( double ) configCPU_CLOCK_HZ ) * 1000000000.0 ) )
/* Constants used when writing strings to the display. */ /* Constants used when writing strings to the display. */
#define mainCHARACTER_HEIGHT ( 9 ) #define mainCHARACTER_HEIGHT ( 9 )
@ -204,10 +205,10 @@ void vApplicationIdleHook( void ) __attribute__((naked));
xQueueHandle xOLEDQueue; xQueueHandle xOLEDQueue;
/* The welcome text. */ /* The welcome text. */
const portCHAR * const pcWelcomeMessage = " www.FreeRTOS.org"; const char * const pcWelcomeMessage = " www.FreeRTOS.org";
/* Variables used to detect the test in the idle hook failing. */ /* Variables used to detect the test in the idle hook failing. */
unsigned portLONG ulIdleError = pdFALSE; unsigned long ulIdleError = pdFALSE;
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -228,7 +229,7 @@ int main( void )
PHY. */ PHY. */
if( SysCtlPeripheralPresent( SYSCTL_PERIPH_ETH ) ) if( SysCtlPeripheralPresent( SYSCTL_PERIPH_ETH ) )
{ {
xTaskCreate( vuIP_Task, ( signed portCHAR * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL ); xTaskCreate( vuIP_Task, ( signed char * ) "uIP", mainBASIC_WEB_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY - 1, NULL );
} }
/* Start the standard demo tasks. */ /* Start the standard demo tasks. */
@ -243,7 +244,7 @@ int main( void )
vStartInterruptQueueTasks(); vStartInterruptQueueTasks();
/* Start the tasks defined within this file/specific to this demo. */ /* Start the tasks defined within this file/specific to this demo. */
xTaskCreate( vOLEDTask, ( signed portCHAR * ) "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL ); xTaskCreate( vOLEDTask, ( signed char * ) "OLED", mainOLED_TASK_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );
/* The suicide tasks must be created last as they need to know how many /* The suicide tasks must be created last as they need to know how many
tasks were running prior to their creation in order to ascertain whether tasks were running prior to their creation in order to ascertain whether
@ -290,7 +291,7 @@ void prvSetupHardware( void )
void vApplicationTickHook( void ) void vApplicationTickHook( void )
{ {
static xOLEDMessage xMessage = { "PASS" }; static xOLEDMessage xMessage = { "PASS" };
static unsigned portLONG ulTicksSinceLastDisplay = 0; static unsigned long ulTicksSinceLastDisplay = 0;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
/* Called from every tick interrupt. Have enough ticks passed to make it /* Called from every tick interrupt. Have enough ticks passed to make it
@ -357,17 +358,17 @@ portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
void vOLEDTask( void *pvParameters ) void vOLEDTask( void *pvParameters )
{ {
xOLEDMessage xMessage; xOLEDMessage xMessage;
unsigned portLONG ulY, ulMaxY; unsigned long ulY, ulMaxY;
static portCHAR cMessage[ mainMAX_MSG_LEN ]; static char cMessage[ mainMAX_MSG_LEN ];
extern volatile unsigned portLONG ulMaxJitter; extern volatile unsigned long ulMaxJitter;
unsigned portBASE_TYPE uxUnusedStackOnEntry, uxUnusedStackNow; unsigned portBASE_TYPE uxUnusedStackOnEntry, uxUnusedStackNow;
const unsigned portCHAR *pucImage; const unsigned char *pucImage;
/* Functions to access the OLED. The one used depends on the dev kit /* Functions to access the OLED. The one used depends on the dev kit
being used. */ being used. */
void ( *vOLEDInit )( unsigned portLONG ) = NULL; void ( *vOLEDInit )( unsigned long ) = NULL;
void ( *vOLEDStringDraw )( const portCHAR *, unsigned portLONG, unsigned portLONG, unsigned portCHAR ) = NULL; void ( *vOLEDStringDraw )( const char *, unsigned long, unsigned long, unsigned char ) = NULL;
void ( *vOLEDImageDraw )( const unsigned portCHAR *, unsigned portLONG, unsigned portLONG, unsigned portLONG, unsigned portLONG ) = NULL; void ( *vOLEDImageDraw )( const unsigned char *, unsigned long, unsigned long, unsigned long, unsigned long ) = NULL;
void ( *vOLEDClear )( void ) = NULL; void ( *vOLEDClear )( void ) = NULL;
/* Just for demo purposes. */ /* Just for demo purposes. */
@ -433,7 +434,7 @@ void ( *vOLEDClear )( void ) = NULL;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
for( ;; ); for( ;; );
} }

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -79,12 +80,12 @@ zero. */
void Timer0IntHandler( void ); void Timer0IntHandler( void );
/* Stores the value of the maximum recorded jitter between interrupts. */ /* Stores the value of the maximum recorded jitter between interrupts. */
volatile unsigned portLONG ulMaxJitter = 0UL; volatile unsigned long ulMaxJitter = 0UL;
/* Counts the total number of times that the high frequency timer has 'ticked'. /* Counts the total number of times that the high frequency timer has 'ticked'.
This value is used by the run time stats function to work out what percentage This value is used by the run time stats function to work out what percentage
of CPU time each task is taking. */ of CPU time each task is taking. */
volatile unsigned portLONG ulHighFrequencyTimerTicks = 0UL; volatile unsigned long ulHighFrequencyTimerTicks = 0UL;
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vSetupHighFrequencyTimer( void ) void vSetupHighFrequencyTimer( void )
@ -121,9 +122,9 @@ unsigned long ulFrequency;
void Timer0IntHandler( void ) void Timer0IntHandler( void )
{ {
unsigned portLONG ulDifference; unsigned long ulDifference;
volatile unsigned portLONG ulCurrentCount; volatile unsigned long ulCurrentCount;
static unsigned portLONG ulMaxDifference = 0, ulLastCount = 0; static unsigned long ulMaxDifference = 0, ulLastCount = 0;
/* We use the timer 1 counter value to measure the clock cycles between /* We use the timer 1 counter value to measure the clock cycles between
the timer 0 interrupts. */ the timer 0 interrupts. */

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -87,16 +88,16 @@ xSemaphoreHandle xMACInterruptSemaphore = NULL;
/* The buffer used by the uIP stack. In this case the pointer is used to /* The buffer used by the uIP stack. In this case the pointer is used to
point to one of the Rx buffers. */ point to one of the Rx buffers. */
unsigned portCHAR *uip_buf; unsigned char *uip_buf;
/* Buffers into which Rx data is placed. */ /* Buffers into which Rx data is placed. */
static unsigned portCHAR ucRxBuffers[ emacNUM_RX_BUFFERS ][ UIP_BUFSIZE + ( 4 * emacFRAM_SIZE_BYTES ) ] __attribute__((aligned(4))); static unsigned char ucRxBuffers[ emacNUM_RX_BUFFERS ][ UIP_BUFSIZE + ( 4 * emacFRAM_SIZE_BYTES ) ] __attribute__((aligned(4)));
/* The length of the data within each of the Rx buffers. */ /* The length of the data within each of the Rx buffers. */
static unsigned portLONG ulRxLength[ emacNUM_RX_BUFFERS ]; static unsigned long ulRxLength[ emacNUM_RX_BUFFERS ];
/* Used to keep a track of the number of bytes to transmit. */ /* Used to keep a track of the number of bytes to transmit. */
static unsigned portLONG ulNextTxSpace; static unsigned long ulNextTxSpace;
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -127,7 +128,7 @@ portBASE_TYPE xReturn;
task level. */ task level. */
vSemaphoreCreateBinary( xMACInterruptSemaphore ); vSemaphoreCreateBinary( xMACInterruptSemaphore );
xSemaphoreTake( xMACInterruptSemaphore, 0 ); xSemaphoreTake( xMACInterruptSemaphore, 0 );
xReturn = xTaskCreate( vMACHandleTask, ( signed portCHAR * ) "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL ); xReturn = xTaskCreate( vMACHandleTask, ( signed char * ) "MAC", configMINIMAL_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, NULL );
vTaskDelay( macNEGOTIATE_DELAY ); vTaskDelay( macNEGOTIATE_DELAY );
/* We are only interested in Rx interrupts. */ /* We are only interested in Rx interrupts. */
@ -172,7 +173,7 @@ void vInitialiseSend( void )
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vIncrementTxLength( unsigned portLONG ulLength ) void vIncrementTxLength( unsigned long ulLength )
{ {
ulNextTxSpace += ulLength; ulNextTxSpace += ulLength;
} }
@ -181,11 +182,11 @@ void vIncrementTxLength( unsigned portLONG ulLength )
void vSendBufferToMAC( void ) void vSendBufferToMAC( void )
{ {
unsigned long *pulSource; unsigned long *pulSource;
unsigned portSHORT * pus; unsigned short * pus;
unsigned portLONG ulNextWord; unsigned long ulNextWord;
/* Locate the data to be send. */ /* Locate the data to be send. */
pus = ( unsigned portSHORT * ) uip_buf; pus = ( unsigned short * ) uip_buf;
/* Add in the size of the data. */ /* Add in the size of the data. */
pus--; pus--;
@ -197,9 +198,9 @@ unsigned portLONG ulNextWord;
vTaskDelay( macWAIT_SEND_TIME ); vTaskDelay( macWAIT_SEND_TIME );
} }
pulSource = ( unsigned portLONG * ) pus; pulSource = ( unsigned long * ) pus;
for( ulNextWord = 0; ulNextWord < ulNextTxSpace; ulNextWord += sizeof( unsigned portLONG ) ) for( ulNextWord = 0; ulNextWord < ulNextTxSpace; ulNextWord += sizeof( unsigned long ) )
{ {
HWREG(ETH_BASE + MAC_O_DATA) = *pulSource; HWREG(ETH_BASE + MAC_O_DATA) = *pulSource;
pulSource++; pulSource++;
@ -213,7 +214,7 @@ unsigned portLONG ulNextWord;
void vEMAC_ISR( void ) void vEMAC_ISR( void )
{ {
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
unsigned portLONG ulTemp; unsigned long ulTemp;
/* Clear the interrupt. */ /* Clear the interrupt. */
ulTemp = EthernetIntStatus( ETH_BASE, pdFALSE ); ulTemp = EthernetIntStatus( ETH_BASE, pdFALSE );
@ -234,9 +235,9 @@ unsigned portLONG ulTemp;
void vMACHandleTask( void *pvParameters ) void vMACHandleTask( void *pvParameters )
{ {
unsigned long ulLen = 0, i; unsigned long ulLen = 0, i;
unsigned portLONG ulLength, ulInt; unsigned long ulLength, ulInt;
unsigned long *pulBuffer; unsigned long *pulBuffer;
static unsigned portLONG ulNextRxBuffer = 0; static unsigned long ulNextRxBuffer = 0;
portBASE_TYPE xSwitchRequired = pdFALSE; portBASE_TYPE xSwitchRequired = pdFALSE;
for( ;; ) for( ;; )
@ -268,7 +269,7 @@ portBASE_TYPE xSwitchRequired = pdFALSE;
} }
/* Read out the data into our buffer. */ /* Read out the data into our buffer. */
for( i = 0; i < ulLength; i += sizeof( unsigned portLONG ) ) for( i = 0; i < ulLength; i += sizeof( unsigned long ) )
{ {
*pulBuffer = HWREG( ETH_BASE + MAC_O_DATA ); *pulBuffer = HWREG( ETH_BASE + MAC_O_DATA );
pulBuffer++; pulBuffer++;

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -251,7 +252,7 @@ static void prvENET_Send(void)
static void prvSetMACAddress( void ) static void prvSetMACAddress( void )
{ {
unsigned portLONG ulUser0, ulUser1; unsigned long ulUser0, ulUser1;
unsigned char pucMACArray[8]; unsigned char pucMACArray[8];
struct uip_eth_addr xAddr; struct uip_eth_addr xAddr;
@ -279,10 +280,10 @@ struct uip_eth_addr xAddr;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationProcessFormInput( portCHAR *pcInputString, portBASE_TYPE xInputLength ) void vApplicationProcessFormInput( char *pcInputString, portBASE_TYPE xInputLength )
{ {
char *c, *pcText; char *c, *pcText;
static portCHAR cMessageForDisplay[ 32 ]; static char cMessageForDisplay[ 32 ];
extern xQueueHandle xOLEDQueue; extern xQueueHandle xOLEDQueue;
xOLEDMessage xOLEDMessage; xOLEDMessage xOLEDMessage;

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -64,9 +65,9 @@
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 99000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 99000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 19 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 19 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -190,7 +191,7 @@ char cIPAddress[ 16 ]; /* Enough space for "xxx.xxx.xxx.xxx\0". */
void vApplicationTickHook( void ) void vApplicationTickHook( void )
{ {
static unsigned portLONG ulTicksSinceLastDisplay = 0; static unsigned long ulTicksSinceLastDisplay = 0;
/* Called from every tick interrupt as described in the comments at the top /* Called from every tick interrupt as described in the comments at the top
of this file. of this file.
@ -345,7 +346,7 @@ void prvSetupHardware( void )
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
/* This function will get called if a task overflows its stack. */ /* This function will get called if a task overflows its stack. */

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -240,7 +241,7 @@ struct uip_eth_addr xAddr;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationProcessFormInput( portCHAR *pcInputString ) void vApplicationProcessFormInput( char *pcInputString )
{ {
char *c; char *c;
const unsigned long ulLEDNo = 3; const unsigned long ulLEDNo = 3;

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -64,9 +65,9 @@
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 99000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 99000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 19 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 19 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -172,7 +173,7 @@ int main( void )
void vApplicationTickHook( void ) void vApplicationTickHook( void )
{ {
static unsigned portLONG ulTicksSinceLastDisplay = 0; static unsigned long ulTicksSinceLastDisplay = 0;
/* Called from every tick interrupt as described in the comments at the top /* Called from every tick interrupt as described in the comments at the top
of this file. of this file.
@ -249,7 +250,7 @@ void prvSetupHardware( void )
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
/* This function will get called if a task overflows its stack. */ /* This function will get called if a task overflows its stack. */

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -240,7 +241,7 @@ struct uip_eth_addr xAddr;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationProcessFormInput( portCHAR *pcInputString ) void vApplicationProcessFormInput( char *pcInputString )
{ {
char *c; char *c;
extern void vParTestSetLEDState( long lState ); extern void vParTestSetLEDState( long lState );

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -62,9 +63,9 @@
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 99000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 99000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 19 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 19 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -182,7 +183,7 @@ int main( void )
void vApplicationTickHook( void ) void vApplicationTickHook( void )
{ {
static unsigned portLONG ulTicksSinceLastDisplay = 0; static unsigned long ulTicksSinceLastDisplay = 0;
/* Called from every tick interrupt as described in the comments at the top /* Called from every tick interrupt as described in the comments at the top
of this file. of this file.
@ -354,7 +355,7 @@ void prvSetupHardware( void )
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
/* This function will get called if a task overflows its stack. */ /* This function will get called if a task overflows its stack. */

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -240,7 +241,7 @@ struct uip_eth_addr xAddr;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationProcessFormInput( portCHAR *pcInputString ) void vApplicationProcessFormInput( char *pcInputString )
{ {
char *c; char *c;
extern void vParTestSetLEDState( long lState ); extern void vParTestSetLEDState( long lState );

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,9 +64,9 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 50000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 50000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 100 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 100 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 24000 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1
@ -99,10 +100,10 @@ to exclude the API function. */
#else #else
#define configPRIO_BITS 3 #define configPRIO_BITS 3
#endif #endif
#define configUNUSED_PRIO_BITS ( ( unsigned portCHAR ) ( 8 - configPRIO_BITS ) ) #define configUNUSED_PRIO_BITS ( ( unsigned char ) ( 8 - configPRIO_BITS ) )
#define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 7 << configUNUSED_PRIO_BITS ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */ #define configKERNEL_INTERRUPT_PRIORITY ( ( unsigned char ) 7 << configUNUSED_PRIO_BITS ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned portCHAR ) 5 << configUNUSED_PRIO_BITS ) /* Priority 5, or 160 as only the top three bits are implemented. */ #define configMAX_SYSCALL_INTERRUPT_PRIORITY ( ( unsigned char ) 5 << configUNUSED_PRIO_BITS ) /* Priority 5, or 160 as only the top three bits are implemented. */
#define pvPortMallocAligned( x, puxStackBuffer ) ( ( puxStackBuffer == NULL ) ? ( pvPortMalloc( x ) ) : ( puxStackBuffer ) ) #define pvPortMallocAligned( x, puxStackBuffer ) ( ( puxStackBuffer == NULL ) ? ( pvPortMalloc( x ) ) : ( puxStackBuffer ) )
#define vPortFreeAligned( x ) ( void ) x #define vPortFreeAligned( x ) ( void ) x

View file

@ -49,7 +49,7 @@
<Watches active="0" update="Never" /> <Watches active="0" update="Never" />
</Watch4> </Watch4>
<Files> <Files>
<SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\E\Dev\FreeRTOS\WorkingCopy\Demo\CORTEX_MPU_LM3Sxxxx_Rowley\main.c" y="0" path="C:\E\Dev\FreeRTOS\WorkingCopy\Demo\CORTEX_MPU_LM3Sxxxx_Rowley\main.c" left="0" selected="1" name="unnamed" top="0" /> <SessionOpenFile useTextEdit="1" useBinaryEdit="0" codecName="Latin1" x="0" debugPath="C:\E\Dev\FreeRTOS\WorkingCopy\Demo\CORTEX_MPU_LM3Sxxxx_Rowley\main.c" y="0" path="C:\E\Dev\FreeRTOS\WorkingCopy\Demo\CORTEX_MPU_LM3Sxxxx_Rowley\main.c" left="0" selected="1" name="unnamed" top="370" />
</Files> </Files>
<ARMCrossStudioWindow activeProject="RTOSDemo" autoConnectTarget="Luminary USB Debug" debugSearchFileMap="" fileDialogInitialDirectory="C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\ARM_CM3_MPU" fileDialogDefaultFilter="*.*" autoConnectCapabilities="388991" debugSearchPath="" buildConfiguration="THUMB Flash Debug" /> <ARMCrossStudioWindow activeProject="RTOSDemo" autoConnectTarget="Luminary USB Debug" debugSearchFileMap="" fileDialogInitialDirectory="C:\E\Dev\FreeRTOS\WorkingCopy\Source\portable\GCC\ARM_CM3_MPU" fileDialogDefaultFilter="*.*" autoConnectCapabilities="388991" debugSearchPath="" buildConfiguration="THUMB Flash Debug" />
</session> </session>

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -645,7 +646,7 @@ portBASE_TYPE xDummy;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
/* If configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2 then this /* If configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2 then this
function will automatically get called if a task overflows its stack. */ function will automatically get called if a task overflows its stack. */

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -64,9 +65,9 @@
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 99000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 99000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 80 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 5 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 5 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 12 ) #define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -741,7 +742,7 @@ portBASE_TYPE xDummy;
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
/* If configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2 then this /* If configCHECK_FOR_STACK_OVERFLOW is set to either 1 or 2 then this
function will automatically get called if a task overflows its stack. */ function will automatically get called if a task overflows its stack. */

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,10 +64,10 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0 #define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 72000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 72000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 16 ) #define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_TRACE_FACILITY 0 #define configUSE_TRACE_FACILITY 0

View file

@ -9,7 +9,7 @@ typedef struct
} xLCDMessage; } xLCDMessage;
/* The bitmap displayed on the LCD when the LCD task starts. */ /* The bitmap displayed on the LCD when the LCD task starts. */
const unsigned portCHAR pcBitmap[] = const unsigned char pcBitmap[] =
{ {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,10 +64,10 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 0 #define configUSE_TICK_HOOK 0
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 72000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 72000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 16 ) #define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_TRACE_FACILITY 0 #define configUSE_TRACE_FACILITY 0

View file

@ -9,7 +9,7 @@ typedef struct
} xLCDMessage; } xLCDMessage;
/* The bitmap displayed on the LCD when the LCD task starts. */ /* The bitmap displayed on the LCD when the LCD task starts. */
const unsigned portCHAR pcBitmap[] = const unsigned char pcBitmap[] =
{ {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -66,10 +67,10 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 72000000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 72000000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 17 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 16 ) #define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_TRACE_FACILITY 0 #define configUSE_TRACE_FACILITY 0

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -63,10 +64,10 @@
#define configUSE_PREEMPTION 1 #define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 0 #define configUSE_IDLE_HOOK 0
#define configUSE_TICK_HOOK 1 #define configUSE_TICK_HOOK 1
#define configCPU_CLOCK_HZ ( ( unsigned portLONG ) 62500000 ) #define configCPU_CLOCK_HZ ( ( unsigned long ) 62500000 )
#define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configTICK_RATE_HZ ( ( portTickType ) 1000 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 5 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 ) #define configMINIMAL_STACK_SIZE ( ( unsigned short ) 128 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 30 * 1024 ) ) #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 30 * 1024 ) )
#define configMAX_TASK_NAME_LEN ( 16 ) #define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_TRACE_FACILITY 1 #define configUSE_TRACE_FACILITY 1

View file

@ -9,7 +9,7 @@ typedef struct
} xLCDMessage; } xLCDMessage;
/* The bitmap displayed on the LCD when the LCD task starts. */ /* The bitmap displayed on the LCD when the LCD task starts. */
const unsigned portCHAR pcBitmap[] = const unsigned char pcBitmap[] =
{ {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -139,7 +140,7 @@ handling library calls. */
/* The period of the system clock in nano seconds. This is used to calculate /* The period of the system clock in nano seconds. This is used to calculate
the jitter time in nano seconds. */ the jitter time in nano seconds. */
#define mainNS_PER_CLOCK ( ( unsigned portLONG ) ( ( 1.0 / ( double ) configCPU_CLOCK_HZ ) * 1000000000.0 ) ) #define mainNS_PER_CLOCK ( ( unsigned long ) ( ( 1.0 / ( double ) configCPU_CLOCK_HZ ) * 1000000000.0 ) )
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
@ -205,7 +206,7 @@ int main( void )
/* Start the LCD gatekeeper task - as described in the comments at the top /* Start the LCD gatekeeper task - as described in the comments at the top
of this file. */ of this file. */
xTaskCreate( prvLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE * 2, NULL, mainLCD_TASK_PRIORITY, NULL ); xTaskCreate( prvLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE * 2, NULL, mainLCD_TASK_PRIORITY, NULL );
/* Configure the high frequency interrupt used to measure the interrupt /* Configure the high frequency interrupt used to measure the interrupt
jitter time. When debugging it can be helpful to comment this line out jitter time. When debugging it can be helpful to comment this line out
@ -282,7 +283,7 @@ static void prvSetupHardware( void )
} }
/* 2 wait states required on the flash. */ /* 2 wait states required on the flash. */
*( ( unsigned portLONG * ) 0x40022000 ) = 0x02; *( ( unsigned long * ) 0x40022000 ) = 0x02;
/* HCLK = SYSCLK */ /* HCLK = SYSCLK */
RCC_HCLKConfig( RCC_SYSCLK_Div1 ); RCC_HCLKConfig( RCC_SYSCLK_Div1 );
@ -329,7 +330,7 @@ static void prvSetupHardware( void )
} }
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTaskName ) void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
{ {
/* This function will get called if a task overflows its stack. If the /* This function will get called if a task overflows its stack. If the
parameters are corrupt then inspect pxCurrentTCB to find which was the parameters are corrupt then inspect pxCurrentTCB to find which was the
@ -345,7 +346,7 @@ void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed portCHAR *pcTask
void vApplicationTickHook( void ) void vApplicationTickHook( void )
{ {
char *pcMessage = "Status: PASS"; char *pcMessage = "Status: PASS";
static unsigned portLONG ulTicksSinceLastDisplay = 0; static unsigned long ulTicksSinceLastDisplay = 0;
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE; portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
/* Called from every tick interrupt as described in the comments at the top /* Called from every tick interrupt as described in the comments at the top

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -57,7 +58,7 @@
/* The set frequency of the interrupt. Deviations from this are measured as /* The set frequency of the interrupt. Deviations from this are measured as
the jitter. */ the jitter. */
#define timerINTERRUPT_FREQUENCY ( ( unsigned portSHORT ) 20000 ) #define timerINTERRUPT_FREQUENCY ( ( unsigned short ) 20000 )
/* The expected time between each of the timer interrupts - if the jitter was /* The expected time between each of the timer interrupts - if the jitter was
zero. */ zero. */
@ -81,7 +82,7 @@ zero. */
void vSetupHighFrequencyTimer( void ); void vSetupHighFrequencyTimer( void );
/* Stores the value of the maximum recorded jitter between interrupts. */ /* Stores the value of the maximum recorded jitter between interrupts. */
volatile unsigned portSHORT usMaxJitter = 0; volatile unsigned short usMaxJitter = 0;
/* Variable that counts at 20KHz to provide the time base for the run time /* Variable that counts at 20KHz to provide the time base for the run time
stats. */ stats. */
@ -107,7 +108,7 @@ NVIC_InitTypeDef NVIC_InitStructure;
/* Time base configuration for timer 2 - which generates the interrupts. */ /* Time base configuration for timer 2 - which generates the interrupts. */
ulFrequency = configCPU_CLOCK_HZ / timerINTERRUPT_FREQUENCY; ulFrequency = configCPU_CLOCK_HZ / timerINTERRUPT_FREQUENCY;
TIM_TimeBaseStructure.TIM_Period = ( unsigned portSHORT ) ( ulFrequency & 0xffffUL ); TIM_TimeBaseStructure.TIM_Period = ( unsigned short ) ( ulFrequency & 0xffffUL );
TIM_TimeBaseStructure.TIM_Prescaler = 0x0; TIM_TimeBaseStructure.TIM_Prescaler = 0x0;
TIM_TimeBaseStructure.TIM_ClockDivision = 0x0; TIM_TimeBaseStructure.TIM_ClockDivision = 0x0;
TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up; TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;
@ -117,7 +118,7 @@ NVIC_InitTypeDef NVIC_InitStructure;
/* Configuration for timer 3 which is used as a high resolution time /* Configuration for timer 3 which is used as a high resolution time
measurement. */ measurement. */
TIM_TimeBaseStructure.TIM_Period = ( unsigned portSHORT ) 0xffff; TIM_TimeBaseStructure.TIM_Period = ( unsigned short ) 0xffff;
TIM_TimeBaseInit( TIM3, &TIM_TimeBaseStructure ); TIM_TimeBaseInit( TIM3, &TIM_TimeBaseStructure );
TIM_ARRPreloadConfig( TIM3, ENABLE ); TIM_ARRPreloadConfig( TIM3, ENABLE );
@ -137,8 +138,8 @@ NVIC_InitTypeDef NVIC_InitStructure;
void TIM2_IRQHandler( void ) void TIM2_IRQHandler( void )
{ {
static unsigned portSHORT usLastCount = 0, usSettleCount = 0, usMaxDifference = 0; static unsigned short usLastCount = 0, usSettleCount = 0, usMaxDifference = 0;
unsigned portSHORT usThisCount, usDifference; unsigned short usThisCount, usDifference;
/* Capture the free running timer 3 value as we enter the interrupt. */ /* Capture the free running timer 3 value as we enter the interrupt. */
usThisCount = TIM3->CNT; usThisCount = TIM3->CNT;

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************

View file

@ -1,5 +1,5 @@
/* /*
FreeRTOS V5.4.2 - Copyright (C) 2009 Real Time Engineers Ltd. FreeRTOS V6.0.0 - Copyright (C) 2009 Real Time Engineers Ltd.
This file is part of the FreeRTOS distribution. This file is part of the FreeRTOS distribution.
@ -25,8 +25,9 @@
*************************************************************************** ***************************************************************************
* * * *
* Looking for a quick start? Then check out the FreeRTOS eBook! * * The FreeRTOS eBook and reference manual are available to purchase for a *
* See http://www.FreeRTOS.org/Documentation for details * * small fee. Help yourself get started quickly while also helping the *
* FreeRTOS project! See http://www.FreeRTOS.org/Documentation for details *
* * * *
*************************************************************************** ***************************************************************************
@ -96,7 +97,7 @@ xSemaphoreHandle xEMACSemaphore;
/* The buffer used by the uIP stack. In this case the pointer is used to /* The buffer used by the uIP stack. In this case the pointer is used to
point to one of the Rx buffers. */ point to one of the Rx buffers. */
unsigned portCHAR *uip_buf = NULL; unsigned char *uip_buf = NULL;
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/