#include "devices/speaker.h"#include "devices/pit.h"#include "threads/io.h"#include "threads/interrupt.h"#include "devices/timer.h"Go to the source code of this file.
Defines | |
| #define | SPEAKER_PORT_GATE 0x61 |
| #define | SPEAKER_GATE_ENABLE 0x03 |
Functions | |
| void | speaker_on (int frequency) |
| void | speaker_off (void) |
| void | speaker_beep (void) |
| #define SPEAKER_GATE_ENABLE 0x03 |
| #define SPEAKER_PORT_GATE 0x61 |
| void speaker_beep | ( | void | ) |
Definition at line 49 of file speaker.c.
References intr_get_level(), INTR_ON, speaker_off(), speaker_on(), and timer_msleep().
Referenced by vga_putc().
| void speaker_off | ( | void | ) |
Definition at line 40 of file speaker.c.
References inb(), intr_disable(), intr_set_level(), outb(), SPEAKER_GATE_ENABLE, and SPEAKER_PORT_GATE.
Referenced by speaker_beep(), and speaker_on().
| void speaker_on | ( | int | frequency | ) |
Definition at line 17 of file speaker.c.
References inb(), intr_disable(), intr_set_level(), outb(), pit_configure_channel(), SPEAKER_GATE_ENABLE, speaker_off(), and SPEAKER_PORT_GATE.
Referenced by speaker_beep().
1.5.6