diff options
author | Marvin Borner | 2019-09-21 18:07:07 +0200 |
---|---|---|
committer | Marvin Borner | 2019-09-21 18:07:07 +0200 |
commit | c31d465a62fbc0ec3194838db4745585471c1050 (patch) | |
tree | 10e544bc856ea1898e39d6c9304f746aa1d74670 /src/kernel/sound | |
parent | d91024fb750356bad65cce5bdef206e530b37c53 (diff) |
Added ACPI based shutdown command
Diffstat (limited to 'src/kernel/sound')
-rw-r--r-- | src/kernel/sound/frequency.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/sound/frequency.c b/src/kernel/sound/frequency.c index 6d02690..fdc32e4 100644 --- a/src/kernel/sound/frequency.c +++ b/src/kernel/sound/frequency.c @@ -7,20 +7,20 @@ static void play_sound(uint32_t frequency) { uint8_t tmp; divided = 1193180 / frequency; - send(0x43, 0xb6); - send(0x42, (uint8_t) (divided)); - send(0x42, (uint8_t) (divided >> 8)); + send_b(0x43, 0xb6); + send_b(0x42, (uint8_t) (divided)); + send_b(0x42, (uint8_t) (divided >> 8)); - tmp = receive(0x61); + tmp = receive_b(0x61); if (tmp != (tmp | 3)) { - send(0x61, tmp | 3); + send_b(0x61, tmp | 3); } } static void shut_up() { - uint8_t tmp = receive(0x61) & 0xFC; + uint8_t tmp = receive_b(0x61) & 0xFC; - send(0x61, tmp); + send_b(0x61, tmp); } //Make a beep |