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

📄 config.h

📁 arm7 sample code, some demo for arm7 of linux
💻 H
字号:
/****************************************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:
** Modified date:
** Version:
** 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位长度) */



/********************************/
/*     应用程序配置             */
/********************************/
#include "hw_ints.h"
#include "hw_memmap.h"
#include "hw_types.h"
#include "src/debug.h"
#include "src/gpio.h"
#include "src/interrupt.h"
#include "src/sysctl.h"
#include "src/uart.h"
#include "src/timer.h"
#include "src/comp.h"

#include    "PID.h"
#include    "UART_DCMT.h"
#include    "Uart0/Uart0.h"
#include    "DataQueue/queue.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        1

/********************************/
/*     本例子的配置             */
/********************************/
#define Fsys 6000000                   //系统时钟频率
#define Fpwm  6000000                  //PWM时钟频率      
#define Ftmr1 6000000                  //定时器1时钟频率
				    
#define Tsmp (0.01)                    //采样定时器每次的中断时间
#define PWM_Cycle (uint16)(Fpwm*0.0001)//PWM周期,100uS
#define DutyBase  (uint16)(PWM_Cycle*0.7)//复位占空比,70%

#endif
/*********************************************************************************************************
**                            End Of File
********************************************************************************************************/

⌨️ 快捷键说明

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