general.h

来自「建立在AVR基础上的测试LED数码管电压表」· C头文件 代码 · 共 44 行

H
44
字号
/******************************************************************************
*	Compiler:	WinAVR(GCC)
*	Device:		ATtiny13
*	File name:	general.h
*	description:	Main headfile

*	Programmer:	Liansen.Wang
*	Revision:		1.0
*	Modtime:		2005-08-22

*******************************************************************************/
#ifndef	GENERAL_H
#define GENERAL_H

#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/signal.h>
#include <avr/pgmspace.h>

#include "DisplayAndKey.h"
#include "IR.h"

/*============================================================
PORTB port function settings

============================================================*/
//SPI Interface ports-settings
#define STB 		PB0
#define DATA		PB1
#define SCK		PB2
//Remote Control port settings
#define IR		PB3
//Other Ports settings
#define LED		PB4
#define RESET	PB5


#define TRUE 1
#define FALSE 0


#endif

⌨️ 快捷键说明

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