Project

General

Profile

Statistics
| Revision:

root / proj / include / keyboard.h @ 195

History | View | Annotate | Download (782 Bytes)

1
/**
2
 * This file concerns everything related to the keyboard
3
 */
4

    
5
#ifndef KEYBOARD_H_INCLUDED
6
#define KEYBOARD_H_INCLUDED
7

    
8
/**
9
 * @brief Subscribes Keyboard Interrupts and disables Minix Default IH
10
 * @param interrupt_bit Bit of Interrupt Vector that will be set when Keyboard Interrupt is pending
11
 * @param interrupt_id Keyboard Interrupt ID to specify the Keyboard Interrupt in other calls
12
 * @return ERROR_CODE code representing the result of the operation, SUCCESS code is returned if everything is OK
13
 * @see {_ERRORS_H_::errors}
14
 */
15
int (subscribe_kbc_interrupt)(uint8_t interrupt_bit, int *interrupt_id);
16

    
17
uint8_t scancode[2];
18
int done;
19
int sz;
20
int got_error_keyboard;
21

    
22
void (kbc_ih)(void);
23

    
24
int (keyboard_poll)(uint8_t bytes[], uint8_t *size);
25

    
26
#endif //KEYBOARD_H_INCLUDED