aboutsummaryrefslogtreecommitdiff
path: root/tests/test_common/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_common/matrix.c')
-rw-r--r--tests/test_common/matrix.c32
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
34matrix_row_t matrix_get_row(uint8_t row) { 33matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; }
35 return matrix[row];
36}
37
38void matrix_print(void) {
39
40}
41
42void matrix_init_kb(void) {
43 34
44} 35void matrix_print(void) {}
45 36
46void matrix_scan_kb(void) { 37void matrix_init_kb(void) {}
47 38
48} 39void matrix_scan_kb(void) {}
49 40
50void press_key(uint8_t col, uint8_t row) { 41void press_key(uint8_t col, uint8_t row) { matrix[row] |= 1 << col; }
51 matrix[row] |= 1 << col;
52}
53 42
54void release_key(uint8_t col, uint8_t row) { 43void release_key(uint8_t col, uint8_t row) { matrix[row] &= ~(1 << col); }
55 matrix[row] &= ~(1 << col);
56}
57 44
58void clear_all_keys(void) { 45void clear_all_keys(void) { memset(matrix, 0, sizeof(matrix)); }
59 memset(matrix, 0, sizeof(matrix));
60}
61 46
62void led_set(uint8_t usb_led) { 47void led_set(uint8_t usb_led) {}
63}