Files
aster-core/include/drivers.h
T
2026-07-12 05:44:42 +02:00

35 lines
742 B
C

/*
* AsterOS Kernel
* Autor: Pavel Kalaš
* Rok: 2026
*
*/
/*
* Tento soubor slouzi jako centralni rozcestnik pro verejne ovladace jadra.
* Drzi pohromade deklarace klavesnice, casovace a storage vrstvy,
* aby je kernel mohl jednoduse inicializovat z jednoho mista.
*/
#ifndef ASTER_DRIVERS_H
#define ASTER_DRIVERS_H
#define ASTER_KEY_F1 0x101
#define ASTER_KEY_F2 0x102
#define ASTER_KEY_UP 0x103
#define ASTER_KEY_DOWN 0x104
#define ASTER_KEY_LEFT 0x105
#define ASTER_KEY_RIGHT 0x106
void keyboard_init(void);
int keyboard_read_key(void);
int keyboard_try_read_key(void);
int keyboard_readline(char *buffer, int max_len);
void timer_init(unsigned int hz);
unsigned long timer_ticks(void);
void storage_init(void);
#endif