?? sounder.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 + -