📄 iar-
字号:
/****************************************Copyright (c)**************************************************
** 广州周立功单片机发展有限公司
** 研 究 所
** 产品一部
**
** http://www.zlgmcu.com
**
**--------------文件信息--------------------------------------------------------------------------------
**文 件 名: Config.c
**创 建 人: 周绍刚
**最后修改日期: 2006年10月12日
**描 述: LM3S单片机用户配置文件
**
**--------------历史版本信息----------------------------------------------------------------------------
** 创建人: 周绍刚
** 版 本: V1.0
** 日 期: 2006年10月12日
** 描 述: 原始版本
**
**------------------------------------------------------------------------------------------------------
** 修改人:
** 版 本:
** 日 期:
** 描 述:
**
********************************************************************************************************/
#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"
#include "./DataQueue/queue.h"
#include "./VI2C/VI2C.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 1 /* 禁止(0)或允许(1)取得队列数据总容量 */
#define EN_QUEUE_FLUSH 1 /* 禁止(0)或允许(1)清空队列 */
/********************************/
/* 本例子的配置 */
/*Configuration of the example */
/********************************/
/* System configuration .Fosc、Fcclk、Fcco、Fpclk must be defined */
/* 系统设置, Fosc、Fcclk、Fcco、Fpclk必须定义*/
#define Fsys 6000000 //系统时钟频率
//Frequence of system clock
#define Fpwm //
//系统频率,必须为Fosc的整数倍(1~32),且<=60MHZ
#define Ftmr1 6000000
#endif
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -