config.h

来自「用于ATMEGA8单片机调试 包括串口」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef __config_H__
#define __config_H__ 1
#define M32    1
#define CPU_TYPE  M32
//#define F_CPU 14745600
#define F_CPU 1000000
/*********************************************/
/*********************************************/
#include <iom32v.h>
#include <string.h>
#include <FLOAT.H>
#include <math.h>
#include <stdlib.h>
#include <macros.h>
#include <eeprom.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 int   uint16;                                  /* 定义可移植的无符号16位整数关键字           */
typedef signed   int   int16;                                   /* 定义可移植的有符号16位整数关键字           */
typedef unsigned long  uint32;                                  /* 定义可移植的无符号32位整数关键字           */
typedef signed   long  int32;                                   /* 定义可移植的有符号32位整数关键字           */
 //#include "sio.h"   
#endif


/**********************end****************************************/

⌨️ 快捷键说明

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