Project

General

Profile

Revision 58

more changes

View differences:

lab4.c
3 3
#include <stdint.h>
4 4
#include <stdio.h>
5 5

  
6
#include "mouse_func.h"
7
#include "kbc_func.h"
6
#include "mouse.h"
7
#include "kbc.h"
8 8

  
9 9
int main(int argc, char *argv[]) {
10 10
  // sets the language of LCF messages (can be either EN-US or PT-PT)
......
63 63
                            cnt_now++;
64 64
                            if(cnt == cnt_now) good = 0;
65 65
                        }
66
                        /*
67
                        if (!(two_byte_scancode || got_error)) { // finished processing a scancode
68
                            if (scancode[0] == TWO_BYTE_CODE) kbd_print_scancode(!(scancode[1] & BREAK_CODE_BIT), 2, scancode);
69
                            else                              kbd_print_scancode(!(scancode[0] & BREAK_CODE_BIT), 1, scancode);
70
                        } else { break; }
71
                        if (scancode[0] == ESC_BREAK_CODE) good = 0;
72
                        */
73 66
                    }
74 67
                    break;
75 68
                default:
......
81 74
    }
82 75

  
83 76
    if (unsubscribe_interrupt(&mouse_id)) return 1;
84
    if(kbc_restore_kbd()) return 1;
85 77

  
78
    if(mouse_set_data_report(false)) return 1;
79

  
86 80
    return 0;
87 81
}
88 82

  

Also available in: Unified diff