From c31d465a62fbc0ec3194838db4745585471c1050 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 21 Sep 2019 18:07:07 +0200 Subject: Added ACPI based shutdown command --- src/kernel/sound/frequency.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/kernel/sound/frequency.c') 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 -- cgit v1.2.3