⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 relay.c

📁 基于芯片DS1302的湍流实时时钟的实现
💻 C
字号:
/**********************************************************************
* System Name		DOOR
* Source Name		relay.c
* Function			继电器控制
* Version	Date		Editor		Modification
* 1.0		2007/05/14	周斌		做成
**********************************************************************/


#include <avr/io.h>
#include "global.h"
#include "relay.h"



/**********************************************************************
* Function Name		relay_init
* Function Desc		relay初始化函数
* Return Value		无
* Parameter         无
* Version	Date		Editor		Modification
* 1.0		2007/05/14	周斌		做成
**********************************************************************/
void relay_init(void)
{
	PORTB |= 0xe0;	//high level - disable
	DDRB  |= 0xe0;	//PORT DIRECTION: output
}




⌨️ 快捷键说明

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