relay.c
来自「基于芯片DS1302的湍流实时时钟的实现」· C语言 代码 · 共 33 行
C
33 行
/**********************************************************************
* 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 + =
减小字号Ctrl + -
显示快捷键?