📄 config.h
字号:
/*****************************************************
Project : 配置、预定义头文件
Version : 1.0
Date : 2005-7-8
Author : Liu.Qian
Company : HuanXiang Century Ctrl. Tech. Co. Ltd.
Comments: Orignal
*****************************************************/
#ifndef _CONFIG_
#define _CONFIG_
#define F_CPU 7372800UL
// 串口定义
#define UART0
//#define UART1
#define BAUD_RATE 115200UL
//M128的总字节数
#define TOTAL_SIZE 128*1024UL
#define APP_SIZE 120*1024UL
//M128的一个Flash页为256字节(128字)
#define SPM_PAGESIZE 256
//定义接收缓冲区长度
#define DATA_BUFFER_SIZE SPM_PAGESIZE
// KEYBOARD CODE
#define KB_ESC 0x1B
#define KB_ENT 0x0D
// 密码长度
#define PWLENTH 4
#include <inttypes.h>
#include <avr/io.h>
#include <avr/crc16.h>
#include <avr/boot.h>
#include <avr/signal.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include <avr/eeprom.h>
#include <avr/delay.h>
#include "delay.h"
#include "uart.h"
#include "xmodem.h"
#endif
// end of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -