FreeRTOS Real Time Operating System, Modified from Kenji Arai's initial port. See freertos.org for full documentation.
Fork of FreeRTOS_on_mbed_v1 by
partest.h
00001 /* 00002 FreeRTOS V6.0.3 - Copyright (C) 2010 Real Time Engineers Ltd. 00003 00004 *************************************************************************** 00005 * * 00006 * If you are: * 00007 * * 00008 * + New to FreeRTOS, * 00009 * + Wanting to learn FreeRTOS or multitasking in general quickly * 00010 * + Looking for basic training, * 00011 * + Wanting to improve your FreeRTOS skills and productivity * 00012 * * 00013 * then take a look at the FreeRTOS eBook * 00014 * * 00015 * "Using the FreeRTOS Real Time Kernel - a Practical Guide" * 00016 * http://www.FreeRTOS.org/Documentation * 00017 * * 00018 * A pdf reference manual is also available. Both are usually delivered * 00019 * to your inbox within 20 minutes to two hours when purchased between 8am * 00020 * and 8pm GMT (although please allow up to 24 hours in case of * 00021 * exceptional circumstances). Thank you for your support! * 00022 * * 00023 *************************************************************************** 00024 00025 This file is part of the FreeRTOS distribution. 00026 00027 FreeRTOS is free software; you can redistribute it and/or modify it under 00028 the terms of the GNU General Public License (version 2) as published by the 00029 Free Software Foundation AND MODIFIED BY the FreeRTOS exception. 00030 ***NOTE*** The exception to the GPL is included to allow you to distribute 00031 a combined work that includes FreeRTOS without being obliged to provide the 00032 source code for proprietary components outside of the FreeRTOS kernel. 00033 FreeRTOS is distributed in the hope that it will be useful, but WITHOUT 00034 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00035 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 00036 more details. You should have received a copy of the GNU General Public 00037 License and the FreeRTOS license exception along with FreeRTOS; if not it 00038 can be viewed here: http://www.freertos.org/a00114.html and also obtained 00039 by writing to Richard Barry, contact details for whom are available on the 00040 FreeRTOS WEB site. 00041 00042 1 tab == 4 spaces! 00043 00044 http://www.FreeRTOS.org - Documentation, latest information, license and 00045 contact details. 00046 00047 http://www.SafeRTOS.com - A version that is certified for use in safety 00048 critical systems. 00049 00050 http://www.OpenRTOS.com - Commercial support, development, porting, 00051 licensing and training services. 00052 */ 00053 /* 00054 * Modified for mbed NXP LPC1768 board 00055 * By Kenji Arai / JH1PJL on April 30th,2010 00056 * August 28th, 2010 00057 */ 00058 00059 #ifndef PARTEST_H 00060 #define PARTEST_H 00061 00062 #define partstDEFAULT_PORT_ADDRESS ( ( unsigned short ) 0x378 ) 00063 00064 #if (USE_XPRESSO == 1) 00065 #define LED_1 ( 1UL << 22UL ) 00066 // Dummy only one LED is available 00067 #define LED_2 ( 0UL << 0UL ) 00068 #define LED_3 ( 0UL << 0UL ) 00069 #define LED_4 ( 0UL << 0UL ) 00070 #else 00071 #define LED_1 ( 1UL << 18UL ) 00072 #define LED_2 ( 1UL << 20UL ) 00073 #define LED_3 ( 1UL << 21UL ) 00074 #define LED_4 ( 1UL << 23UL ) 00075 #endif 00076 00077 #define REC_SW ( 1UL ) 00078 00079 #define partstFIO1_BITS ( LED_1 | LED_2 | LED_3 | LED_4 ) 00080 #define partstNUM_LEDS ( 4 ) 00081 00082 /* LED */ 00083 #define LED1 0 00084 #define LED2 1 00085 #define LED3 2 00086 #define LED4 3 00087 #ifdef __cplusplus 00088 extern "C" { 00089 #endif 00090 static unsigned long ulLEDs[] = { LED_1, LED_2, LED_3, LED_4 }; 00091 void vParTestInitialise( void ); 00092 void vParTestSetLED( unsigned portBASE_TYPE, signed portBASE_TYPE ); 00093 void vParTestToggleLED( unsigned portBASE_TYPE ); 00094 unsigned int vParTestSW_Rec( void ); 00095 unsigned int vParTestSW_Mode( void ); 00096 #ifdef __cplusplus 00097 } 00098 #endif 00099 #endif 00100
Generated on Fri Jul 15 2022 10:21:25 by
1.7.2
