📄 +
字号:
/****************************************Copyright (c)**************************************************
** Guangzhou ZHIYUAN electronics Co.,LTD.
**
** http://www.embedtools.com
**
**--------------File Info-------------------------------------------------------------------------------
** File Name: config.h
** Last modified Date: 2004-09-17
** Last Version: 1.0
** Descriptions: User Configurable File
**
**------------------------------------------------------------------------------------------------------
** Created By: Chenmingji
** Created date: 2004-09-17
** Version: 1.0
** Descriptions: First version
**
**------------------------------------------------------------------------------------------------------
** Modified by: ChaiLiMing
** Modified date: 2008-08-13
** Version: 1.0
** Descriptions: Modified for LM3S615
**
********************************************************************************************************/
#ifndef __CONFIG_H
#define __CONFIG_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
typedef unsigned char uint8; /* 无符号8位整型变量 */
typedef signed char int8; /* 有符号8位整型变量 */
typedef unsigned short uint16; /* 无符号16位整型变量 */
typedef signed short int16; /* 有符号16位整型变量 */
typedef unsigned long uint32; /* 无符号32位整型变量 */
typedef signed long int32; /* 有符号32位整型变量 */
typedef float fp32; /* 单精度浮点数(32位长度) */
typedef double fp64; /* 双精度浮点数(64位长度) */
#define GLOBAL extern
/******************************************************************************
* 程序中包含的驱动库 *
*******************************************************************************/
#include "hw_types.h"
#include "hw_memmap.h"
#include "systick.h"
#include "hw_sysctl.h"
#include "hw_gpio.h"
#include "sysctl.h"
#include "gpio.h"
#include "hw_ints.h"
#include "hw_nvic.h"
#include "interrupt.h"
/******************************************************************************
* 脉冲宽度识别门限, 系统时钟10M晶体, PT2262 振荡电阻取1M 机器周期0.1us *
*******************************************************************************/
#define MAX_RX 26 /* 缓存容量 */
#define PULSE_WIDE 1000 /* 短脉冲和长脉冲分界点 100us */
#define SHORT_MIN 400 /* 短脉冲下限 40us */
#define SHORT_MAX 700 /* 短脉冲上限 70us */
#define LONG_MIN 1600 /* 长脉冲上限 160us */
#define LONG_MAX 2100 /* 长脉冲上限 210us */
#define SYN_MIN 17000 /* 同步帧宽度下限 1700us */
#define SYN_MAX 21000 /* 同步帧宽度上限 2100us */
#define PULSE_TIME_OUT 40000 /* 超时时限 4000us */
#endif
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -