From 391ed256d21a6ae2e2456d1809f357e6e96e15d1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 20 Jan 2020 23:12:54 +0100 Subject: Added pure awesomeness Actually quite some days of work but ok --- src/kernel/sound/frequency.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/sound/frequency.c') diff --git a/src/kernel/sound/frequency.c b/src/kernel/sound/frequency.c index 5ad76b3..5c45c60 100644 --- a/src/kernel/sound/frequency.c +++ b/src/kernel/sound/frequency.c @@ -14,13 +14,13 @@ void play_sound(uint32_t frequency) tmp = inb(0x61); if (tmp != (tmp | 3)) { - outb(0x61, tmp | 3); + outb(0x61, (uint8_t) (tmp | 3)); } } static void shut_up() { - uint8_t tmp = inb(0x61) & 0xFC; + uint8_t tmp = (uint8_t) (inb(0x61) & 0xFC); outb(0x61, tmp); } @@ -29,6 +29,6 @@ static void shut_up() void beep(uint32_t frequency, uint32_t ticks) { play_sound(frequency); - timer_wait(ticks); + timer_wait((int) ticks); shut_up(); } \ No newline at end of file -- cgit v1.2.3