NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
NuEdu-Basic01_Buzzer.h
Go to the documentation of this file.
1/**************************************************************************/
12#ifndef __NuEdu_Basic01_Buzzer_H__
13#define __NuEdu_Basic01_Buzzer_H__
14
15#ifdef __cplusplus
16extern "C"
17{
18#endif
19
20
33extern void Open_Buzzer(void);
34extern void Close_Buzzer(void);
35extern void Write_Buzzer(unsigned int frequence, unsigned int duty);
36
37 /* end of group Nano130_Basic01_FUNCTIONS Buzzer Exported Functions */
39 /* end of group NuEdu-SDK-Nano130_Basic01 Nano130_Basic01 Library */
41 /* end of group NANO100_Library NANO100 Library */
43
44
45#ifdef __cplusplus
46}
47#endif
48
49#endif //__NuEdu_Basic01_Buzzer_H__
50
51/*** (C) COPYRIGHT 2013-2014 Nuvoton Technology Corp. ***/
void Close_Buzzer(void)
This function power down the Buzzer module.
void Write_Buzzer(unsigned int frequence, unsigned int duty)
This function set PWM output frequence and duty to drive Buzzer module.
void Open_Buzzer(void)
This function enable PWM1 module clock and set clock source to start Buzzer module.