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

📄 sounder.c

📁 arm7平台上的定时器操作
💻 C
字号:
/******************************************************************************
 * File   Name: sounder.c		    									      *	
 * Create Time: 2007/08/10 													  *	
 * Description:	发生器实现发声												  *	
 * Author     :																  *
 * Version    :																  *
 *****************************************************************************/
 #define SOUNDER_ONOFF
 #ifdef  SOUNDER_ONOFF
/******************************
 *      Head File             *
 *****************************/
 #include "sounder.h"
 #include "config.h"
/******************************
 *     Global Variable        *
 *****************************/

/******************************
 *	   Const Segment          *
 *****************************/

/******************************
 *      Function  Implement   *
 *****************************/
/*******************************************************************************
Function Name: void sounder_init(void) 										   *
Function Description :  相关初始化        									   *	
*******************************************************************************/
void SOUNDERInit(void)
{
 	PINSEL1 &= SOUNDER_PINSEL;        //管脚功能选择寄存器1的16、17位置0,功能选择为GPIO P0.24
 	IO0DIR |= SOUNDER; 	
}

void SOUNDEROn(void)
{
	IO0CLR = SOUNDER;
}

void SOUNDEROff(void)
{
	IO0SET = SOUNDER;
}


 #endif
/*******************************************************************************
 *                        The end of the entire file			               *
 ******************************************************************************/

⌨️ 快捷键说明

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