2025-06-13 19:53:54 -05:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <drivers/ps2_keyboard.h>
|
2025-06-13 18:03:39 -05:00
|
|
|
|
|
|
|
#include <drivers/irq.h>
|
|
|
|
|
2025-06-13 19:53:54 -05:00
|
|
|
static void pit_handler(void)
|
|
|
|
{
|
|
|
|
}
|
2025-06-13 18:03:39 -05:00
|
|
|
|
|
|
|
void irq_handler(uint8_t irq_number)
|
|
|
|
{
|
2025-06-13 19:53:54 -05:00
|
|
|
switch (irq_number)
|
|
|
|
{
|
|
|
|
case 0:
|
|
|
|
pit_handler();
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
keyboard_handler();
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
printf("Unhandled IRQ %u\n", irq_number);
|
|
|
|
break;
|
|
|
|
}
|
2025-06-13 18:03:39 -05:00
|
|
|
}
|