aboutsummaryrefslogtreecommitdiff
path: root/common/matrix.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/matrix.h')
-rw-r--r--common/matrix.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/common/matrix.h b/common/matrix.h
index 23fef78f7..107ee7265 100644
--- a/common/matrix.h
+++ b/common/matrix.h
@@ -35,6 +35,10 @@ typedef uint32_t matrix_row_t;
35#define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col)) 35#define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col))
36 36
37 37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
38/* number of matrix rows */ 42/* number of matrix rows */
39uint8_t matrix_rows(void); 43uint8_t matrix_rows(void);
40/* number of matrix columns */ 44/* number of matrix columns */
@@ -48,7 +52,7 @@ bool matrix_is_modified(void) __attribute__ ((deprecated));
48/* whether a swtich is on */ 52/* whether a swtich is on */
49bool matrix_is_on(uint8_t row, uint8_t col); 53bool matrix_is_on(uint8_t row, uint8_t col);
50/* matrix state on row */ 54/* matrix state on row */
51matrix_row_t matrix_get_row(uint8_t row); 55matrix_row_t matrix_get_row(uint8_t row);
52/* print matrix for debug */ 56/* print matrix for debug */
53void matrix_print(void); 57void matrix_print(void);
54 58
@@ -57,5 +61,8 @@ void matrix_print(void);
57void matrix_power_up(void); 61void matrix_power_up(void);
58void matrix_power_down(void); 62void matrix_power_down(void);
59 63
64#ifdef __cplusplus
65}
66#endif
60 67
61#endif 68#endif