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.

71 lines
2.1 KiB

  1. #ifndef REV2_H
  2. #define REV2_H
  3. #include "dactyl_manuform.h"
  4. //void promicro_bootloader_jmp(bool program);
  5. #include "quantum.h"
  6. #ifdef USE_I2C
  7. #include <stddef.h>
  8. #ifdef __AVR__
  9. #include <avr/io.h>
  10. #include <avr/interrupt.h>
  11. #endif
  12. #endif
  13. //void promicro_bootloader_jmp(bool program);
  14. #ifndef FLIP_HALF
  15. #define LAYOUT( \
  16. L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
  17. L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
  18. L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
  19. L31, L32, R32, R33, \
  20. L33, L34, R30, R31, \
  21. L44, L43, R41, R40, \
  22. L42, L41, R43, R42 \
  23. ) \
  24. { \
  25. { L00, L01, L02, L03, L04 }, \
  26. { L10, L11, L12, L13, L14 }, \
  27. { L20, L21, L22, L23, L24 }, \
  28. { KC_NO, L31, L32, L33, L34 }, \
  29. { KC_NO, L41, L42, L43, L44 }, \
  30. \
  31. { R04, R03, R02, R01, R00 }, \
  32. { R14, R13, R12, R11, R10 }, \
  33. { R24, R23, R22, R21, R20 }, \
  34. { KC_NO, R33, R32, R31, R30 }, \
  35. { KC_NO, R43, R42, R41, R40 } \
  36. }
  37. #else
  38. #define LAYOUT( \
  39. L00, L01, L02, L03, L04, R00, R01, R02, R03, R04, \
  40. L10, L11, L12, L13, L14, R10, R11, R12, R13, R14, \
  41. L20, L21, L22, L23, L24, R20, R21, R22, R23, R24, \
  42. L31, L32, R32, R33, \
  43. L33, L34, R30, R31, \
  44. L44, L43, R41, R40, \
  45. L42, L41, R43, R42 \
  46. ) \
  47. { \
  48. { R04, R03, R02, R01, R00 }, \
  49. { R14, R13, R12, R11, R10 }, \
  50. { R24, R23, R22, R21, R20 }, \
  51. { KC_NO, R33, R32, R31, R30 }, \
  52. { KC_NO, R43, R42, R41, R40 }, \
  53. \
  54. { L00, L01, L02, L03, L04 }, \
  55. { L10, L11, L12, L13, L14 }, \
  56. { L20, L21, L22, L23, L24 }, \
  57. { KC_NO, L31, L32, L33, L34 }, \
  58. { KC_NO, L41, L42, L43, L44 } \
  59. \
  60. }
  61. #endif
  62. #endif