réplica de
https://github.com/Arnau478/quark.git
synced 2024-05-19 20:36:31 +02:00
Arnau Camprubí
be55b8121c
- Implemented basic FDC capable of reading floppy disc sectors - Now PIT timer can be used, as it counts the ticks - Now the keyboard is buffered, instead of being accessed only during the interrupt itself - HAL for sleep() - gets() - atoi() - Now shell is not called by the IRQ, but it's a procedure that reads the key buffer
17 líneas
343 B
C
17 líneas
343 B
C
#include "hal.h"
|
|
#include "../arch/i686/gdt.h"
|
|
#include "../arch/i686/idt.h"
|
|
#include "../arch/i686/isr.h"
|
|
#include "../arch/i686/pit.h"
|
|
|
|
void hal_initialize(){
|
|
i686_gdt_initialize();
|
|
i686_idt_initialize();
|
|
i686_isr_initialize();
|
|
i686_pit_initialize();
|
|
}
|
|
|
|
uint32_t hal_get_tick_count(){
|
|
return i686_pit_get_tick_count();
|
|
}
|