This commit is contained in:
刘正航
2026-04-16 16:55:01 +08:00
commit 609eb878d1
624 changed files with 214375 additions and 0 deletions

39
User/bsp/inc/bsp_beep.h Normal file
View File

@@ -0,0 +1,39 @@
/*
*********************************************************************************************************
*
* 模块名称 : 蜂鸣器模块
* 文件名称 : bsp_beep.h
* 版 本 : V1.0
* 说 明 : 头文件
*
* Copyright (C), 2012-2013, 安富莱电子 www.armfly.com
*
*********************************************************************************************************
*/
#ifndef __BSP_BEEP_H
#define __BSP_BEEP_H
#include <stdint.h>
typedef struct _BEEP_T
{
uint8_t ucEnalbe;
uint8_t ucState;
uint16_t usBeepTime;
uint16_t usStopTime;
uint16_t usCycle;
uint16_t usCount;
uint16_t usCycleCount;
uint32_t uiFreq;
}BEEP_T;
/* 供外部调用的函数声明 */
void BEEP_InitHard(void);
void BEEP_Start(uint32_t _uiFreq, uint16_t _usBeepTime, uint16_t _usStopTime, uint16_t _usCycle);
void BEEP_Stop(void);
void BEEP_KeyTone(void);
void BEEP_Pro(void);
#endif
/***************************** 安富莱电子 www.armfly.com (END OF FILE) *********************************/