diff options
author | Marvin Borner | 2020-01-20 23:12:54 +0100 |
---|---|---|
committer | Marvin Borner | 2020-01-20 23:12:54 +0100 |
commit | 391ed256d21a6ae2e2456d1809f357e6e96e15d1 (patch) | |
tree | 0fe9ffb3c59bbfeb3d8a04ab7fc6efba60d81e79 /src/kernel/sound/frequency.c | |
parent | d5d1749257ff8b9aa6b5ace4b4720b484a2860f3 (diff) |
Added pure awesomeness
Actually quite some days of work but ok
Diffstat (limited to 'src/kernel/sound/frequency.c')
-rw-r--r-- | src/kernel/sound/frequency.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |