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.

38 lines
1.3 KiB

  1. #ifndef AMJ40_H
  2. #define AMJ40_H
  3. #include "quantum.h"
  4. // readability
  5. #define XXX KC_NO
  6. /* AMJ40 ver2.0 layout1 配列一
  7. * ,-----------------------------------------------------------.
  8. * | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 0A | 0B |
  9. * |-----------------------------------------------------------|
  10. * | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 1B |
  11. * |-----------------------------------------------------------|
  12. * | 20 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 2A | 2B |
  13. * |-----------------------------------------------------------|
  14. * | 30 | 31 | 32 | 34 | 35 | 39 | 3A | 3B |
  15. * `-----------------------------------------------------------'
  16. */
  17. #define LAYOUT( \
  18. k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
  19. k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1b, \
  20. k20, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
  21. k30, k31, k32, k34, k35, k39, k3a, k3b \
  22. ) { \
  23. {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b}, \
  24. {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, XXX, k1b}, \
  25. {k20, XXX, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b}, \
  26. {k30, k31, k32, XXX, k34, k35, XXX, XXX, XXX, k39, k3a, k3b} \
  27. }
  28. void matrix_init_user(void);
  29. void matrix_scan_user(void);
  30. #endif