Project

General

Profile

speaker.h

Bruno Silva, 05/12/2011 19:04

Download (564 Bytes)

 
1
#ifndef __SPEAKER_H
2
#define __SPEAKER_H
3

    
4
/** @defgroup speaker speaker
5
 * @{
6
 *
7
 * Functions that control the speaker output
8
 */
9

    
10
/**
11
 * @brief Enables/disables speaker
12
 *
13
 * @param on If zero disable speaker, otherwise enable it
14
 * @return Return 0 upon success and non-zero otherwise
15
 */
16
int speaker_ctrl(unsigned char on);
17

    
18
/**
19
 * @brief Enables/disables timer 2
20
 *
21
 * @param on If zero disable timer 2, otherwise enable it
22
 * @return Return 0 upon success and non-zero otherwise
23
 */
24
int speaker_timer_ctrl(unsigned char on);
25

    
26
/**@}*/
27

    
28
#endif /* __SPEAKER_H */