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