PKUOS - Pintos
Pintos source browser for PKU Operating System course
speaker.h
Go to the documentation of this file.
1#ifndef DEVICES_SPEAKER_H
2#define DEVICES_SPEAKER_H
3
4void speaker_on (int frequency);
5void speaker_off (void);
6void speaker_beep (void);
7
8#endif /**< devices/speaker.h */
void speaker_off(void)
Turn off the PC speaker, by disconnecting the timer channel's output from the speaker.
Definition: speaker.c:39
void speaker_beep(void)
devices/speaker.h
Definition: speaker.c:48
void speaker_on(int frequency)
Sets the PC speaker to emit a tone at the given FREQUENCY, in Hz.
Definition: speaker.c:16