beep.c

来自「这个是一个带有IC卡」· C语言 代码 · 共 48 行

C
48
字号
/****************************************Copyright (c)**************************************************
**                              
**                                    
**                                 
**
**--------------File Info-------------------------------------------------------------------------------
** File name:			BEEP.c
** Last modified Date:  
** Last Version:		1.0
** Descriptions:		蜂鸣器
**
**------------------------------------------------------------------------------------------------------
** Created by:			潘妙青
** Created date:		2002-2-25
** Version:				1.0
** Descriptions:		The original version
**
**------------------------------------------------------------------------------------------------------
** Modified by:
** Modified date:
** Version:
** Descriptions:
**
********************************************************************************************************/
#include "config.h"

#define __SRC

#include"BEEP.h"

#undef __SRC


volatile uint8 beep_time = 0;

void beep_init(void)
{
	IO0DIR = IO0DIR | BEEPCON;
}


void beep(void)
{
	beep_time = 40;		//0.2s
}


⌨️ 快捷键说明

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