\r
T3CON = 0;\r
TMR3 = 0;\r
- PR3 = ( unsigned portSHORT ) ( configPERIPHERAL_CLOCK_HZ / timerINTERRUPT3_FREQUENCY );\r
+ PR3 = ( unsigned short ) ( configPERIPHERAL_CLOCK_HZ / timerINTERRUPT3_FREQUENCY );\r
\r
/* Setup timer 3 interrupt priority to be above the kernel priority. */\r
ConfigIntTimer3( T3_INT_ON | ( configMAX_SYSCALL_INTERRUPT_PRIORITY - 1 ) );\r
/* Do the same for timer 4. */\r
T4CON = 0;\r
TMR4 = 0;\r
- PR4 = ( unsigned portSHORT ) ( configPERIPHERAL_CLOCK_HZ / timerINTERRUPT4_FREQUENCY );\r
+ PR4 = ( unsigned short ) ( configPERIPHERAL_CLOCK_HZ / timerINTERRUPT4_FREQUENCY );\r
\r
/* Setup timer 4 interrupt priority to be above the kernel priority. */\r
ConfigIntTimer4( T4_INT_ON | ( configMAX_SYSCALL_INTERRUPT_PRIORITY ) );\r
/* \r
* Move to the first (0) or second (1) row of the LCD. \r
*/\r
-static void prvLCDGotoRow( unsigned portSHORT usRow );\r
+static void prvLCDGotoRow( unsigned short usRow );\r
\r
/* \r
* Write a string of text to the LCD. \r
*/\r
-static void prvLCDPutString( portCHAR *pcString );\r
+static void prvLCDPutString( char *pcString );\r
\r
/* \r
* Clear the LCD. \r
xQueueHandle xLCDQueue;\r
\r
/* LCD access functions. */\r
-static void prvLCDCommand( portCHAR cCommand );\r
-static void prvLCDData( portCHAR cChar );\r
+static void prvLCDCommand( char cCommand );\r
+static void prvLCDData( char cChar );\r
\r
/*-----------------------------------------------------------*/\r
\r
\r
/* Start the task that will write to the LCD. The LCD hardware is\r
initialised from within the task itself so delays can be used. */\r
- xTaskCreate( vLCDTask, ( signed portCHAR * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
+ xTaskCreate( vLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 1, NULL );\r
\r
return xLCDQueue;\r
}\r
/*-----------------------------------------------------------*/\r
\r
-static void prvLCDGotoRow( unsigned portSHORT usRow )\r
+static void prvLCDGotoRow( unsigned short usRow )\r
{\r
if(usRow == 0) \r
{\r
}\r
/*-----------------------------------------------------------*/\r
\r
-static void prvLCDCommand( portCHAR cCommand ) \r
+static void prvLCDCommand( char cCommand ) \r
{\r
PMPSetAddress( LCD_COMMAND_ADDRESS );\r
PMPMasterWrite( cCommand );\r
}\r
/*-----------------------------------------------------------*/\r
\r
-static void prvLCDData( portCHAR cChar )\r
+static void prvLCDData( char cChar )\r
{\r
PMPSetAddress( LCD_DATA_ADDRESS );\r
PMPMasterWrite( cChar );\r
}\r
/*-----------------------------------------------------------*/\r
\r
-static void prvLCDPutString( portCHAR *pcString )\r
+static void prvLCDPutString( char *pcString )\r
{\r
/* Write out each character with appropriate delay between each. */\r
while(*pcString)\r
static void vLCDTask(void *pvParameters)\r
{\r
xLCDMessage xMessage;\r
-unsigned portSHORT usRow = 0;\r
+unsigned short usRow = 0;\r
\r
/* Initialise the hardware. This uses delays so must not be called prior\r
to the scheduler being started. */\r
#define mainEXPECTED_CLOCKS_BETWEEN_INTERRUPTS ( ( configCPU_CLOCK_HZ >> 1 ) / mainTEST_INTERRUPT_FREQUENCY )\r
\r
/* The number of nano seconds between each core clock. */\r
-#define mainNS_PER_CLOCK ( ( unsigned portLONG ) ( ( 1.0 / ( double ) ( configCPU_CLOCK_HZ >> 1 ) ) * 1000000000.0 ) )\r
+#define mainNS_PER_CLOCK ( ( unsigned long ) ( ( 1.0 / ( double ) ( configCPU_CLOCK_HZ >> 1 ) ) * 1000000000.0 ) )\r
\r
/*-----------------------------------------------------------*/\r
\r
\r
/* Flag used by prvTestTask1() and prvTestTask2() to indicate their status\r
(pass/fail). */\r
-unsigned portLONG ulStatus1 = pdPASS;\r
+unsigned long ulStatus1 = pdPASS;\r
\r
/* Variables incremented by prvTestTask1() and prvTestTask2() respectively on \r
each iteration of their function. This is used to detect either task stopping\r
their execution.. */\r
-unsigned portLONG ulRegTest1Cycles = 0, ulRegTest2Cycles = 0;\r
+unsigned long ulRegTest1Cycles = 0, ulRegTest2Cycles = 0;\r
\r
/*-----------------------------------------------------------*/\r
\r
\r
static void prvCheckTask( void *pvParameters )\r
{\r
-unsigned portLONG ulLastRegTest1Value = 0, ulLastRegTest2Value = 0, ulTicksToWait = mainNO_ERROR_PERIOD;\r
+unsigned long ulLastRegTest1Value = 0, ulLastRegTest2Value = 0, ulTicksToWait = mainNO_ERROR_PERIOD;\r
portTickType xLastExecutionTime;\r
\r
/* Buffer into which the high frequency timer count is written as a string. */\r
-static portCHAR cStringBuffer[ mainMAX_STRING_LENGTH ];\r
+static char cStringBuffer[ mainMAX_STRING_LENGTH ];\r
\r
/* The count of the high frequency timer interrupts. */\r
-extern unsigned portLONG ulHighFrequencyTimerInterrupts;\r
+extern unsigned long ulHighFrequencyTimerInterrupts;\r
xLCDMessage xMessage = { ( 200 / portTICK_RATE_MS ), cStringBuffer };\r
\r
/* Setup the high frequency, high priority, timer test. It is setup here\r
}\r
/*-----------------------------------------------------------*/\r
\r
-void _general_exception_handler( unsigned portLONG ulCause, unsigned portLONG ulStatus )\r
+void _general_exception_handler( unsigned long ulCause, unsigned long ulStatus )\r
{\r
/* This overrides the definition provided by the kernel. Other exceptions \r
should be handled here. */\r
/*-----------------------------------------------------------*/\r
\r
/* Incremented every 20,000 interrupts, so should count in seconds. */\r
-unsigned portLONG ulHighFrequencyTimerInterrupts = 0;\r
+unsigned long ulHighFrequencyTimerInterrupts = 0;\r
\r
/* The frequency at which the timer is interrupting. */\r
-static unsigned portLONG ulFrequencyHz;\r
+static unsigned long ulFrequencyHz;\r
\r
/*-----------------------------------------------------------*/\r
\r
-void vSetupTimerTest( unsigned portSHORT usFrequencyHz )\r
+void vSetupTimerTest( unsigned short usFrequencyHz )\r
{\r
/* Remember the frequency so it can be used from the ISR. */\r
- ulFrequencyHz = ( unsigned portLONG ) usFrequencyHz;\r
+ ulFrequencyHz = ( unsigned long ) usFrequencyHz;\r
\r
/* T2 is used to generate interrupts above the kernel and max syscall interrupt\r
priority. */\r
TMR2 = 0;\r
\r
/* Timer 2 is going to interrupt at usFrequencyHz Hz. */\r
- PR2 = ( unsigned portSHORT ) ( ( configPERIPHERAL_CLOCK_HZ / ( unsigned portLONG ) usFrequencyHz ) - 1 );\r
+ PR2 = ( unsigned short ) ( ( configPERIPHERAL_CLOCK_HZ / ( unsigned long ) usFrequencyHz ) - 1 );\r
\r
/* Setup timer 2 interrupt priority to be above the kernel priority so \r
the timer jitter is not effected by the kernel activity. */\r
\r
void vT2InterruptHandler( void )\r
{\r
-static unsigned portLONG ulCalls = 0;\r
+static unsigned long ulCalls = 0;\r
\r
++ulCalls;\r
if( ulCalls >= ulFrequencyHz )\r