Project

General

Profile

Statistics
| Revision:

root / proj / libs / peripherals / include / keyboard.h @ 280

History | View | Annotate | Download (800 Bytes)

1 145 up20180655
/**
2
 * This file concerns everything related to the keyboard
3
 */
4
5
#ifndef KEYBOARD_H_INCLUDED
6
#define KEYBOARD_H_INCLUDED
7
8 257 up20180642
#include "kbc.h"
9
10 153 up20180655
/**
11
 * @brief Subscribes Keyboard Interrupts and disables Minix Default IH
12
 * @param interrupt_bit Bit of Interrupt Vector that will be set when Keyboard Interrupt is pending
13
 * @param interrupt_id Keyboard Interrupt ID to specify the Keyboard Interrupt in other calls
14
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
15
 * @see {_ERRORS_H_::errors}
16
 */
17 145 up20180655
int (subscribe_kbc_interrupt)(uint8_t interrupt_bit, int *interrupt_id);
18
19
uint8_t scancode[2];
20
int done;
21
int sz;
22
int got_error_keyboard;
23
24
void (kbc_ih)(void);
25
26
int (keyboard_poll)(uint8_t bytes[], uint8_t *size);
27
28
#endif //KEYBOARD_H_INCLUDED