PC Speaker: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m Replace non-standard uxint types with uintx_t.
Line 37:
<source lang="c">
//Play sound using built in speaker
static void play_sound(u32intuint32_t nFrequence) {
u32intuint32_t Div;
u8intuint8_t tmp;
//Set the PIT to the desired frequency
Line 56:
//make it shutup
static void nosound() {
u8intuint8_t tmp = (inb(0x61) & 0xFC);
outb(0x61, tmp);