jd45.c 367 B

123456789101112131415161718192021222324252627
  1. #include "jd45.h"
  2. __attribute__ ((weak))
  3. void matrix_init_user(void) {
  4. };
  5. __attribute__ ((weak))
  6. void matrix_scan_user(void) {
  7. };
  8. void matrix_init_kb(void) {
  9. #ifdef BACKLIGHT_ENABLE
  10. backlight_init_ports();
  11. #endif
  12. if (matrix_init_user) {
  13. (*matrix_init_user)();
  14. }
  15. };
  16. void matrix_scan_kb(void) {
  17. if (matrix_scan_user) {
  18. (*matrix_scan_user)();
  19. }
  20. };