Project

General

Profile

Revision 321

correcting some problems

View differences:

keyboard.c
14 14
    return SUCCESS;
15 15
}
16 16

  
17
int done = 1;
18
int sz = 1;
19
int got_error_keyboard = SUCCESS;
17
static uint8_t scancode[2];
18
static int done = 1;
19
static int sz = 1;
20
static int got_error_keyboard = SUCCESS;
21
const uint8_t* keyboard_get_scancode(void){ return scancode; }
22
int keyboard_get_done(void){ return done; }
23
int keyboard_get_size(void){ return sz; }
24
int keyboard_get_error(void){return got_error_keyboard; }
20 25

  
26

  
21 27
void (kbc_ih)(void) {
22 28
    if(done) { sz = 1; }
23 29
    else     sz++;

Also available in: Unified diff