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
9 líneas
174 B
C
9 líneas
174 B
C
#include <stdint.h>
|
|
#include "time.h"
|
|
#include "../hal/hal.h"
|
|
|
|
void sleep(int ms){
|
|
uint32_t ticks = ms + hal_get_tick_count();
|
|
while(ticks > hal_get_tick_count());
|
|
}
|