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

📄 iar-

📁 IAR_example_EasyARM8962.zip
💻
字号:
/****************************************Copyright (c)**************************************************
**                               Guangzhou ZHIYUAN electronics Co.,LTD.
**                                     
**                                 http://www.embedtools.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name:               Config.h
** Last modified Date:      2006.11.18
** Last Version:            v1.0
** Description:             总头文件
** 
**------------------------------------------------------------------------------------------------------
** Created By:              Zhou Shaogang
** Created date:            2006.11.18
** Version:                 v1.0
** Descriptions:
**
**------------------------------------------------------------------------------------------------------
** Modified by:             Ni Likao 倪力考
** Modified date:           2007.10.20 
** Version:                 v1.1
** Description:
**
********************************************************************************************************/

#ifndef __CONFIG_H__ 
#define __CONFIG_H__


#ifndef TRUE
#define TRUE  1
#endif

#ifndef FALSE
#define FALSE 0
#endif

#ifndef NULL
#define NULL  0
#endif
                                                                                                
typedef unsigned char  uint8;                                           /*  无符号8位整型变量           */
typedef signed   char  int8;                                            /*  有符号8位整型变量           */
typedef unsigned short uint16;                                          /*  无符号16位整型变量          */
typedef signed   short int16;                                           /*  有符号16位整型变量          */
typedef unsigned int   uint32;                                          /*  无符号32位整型变量          */
typedef signed   int   int32;                                           /*  有符号32位整型变量          */
typedef float          fp32;                                            /*  单精度浮点数(32位长度)    */
typedef double         fp64;                                            /*  双精度浮点数(64位长度)    */


/*********************************************************************************************************
  应用程序配置            
  Application Program Configurations
*********************************************************************************************************/

/*********************************************************************************************************
  以下根据需要改动
  This segment could be modified as needed.
*********************************************************************************************************/
#include "hw_ints.h"
#include "hw_memmap.h"
#include "hw_types.h"
#include "debug.h"
#include "gpio.h"
#include "interrupt.h"
#include "sysctl.h"
#include "uart.h"
#include "timer.h"

#include 	"Uart0/Uart0.h"


#define 	QUEUE_DATA_TYPE         uint8
#define 	EN_QUEUE_WRITE         	1    	                            /*  禁止(0)或允许(1)FIFO发送数据*/
#define 	EN_QUEUE_WRITE_FRONT 	0     	                            /*  禁止(0)或允许(1)LIFO发送数据*/
#define 	EN_QUEUE_NDATA         	1     	                            /*  禁止(0)或允许(1)取得队列数据*/
                                                                        /*  数目                        */
#define 	EN_QUEUE_SIZE           0     	                            /*  禁止(0)或允许(1)取得队列数据*/
                                                                        /*  总容量                      */
#define 	EN_QUEUE_FLUSH        	1     	                            /*  禁止(0)或允许(1)清空队列    */
#define     EN_QUEUE_WRITE_N        0      

/*********************************************************************************************************
  本例子的配置             
  Configuration of the example 
*********************************************************************************************************/

/*********************************************************************************************************
  System configuration .Fosc、Fcclk、Fcco、Fpclk must be defined 
  系统设置, Fosc、Fcclk、Fcco、Fpclk必须定义
*********************************************************************************************************/
#define Fsys 6000000                                                    /*  系统时钟频率                */
						                                                /*  Frequence of system clock   */
						                                                /*  系统频率,必须为Fosc的整数倍*/
#define Fpwm                                                            /*  (1~32),且<=60MHZ           */
						                                                
#define Ftmr1 6000000

#endif
/*********************************************************************************************************
  END FILE
*********************************************************************************************************/

⌨️ 快捷键说明

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