You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

matrix.c 1.4KB

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