satan.c 643 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "satan.h"
  2. #ifdef BACKLIGHT_ENABLE
  3. #include "backlight.h"
  4. #endif
  5. __attribute__ ((weak))
  6. void matrix_init_user(void) {
  7. // leave these blank
  8. };
  9. __attribute__ ((weak))
  10. void matrix_scan_user(void) {
  11. // leave these blank
  12. };
  13. void matrix_init_kb(void) {
  14. // put your keyboard start-up code here
  15. // runs once when the firmware starts up
  16. if (matrix_init_user) {
  17. (*matrix_init_user)();
  18. }
  19. led_init_ports();
  20. #ifdef BACKLIGHT_ENABLE
  21. init_backlight_pin();
  22. #endif
  23. };
  24. void matrix_scan_kb(void) {
  25. // put your looping keyboard code here
  26. // runs every cycle (a lot)
  27. if (matrix_scan_user) {
  28. (*matrix_scan_user)();
  29. }
  30. };