diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2015-10-26 14:49:46 -0400 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2015-10-26 14:49:46 -0400 |
| commit | 46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141 (patch) | |
| tree | f0b00f664ecdaf83e30f27baf20780eb5d91c39a /keyboard/planck/planck.h | |
| parent | ff8d8a50dfbb8502003a5181878c54a71b8c57d5 (diff) | |
| download | qmk_firmware-46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141.tar.gz qmk_firmware-46e7fb2d3ccd699c0a1b1fd9d02860b1f2a44141.zip | |
quantum separated
Diffstat (limited to 'keyboard/planck/planck.h')
| -rw-r--r-- | keyboard/planck/planck.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/keyboard/planck/planck.h b/keyboard/planck/planck.h new file mode 100644 index 000000000..4e59aef56 --- /dev/null +++ b/keyboard/planck/planck.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | #ifndef PLANCK_H | ||
| 2 | #define PLANCK_H | ||
| 3 | |||
| 4 | #include "matrix.h" | ||
| 5 | #include "keymap_common.h" | ||
| 6 | #include "backlight.h" | ||
| 7 | #include <stddef.h> | ||
| 8 | |||
| 9 | #define PLANCK_MIT( \ | ||
| 10 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ | ||
| 11 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ | ||
| 12 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ | ||
| 13 | k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \ | ||
| 14 | ) \ | ||
| 15 | { \ | ||
| 16 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ | ||
| 17 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ | ||
| 18 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ | ||
| 19 | { k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \ | ||
| 20 | } | ||
| 21 | |||
| 22 | #define PLANCK_GRID( \ | ||
| 23 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ | ||
| 24 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ | ||
| 25 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ | ||
| 26 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b \ | ||
| 27 | ) \ | ||
| 28 | { \ | ||
| 29 | { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ | ||
| 30 | { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ | ||
| 31 | { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ | ||
| 32 | { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b } \ | ||
| 33 | } | ||
| 34 | |||
| 35 | void * matrix_init_user(void); | ||
| 36 | void * matrix_scan_user(void); | ||
| 37 | |||
| 38 | #endif \ No newline at end of file | ||
