planck.c 551 B

12345678910111213141516171819202122232425262728293031323334
  1. #include "planck.h"
  2. __attribute__ ((weak))
  3. void matrix_init_user(void) {}
  4. __attribute__ ((weak))
  5. void matrix_scan_user(void) {}
  6. __attribute__ ((weak))
  7. void process_action_user(keyrecord_t *record) {}
  8. void matrix_init_kb(void) {
  9. #ifdef BACKLIGHT_ENABLE
  10. backlight_init_ports();
  11. #endif
  12. #ifdef RGBLIGHT_ENABLE
  13. rgblight_init();
  14. #endif
  15. // Turn status LED on
  16. DDRE |= (1<<6);
  17. PORTE |= (1<<6);
  18. matrix_init_user();
  19. }
  20. void matrix_scan_kb(void) {
  21. matrix_scan_user();
  22. }
  23. void process_action_kb(keyrecord_t *record) {
  24. process_action_user(record);
  25. }