/*\r
- FreeRTOS V7.6.0 - Copyright (C) 2013 Real Time Engineers Ltd. \r
+ FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd. \r
All rights reserved\r
\r
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.\r
the terms of the GNU General Public License (version 2) as published by the\r
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.\r
\r
- >>! NOTE: The modification to the GPL is included to allow you to distribute\r
- >>! a combined work that includes FreeRTOS without being obliged to provide\r
- >>! the source code for proprietary components outside of the FreeRTOS\r
- >>! kernel.\r
+ >>! NOTE: The modification to the GPL is included to allow you to !<<\r
+ >>! distribute a combined work that includes FreeRTOS without being !<<\r
+ >>! obliged to provide the source code for proprietary components !<<\r
+ >>! outside of the FreeRTOS kernel. !<<\r
\r
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY\r
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\r
\r
/* The set frequency of the interrupt. Deviations from this are measured as\r
the jitter. */\r
-#define timerINTERRUPT_FREQUENCY ( ( unsigned portSHORT ) 20000 )\r
+#define timerINTERRUPT_FREQUENCY ( ( unsigned short ) 20000 )\r
\r
/* The expected time between each of the timer interrupts - if the jitter was\r
zero. */\r
void vTimer2IntHandler( void );\r
\r
/* Stores the value of the maximum recorded jitter between interrupts. */\r
-volatile unsigned portSHORT usMaxJitter = 0;\r
+volatile unsigned short usMaxJitter = 0;\r
\r
/*-----------------------------------------------------------*/\r
\r
\r
/* Time base configuration for timer 2 - which generates the interrupts. */\r
ulFrequency = configCPU_CLOCK_HZ / timerINTERRUPT_FREQUENCY; \r
- TIM_TimeBaseStructure.TIM_Period = ( unsigned portSHORT ) ( ulFrequency & 0xffffUL );\r
+ TIM_TimeBaseStructure.TIM_Period = ( unsigned short ) ( ulFrequency & 0xffffUL );\r
TIM_TimeBaseStructure.TIM_Prescaler = 0x0;\r
TIM_TimeBaseStructure.TIM_ClockDivision = 0x0;\r
TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;\r
\r
/* Configuration for timer 3 which is used as a high resolution time\r
measurement. */\r
- TIM_TimeBaseStructure.TIM_Period = ( unsigned portSHORT ) 0xffff;\r
+ TIM_TimeBaseStructure.TIM_Period = ( unsigned short ) 0xffff;\r
TIM_TimeBaseInit( TIM3, &TIM_TimeBaseStructure );\r
TIM_ARRPreloadConfig( TIM3, ENABLE );\r
\r
\r
void vTimer2IntHandler( void )\r
{\r
-static unsigned portSHORT usLastCount = 0, usSettleCount = 0, usMaxDifference = 0;\r
-unsigned portSHORT usThisCount, usDifference;\r
+static unsigned short usLastCount = 0, usSettleCount = 0, usMaxDifference = 0;\r
+unsigned short usThisCount, usDifference;\r
\r
/* Capture the free running timer 3 value as we enter the interrupt. */\r
usThisCount = TIM3->CNT;\r