diff options
Diffstat (limited to 'tests/test_common/matrix.c')
-rw-r--r-- | tests/test_common/matrix.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/tests/test_common/matrix.c b/tests/test_common/matrix.c index 4b501039b..9a92a801c 100644 --- a/tests/test_common/matrix.c +++ b/tests/test_common/matrix.c | |||
@@ -14,7 +14,6 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | |||
18 | #include "matrix.h" | 17 | #include "matrix.h" |
19 | #include "test_matrix.h" | 18 | #include "test_matrix.h" |
20 | #include <string.h> | 19 | #include <string.h> |
@@ -31,33 +30,18 @@ uint8_t matrix_scan(void) { | |||
31 | return 1; | 30 | return 1; |
32 | } | 31 | } |
33 | 32 | ||
34 | matrix_row_t matrix_get_row(uint8_t row) { | 33 | matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; } |
35 | return matrix[row]; | ||
36 | } | ||
37 | |||
38 | void matrix_print(void) { | ||
39 | |||
40 | } | ||
41 | |||
42 | void matrix_init_kb(void) { | ||
43 | 34 | ||
44 | } | 35 | void matrix_print(void) {} |
45 | 36 | ||
46 | void matrix_scan_kb(void) { | 37 | void matrix_init_kb(void) {} |
47 | 38 | ||
48 | } | 39 | void matrix_scan_kb(void) {} |
49 | 40 | ||
50 | void press_key(uint8_t col, uint8_t row) { | 41 | void press_key(uint8_t col, uint8_t row) { matrix[row] |= 1 << col; } |
51 | matrix[row] |= 1 << col; | ||
52 | } | ||
53 | 42 | ||
54 | void release_key(uint8_t col, uint8_t row) { | 43 | void release_key(uint8_t col, uint8_t row) { matrix[row] &= ~(1 << col); } |
55 | matrix[row] &= ~(1 << col); | ||
56 | } | ||
57 | 44 | ||
58 | void clear_all_keys(void) { | 45 | void clear_all_keys(void) { memset(matrix, 0, sizeof(matrix)); } |
59 | memset(matrix, 0, sizeof(matrix)); | ||
60 | } | ||
61 | 46 | ||
62 | void led_set(uint8_t usb_led) { | 47 | void led_set(uint8_t usb_led) {} |
63 | } | ||