]> git.gir.st - tmk_keyboard.git/blob - orphan/serialmouse_usb/matrix.c
Move some projects to 'orphan' directory
[tmk_keyboard.git] / orphan / serialmouse_usb / matrix.c
1 /*
2 Copyright 2011 Jun Wako <wakojun@gmail.com>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #include <stdint.h>
19 #include <stdbool.h>
20 #include <avr/io.h>
21 #include <util/delay.h>
22 #include "action.h"
23 #include "print.h"
24 #include "util.h"
25 #include "debug.h"
26 #include "matrix.h"
27
28
29 inline
30 uint8_t matrix_rows(void)
31 {
32 return MATRIX_ROWS;
33 }
34
35 inline
36 uint8_t matrix_cols(void)
37 {
38 return MATRIX_COLS;
39 }
40
41 void matrix_init(void)
42 {
43 debug_enable = true;
44 debug_mouse=true;
45 return;
46 }
47
48 uint8_t matrix_scan(void)
49 {
50 return 0;
51 }
52
53 bool matrix_is_modified(void)
54 {
55 return false;
56 }
57
58 inline
59 bool matrix_has_ghost(void)
60 {
61 return false;
62 }
63
64 inline
65 bool matrix_is_on(uint8_t row, uint8_t col)
66 {
67 return false;
68 }
69
70 inline
71 uint8_t matrix_get_row(uint8_t row)
72 {
73 return 0;
74 }
75
76 void matrix_print(void)
77 {
78 }
79
80 uint8_t matrix_key_count(void)
81 {
82 return 0;
83 }
Imprint / Impressum