X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2Fmsp430_IAR%2FParTest%2FParTest.c;h=9ecc964559d937e865c7e922efaf89e9a64590c6;hb=3feb84fee1840c0a8a3ea50810fb5f3e7527c6ce;hp=4dd9233cb3c064a0328b3322ce9f2a5323f5f4f5;hpb=b18af6b07e944b8c932a9be32fbce2344510896c;p=freertos diff --git a/FreeRTOS/Demo/msp430_IAR/ParTest/ParTest.c b/FreeRTOS/Demo/msp430_IAR/ParTest/ParTest.c index 4dd9233cb..9ecc96455 100644 --- a/FreeRTOS/Demo/msp430_IAR/ParTest/ParTest.c +++ b/FreeRTOS/Demo/msp430_IAR/ParTest/ParTest.c @@ -1,66 +1,29 @@ /* - FreeRTOS V7.5.0 - Copyright (C) 2013 Real Time Engineers Ltd. - - VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. - - *************************************************************************** - * * - * FreeRTOS provides completely free yet professionally developed, * - * robust, strictly quality controlled, supported, and cross * - * platform software that has become a de facto standard. * - * * - * Help yourself get started quickly and support the FreeRTOS * - * project by purchasing a FreeRTOS tutorial book, reference * - * manual, or both from: http://www.FreeRTOS.org/Documentation * - * * - * Thank you! * - * * - *************************************************************************** - - This file is part of the FreeRTOS distribution. - - FreeRTOS is free software; you can redistribute it and/or modify it under - the terms of the GNU General Public License (version 2) as published by the - Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception. - - >>! NOTE: The modification to the GPL is included to allow you to distribute - >>! a combined work that includes FreeRTOS without being obliged to provide - >>! the source code for proprietary components outside of the FreeRTOS - >>! kernel. - - FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. Full license text is available from the following - link: http://www.freertos.org/a00114.html - - 1 tab == 4 spaces! - - *************************************************************************** - * * - * Having a problem? Start by reading the FAQ "My application does * - * not run, what could be wrong?" * - * * - * http://www.FreeRTOS.org/FAQHelp.html * - * * - *************************************************************************** - - http://www.FreeRTOS.org - Documentation, books, training, latest versions, - license and Real Time Engineers Ltd. contact details. - - http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products, - including FreeRTOS+Trace - an indispensable productivity tool, a DOS - compatible FAT file system, and our tiny thread aware UDP/IP stack. - - http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High - Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS - licenses offer ticketed support, indemnification and middleware. - - http://www.SafeRTOS.com - High Integrity Systems also provide a safety - engineered and independently SIL3 certified version for use in safety and - mission critical applications that require provable dependability. - - 1 tab == 4 spaces! -*/ + * FreeRTOS Kernel V10.0.1 + * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * http://www.FreeRTOS.org + * http://aws.amazon.com/freertos + * + * 1 tab == 4 spaces! + */ /*----------------------------------------------------------- * Characters on the LCD are used to simulate LED's. In this case the 'ParTest' @@ -90,28 +53,28 @@ /* Constants required to access the "LED's". The LED segments are turned on and off to generate '*' characters. */ -#define partstNUM_LEDS ( ( unsigned portCHAR ) 6 ) -#define partstSEGMENTS_ON ( ( unsigned portCHAR ) 0x0f ) -#define partstSEGMENTS_OFF ( ( unsigned portCHAR ) 0x00 ) +#define partstNUM_LEDS ( ( unsigned char ) 6 ) +#define partstSEGMENTS_ON ( ( unsigned char ) 0x0f ) +#define partstSEGMENTS_OFF ( ( unsigned char ) 0x00 ) /* The LED number of the real on board LED, rather than a simulated LED. */ #define partstON_BOARD_LED ( ( unsigned portBASE_TYPE ) 10 ) -#define mainON_BOARD_LED_BIT ( ( unsigned portCHAR ) 0x01 ) +#define mainON_BOARD_LED_BIT ( ( unsigned char ) 0x01 ) /* The LCD segments used to generate the '*' characters for LED's 0 to 5. */ -unsigned portCHAR * const ucRHSSegments[ partstNUM_LEDS ] = { ( unsigned portCHAR * )0xa4, - ( unsigned portCHAR * )0xa2, - ( unsigned portCHAR * )0xa0, - ( unsigned portCHAR * )0x9e, - ( unsigned portCHAR * )0x9c, - ( unsigned portCHAR * )0x9a }; - -unsigned portCHAR * const ucLHSSegments[ partstNUM_LEDS ] = { ( unsigned portCHAR * )0xa3, - ( unsigned portCHAR * )0xa1, - ( unsigned portCHAR * )0x9f, - ( unsigned portCHAR * )0x9d, - ( unsigned portCHAR * )0x9b, - ( unsigned portCHAR * )0x99 }; +unsigned char * const ucRHSSegments[ partstNUM_LEDS ] = { ( unsigned char * )0xa4, + ( unsigned char * )0xa2, + ( unsigned char * )0xa0, + ( unsigned char * )0x9e, + ( unsigned char * )0x9c, + ( unsigned char * )0x9a }; + +unsigned char * const ucLHSSegments[ partstNUM_LEDS ] = { ( unsigned char * )0xa3, + ( unsigned char * )0xa1, + ( unsigned char * )0x9f, + ( unsigned char * )0x9d, + ( unsigned char * )0x9b, + ( unsigned char * )0x99 }; /* * Toggle the single genuine built in LED. @@ -223,7 +186,7 @@ void vParTestToggleLED( unsigned portBASE_TYPE uxLED ) static void prvToggleOnBoardLED( void ) { -static unsigned portSHORT sState = pdFALSE; +static unsigned short sState = pdFALSE; /* Toggle the state of the single genuine on board LED. */ if( sState )