diff options
Diffstat (limited to 'keyboard/phantom/phantom.c')
| -rw-r--r-- | keyboard/phantom/phantom.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/keyboard/phantom/phantom.c b/keyboard/phantom/phantom.c new file mode 100644 index 000000000..4328539d0 --- /dev/null +++ b/keyboard/phantom/phantom.c | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #include "phantom.h" | ||
| 2 | |||
| 3 | __attribute__ ((weak)) | ||
| 4 | void matrix_init_user(void) { | ||
| 5 | // leave these blank | ||
| 6 | }; | ||
| 7 | |||
| 8 | __attribute__ ((weak)) | ||
| 9 | void matrix_scan_user(void) { | ||
| 10 | // leave these blank | ||
| 11 | }; | ||
| 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 | }; | ||
| 21 | |||
| 22 | void matrix_scan_kb(void) { | ||
| 23 | // put your looping keyboard code here | ||
| 24 | // runs every cycle (a lot) | ||
| 25 | if (matrix_scan_user) { | ||
| 26 | (*matrix_scan_user)(); | ||
| 27 | } | ||
| 28 | }; | ||
