⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defines.h

📁 Show hou use semaphores in RTL-ARM
💻 H
字号:
/* 
 ********************************************************************
 * Project:    GNU-Port FreeRTOS Port
 * File:    	DEFINES.H
 *
 * System:   	ARM7TDMI-S 32 Bit (LPC2378)
 * Compiler:  	GCC 4.0.3
 *
 * Date:      	2006-11-17
 * Author:    	Grohmann
 *
 * Rights:    	Hitex Development Tools GmbH
 *            	Greschbachstr. 12
 *            	D-76229 Karlsruhe
 ********************************************************************
 * Description:
 *
 * This file is part of the GNU FreeRTOS Port
 * The code is based on the FreeRTOS originated by Richard Barry
 * This is a small implementation preemtive and semaphore task. 
 * The application runs in ARM mode with high optimization level.
 *	
 ********************************************************************
 * History:
 *
 *  Revision 1.0    2006/11/17      Gn
 *     Initial revision 
 ********************************************************************
 * This is a preliminary version.
 *
 * WARRANTY:  HITEX warrants that the media on which the SOFTWARE is 
 * furnished is free from defects in materials and workmanship under 
 * normal use and service for a period of ninety (90) days. HITEX entire
 * liability and your exclusive remedy shall be the replacement of the 
 * SOFTWARE if the media is defective. This Warranty is void if failure
 * of the media resulted from unauthorized modification, accident, abuse,
 * or misapplication.
 *
 * DISCLAIMER:  OTHER THAN THE ABOVE WARRANTY, THE SOFTWARE IS FURNISHED
 * "AS IS" WITHOUT WARRANTY OF ANY KIND. HITEX DISCLAIMS ALL OTHER WARRANTIES,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 * NEITHER HITEX NOR ITS AFFILIATES SHALL BE LIABLE FOR ANY DAMAGES ARISING
 * OUT OF THE USE OF OR INABILITY TO USE THE SOFTWARE, INCLUDING DAMAGES FOR
 * LOSS OF PROFITS, BUSINESS INTERRUPTION, OR ANY SPECIAL, INCIDENTAL, INDIRECT
 * OR CONSEQUENTIAL DAMAGES EVEN IF HITEX HAS BEEN ADVISED OF THE POSSIBILITY 
 * OF SUCH DAMAGES.
 ********************************************************************/
/********************************** defines.h *******************************/


/* length specific types recommended by MISRA rule 13 */

typedef  signed char    int8_t;
typedef  unsigned char  uint8_t;
typedef  signed short   int16_t;
typedef  unsigned short uint16_t;
typedef  signed long    int32_t;
typedef  unsigned long  uint32_t;

typedef  float    float16;
typedef  double   float32;

#define REG8  (volatile unsigned char*)
#define REG16 (volatile unsigned short*)
#define REG32 (volatile unsigned int*)

/* defines for PORT 0 configuration */
#define FUNCT_PORT0_0  (PINSEL_Input << 0)
#define FUNCT_PORT0_1  (PINSEL_Input << 2)
#define FUNCT_PORT0_2  (PINSEL_Input << 4)
#define FUNCT_PORT0_3  (PINSEL_Input << 6)
#define FUNCT_PORT0_4  (PINSEL_Input << 8)
#define FUNCT_PORT0_5  (PINSEL_Input << 10)
#define FUNCT_PORT0_6  (PINSEL_Input << 12)
#define FUNCT_PORT0_7  (PINSEL_Input << 14)
#define FUNCT_PORT0_8  (PINSEL_Input << 16)
#define FUNCT_PORT0_9  (PINSEL_Input << 18)
#define FUNCT_PORT0_10  (PINSEL_Input << 20)
#define FUNCT_PORT0_11  (PINSEL_Input << 22)
#define FUNCT_PORT0_12  (PINSEL_Input << 24)
#define FUNCT_PORT0_13  (PINSEL_Input << 26)
#define FUNCT_PORT0_14  (PINSEL_Input << 28)
#define FUNCT_PORT0_15  (PINSEL_Input << 30)
#define FUNCT_PORT0_16  (PINSEL_Input << 0)
#define FUNCT_PORT0_17  (PINSEL_Input << 2)
#define FUNCT_PORT0_18  (PINSEL_Input << 4)
#define FUNCT_PORT0_19  (PINSEL_Input << 6)
#define FUNCT_PORT0_20  (PINSEL_Input << 8)
#define FUNCT_PORT0_21  (PINSEL_Input << 10)
#define FUNCT_PORT0_22  (PINSEL_Input << 12)
#define FUNCT_PORT0_23  (PINSEL_Input << 14)
#define FUNCT_PORT0_24  (PINSEL_Input << 16)
#define FUNCT_PORT0_25  (PINSEL_Input << 18)
#define FUNCT_PORT0_26  (PINSEL_Input << 20)
#define FUNCT_PORT0_27  (PINSEL_Input << 22)
#define FUNCT_PORT0_28  (PINSEL_Input << 24)
#define FUNCT_PORT0_29  (PINSEL_Input << 26)
#define FUNCT_PORT0_30  (PINSEL_Input << 28)
#define FUNCT_PORT0_31  (PINSEL_Input << 30)

/************************************ EOF ***********************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -